CountryFixture.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?php
  2. /* Country Fixture generated on: 2011-11-20 21:58:51 : 1321822731 */
  3. /**
  4. * CountryFixture
  5. *
  6. */
  7. class CountryFixture extends CakeTestFixture {
  8. /**
  9. * Fields
  10. *
  11. * @var array
  12. */
  13. public $fields = array(
  14. 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary', 'collate' => null, 'comment' => ''),
  15. 'name' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 64, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  16. 'ori_name' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 64, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  17. 'iso2' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 2, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  18. 'iso3' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 3, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  19. 'continent_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10, 'collate' => null, 'comment' => ''),
  20. 'country_code' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 4, 'collate' => null, 'comment' => ''),
  21. 'eu_member' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'collate' => null, 'comment' => 'Member of the EU'),
  22. 'special' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 40, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  23. 'zip_length' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 2, 'collate' => null, 'comment' => 'if > 0 validate on this length'),
  24. 'zip_regexp' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  25. 'sort' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10, 'collate' => null, 'comment' => ''),
  26. 'lat' => array('type' => 'float', 'null' => false, 'default' => '0.000000', 'length' => '10,6', 'collate' => null, 'comment' => 'forGoogleMap'),
  27. 'lng' => array('type' => 'float', 'null' => false, 'default' => '0.000000', 'length' => '10,6', 'collate' => null, 'comment' => 'forGoogleMap'),
  28. 'address_format' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  29. 'status' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 2, 'collate' => null, 'comment' => ''),
  30. 'modified' => array('type' => 'datetime', 'null' => false, 'default' => null, 'collate' => null, 'comment' => ''),
  31. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
  32. 'tableParameters' => array()
  33. );
  34. /**
  35. * Records
  36. *
  37. * @var array
  38. */
  39. public $records = array(
  40. array(
  41. 'id' => '1',
  42. 'name' => 'Deutschland',
  43. 'ori_name' => 'Deutschland',
  44. 'iso2' => 'DE',
  45. 'iso3' => 'DEU',
  46. 'continent_id' => '0',
  47. 'country_code' => '49',
  48. 'eu_member' => 1,
  49. 'special' => '',
  50. 'zip_length' => '5',
  51. 'zip_regexp' => '',
  52. 'sort' => '3',
  53. 'lat' => '51.165691',
  54. 'lng' => '10.451526',
  55. 'address_format' => ':name :street_address D-:postcode :city :country',
  56. 'status' => '1',
  57. 'modified' => '2010-06-06 00:19:04'
  58. ),
  59. array(
  60. 'id' => '2',
  61. 'name' => 'Österreich',
  62. 'ori_name' => 'Österreich',
  63. 'iso2' => 'AT',
  64. 'iso3' => 'AUT',
  65. 'continent_id' => '0',
  66. 'country_code' => '43',
  67. 'eu_member' => 1,
  68. 'special' => '',
  69. 'zip_length' => '0',
  70. 'zip_regexp' => '',
  71. 'sort' => '2',
  72. 'lat' => '47.516232',
  73. 'lng' => '14.550072',
  74. 'address_format' => '',
  75. 'status' => '1',
  76. 'modified' => '2010-06-06 00:19:04'
  77. ),
  78. array(
  79. 'id' => '3',
  80. 'name' => 'Schweiz',
  81. 'ori_name' => 'Schweiz',
  82. 'iso2' => 'CH',
  83. 'iso3' => 'CHE',
  84. 'continent_id' => '0',
  85. 'country_code' => '41',
  86. 'eu_member' => 0,
  87. 'special' => '',
  88. 'zip_length' => '0',
  89. 'zip_regexp' => '',
  90. 'sort' => '1',
  91. 'lat' => '46.818188',
  92. 'lng' => '8.227512',
  93. 'address_format' => '',
  94. 'status' => '1',
  95. 'modified' => '2010-06-06 00:19:04'
  96. ),
  97. array(
  98. 'id' => '4',
  99. 'name' => 'Belgien',
  100. 'ori_name' => 'Belgium',
  101. 'iso2' => 'BE',
  102. 'iso3' => 'BEL',
  103. 'continent_id' => '0',
  104. 'country_code' => '32',
  105. 'eu_member' => 1,
  106. 'special' => '',
  107. 'zip_length' => '0',
  108. 'zip_regexp' => '',
  109. 'sort' => '0',
  110. 'lat' => '50.503887',
  111. 'lng' => '4.469936',
  112. 'address_format' => '',
  113. 'status' => '1',
  114. 'modified' => '2010-06-06 00:19:09'
  115. ),
  116. array(
  117. 'id' => '5',
  118. 'name' => 'Niederlande',
  119. 'ori_name' => 'Netherlands',
  120. 'iso2' => 'NL',
  121. 'iso3' => 'NLD',
  122. 'continent_id' => '0',
  123. 'country_code' => '31',
  124. 'eu_member' => 1,
  125. 'special' => '',
  126. 'zip_length' => '0',
  127. 'zip_regexp' => '',
  128. 'sort' => '0',
  129. 'lat' => '52.132633',
  130. 'lng' => '5.291266',
  131. 'address_format' => '',
  132. 'status' => '1',
  133. 'modified' => '2010-06-06 00:19:40'
  134. ),
  135. array(
  136. 'id' => '6',
  137. 'name' => 'Dänemark',
  138. 'ori_name' => 'Denmark',
  139. 'iso2' => 'DK',
  140. 'iso3' => 'DNK',
  141. 'continent_id' => '0',
  142. 'country_code' => '45',
  143. 'eu_member' => 1,
  144. 'special' => '',
  145. 'zip_length' => '0',
  146. 'zip_regexp' => '',
  147. 'sort' => '0',
  148. 'lat' => '56.263920',
  149. 'lng' => '9.501785',
  150. 'address_format' => '',
  151. 'status' => '1',
  152. 'modified' => '2010-06-06 00:19:14'
  153. ),
  154. array(
  155. 'id' => '7',
  156. 'name' => 'Luxemburg',
  157. 'ori_name' => 'Luxembourg',
  158. 'iso2' => 'LU',
  159. 'iso3' => 'LUX',
  160. 'continent_id' => '0',
  161. 'country_code' => '352',
  162. 'eu_member' => 1,
  163. 'special' => '',
  164. 'zip_length' => '0',
  165. 'zip_regexp' => '',
  166. 'sort' => '0',
  167. 'lat' => '49.815273',
  168. 'lng' => '6.129583',
  169. 'address_format' => '',
  170. 'status' => '1',
  171. 'modified' => '2010-06-06 00:19:34'
  172. ),
  173. array(
  174. 'id' => '8',
  175. 'name' => 'Frankreich',
  176. 'ori_name' => 'France',
  177. 'iso2' => 'FR',
  178. 'iso3' => 'FRA',
  179. 'continent_id' => '0',
  180. 'country_code' => '33',
  181. 'eu_member' => 1,
  182. 'special' => '',
  183. 'zip_length' => '0',
  184. 'zip_regexp' => '',
  185. 'sort' => '0',
  186. 'lat' => '46.227638',
  187. 'lng' => '2.213749',
  188. 'address_format' => '',
  189. 'status' => '1',
  190. 'modified' => '2010-06-06 00:19:17'
  191. ),
  192. array(
  193. 'id' => '9',
  194. 'name' => 'Großbritannien',
  195. 'ori_name' => 'United Kingdom (Great Britian)',
  196. 'iso2' => 'GB',
  197. 'iso3' => 'GBR',
  198. 'continent_id' => '0',
  199. 'country_code' => '44',
  200. 'eu_member' => 1,
  201. 'special' => '',
  202. 'zip_length' => '0',
  203. 'zip_regexp' => '',
  204. 'sort' => '0',
  205. 'lat' => '55.378052',
  206. 'lng' => '-3.435973',
  207. 'address_format' => '',
  208. 'status' => '1',
  209. 'modified' => '2010-06-06 00:19:19'
  210. ),
  211. array(
  212. 'id' => '12',
  213. 'name' => 'Ukraine',
  214. 'ori_name' => 'Ukraine',
  215. 'iso2' => 'UA',
  216. 'iso3' => 'UKR',
  217. 'continent_id' => '0',
  218. 'country_code' => '380',
  219. 'eu_member' => 1,
  220. 'special' => '',
  221. 'zip_length' => '0',
  222. 'zip_regexp' => '',
  223. 'sort' => '0',
  224. 'lat' => '48.379433',
  225. 'lng' => '31.165581',
  226. 'address_format' => '',
  227. 'status' => '1',
  228. 'modified' => '2010-06-06 00:19:57'
  229. ),
  230. );
  231. }