CurrencyFixture.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. /* Currency Fixture generated on: 2011-11-20 21:58:59 : 1321822739 */
  3. /**
  4. * CurrencyFixture
  5. *
  6. */
  7. class CurrencyFixture 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, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  16. 'code' => array('type' => 'string', 'null' => false, 'length' => 3, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  17. 'symbol_left' => array('type' => 'string', 'null' => true, 'length' => 12, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  18. 'symbol_right' => array('type' => 'string', 'null' => true, 'length' => 12, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  19. 'decimal_places' => array('type' => 'string', 'null' => true, 'length' => 1, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  20. 'value' => array('type' => 'float', 'null' => true, 'default' => '0.0000', 'length' => '9,4', 'collate' => null, 'comment' => ''),
  21. 'base' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'collate' => null, 'comment' => 'is base currency'),
  22. 'active' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'collate' => null, 'comment' => ''),
  23. 'modified' => array('type' => 'datetime', 'null' => false, 'default' => null, 'collate' => null, 'comment' => ''),
  24. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
  25. 'tableParameters' => array()
  26. );
  27. /**
  28. * Records
  29. *
  30. * @var array
  31. */
  32. public $records = array(
  33. array(
  34. 'id' => '1',
  35. 'name' => 'US Dollar',
  36. 'code' => 'USD',
  37. 'symbol_left' => '$',
  38. 'symbol_right' => '',
  39. 'decimal_places' => '2',
  40. 'value' => '1.4146',
  41. 'base' => 0,
  42. 'active' => 1,
  43. 'modified' => '2011-07-16 15:12:33'
  44. ),
  45. array(
  46. 'id' => '2',
  47. 'name' => 'Euro',
  48. 'code' => 'EUR',
  49. 'symbol_left' => '€',
  50. 'symbol_right' => '',
  51. 'decimal_places' => '2',
  52. 'value' => '1.0000',
  53. 'base' => 1,
  54. 'active' => 1,
  55. 'modified' => '2009-11-23 12:45:15'
  56. ),
  57. array(
  58. 'id' => '3',
  59. 'name' => 'British Pounds',
  60. 'code' => 'GBP',
  61. 'symbol_left' => '£',
  62. 'symbol_right' => '',
  63. 'decimal_places' => '2',
  64. 'value' => '0.8775',
  65. 'base' => 0,
  66. 'active' => 1,
  67. 'modified' => '2011-07-16 15:12:33'
  68. ),
  69. array(
  70. 'id' => '4',
  71. 'name' => 'Schweizer Franken',
  72. 'code' => 'CHF',
  73. 'symbol_left' => '',
  74. 'symbol_right' => 'Fr.',
  75. 'decimal_places' => '2',
  76. 'value' => '1.1577',
  77. 'base' => 0,
  78. 'active' => 1,
  79. 'modified' => '2011-07-16 15:12:33'
  80. ),
  81. array(
  82. 'id' => '5',
  83. 'name' => 'Australien Dollar',
  84. 'code' => 'AUD',
  85. 'symbol_left' => '',
  86. 'symbol_right' => '',
  87. 'decimal_places' => '2',
  88. 'value' => '1.3264',
  89. 'base' => 0,
  90. 'active' => 0,
  91. 'modified' => '2011-07-16 15:12:33'
  92. ),
  93. array(
  94. 'id' => '6',
  95. 'name' => 'Canadian Dollar',
  96. 'code' => 'CAD',
  97. 'symbol_left' => '',
  98. 'symbol_right' => '',
  99. 'decimal_places' => '2',
  100. 'value' => '1.3549',
  101. 'base' => 0,
  102. 'active' => 0,
  103. 'modified' => '2011-07-16 15:12:33'
  104. ),
  105. array(
  106. 'id' => '7',
  107. 'name' => 'Japanese Yen',
  108. 'code' => 'JPY',
  109. 'symbol_left' => '',
  110. 'symbol_right' => '',
  111. 'decimal_places' => '2',
  112. 'value' => '111.9700',
  113. 'base' => 0,
  114. 'active' => 0,
  115. 'modified' => '2011-07-16 15:12:33'
  116. ),
  117. array(
  118. 'id' => '9',
  119. 'name' => 'Mexican Peso',
  120. 'code' => 'MXN',
  121. 'symbol_left' => '',
  122. 'symbol_right' => '',
  123. 'decimal_places' => '2',
  124. 'value' => '16.5510',
  125. 'base' => 0,
  126. 'active' => 0,
  127. 'modified' => '2011-07-16 15:12:33'
  128. ),
  129. array(
  130. 'id' => '10',
  131. 'name' => 'Norwegian Krone',
  132. 'code' => 'NOK',
  133. 'symbol_left' => '',
  134. 'symbol_right' => '',
  135. 'decimal_places' => '2',
  136. 'value' => '7.8665',
  137. 'base' => 0,
  138. 'active' => 0,
  139. 'modified' => '2011-07-16 15:12:33'
  140. ),
  141. array(
  142. 'id' => '11',
  143. 'name' => 'Swedish Krona',
  144. 'code' => 'SEK',
  145. 'symbol_left' => '',
  146. 'symbol_right' => '',
  147. 'decimal_places' => '2',
  148. 'value' => '9.2121',
  149. 'base' => 0,
  150. 'active' => 0,
  151. 'modified' => '2011-07-16 15:12:33'
  152. ),
  153. );
  154. }