RoleFixture.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /* Role Fixture generated on: 2011-11-20 21:59:33 : 1321822773 */
  3. /**
  4. * RoleFixture
  5. *
  6. */
  7. class RoleFixture 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, 'length' => 64, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  16. 'description' => array('type' => 'string', 'null' => false, 'default' => NULL, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  17. 'alias' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 20, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
  18. 'default_role' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'collate' => NULL, 'comment' => 'set at register'),
  19. 'created' => array('type' => 'datetime', 'null' => false, 'default' => NULL, 'collate' => NULL, 'comment' => ''),
  20. 'modified' => array('type' => 'datetime', 'null' => false, 'default' => NULL, 'collate' => NULL, 'comment' => ''),
  21. 'sort' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10, 'collate' => NULL, 'comment' => ''),
  22. 'active' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'collate' => NULL, 'comment' => ''),
  23. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
  24. 'tableParameters' => array()
  25. );
  26. /**
  27. * Records
  28. *
  29. * @var array
  30. */
  31. public $records = array(
  32. array(
  33. 'id' => '2',
  34. 'name' => 'Admin',
  35. 'description' => 'Zuständig für die Verwaltung der Seite und Mitglieder, Ahndung von Missbrauch und CO',
  36. 'alias' => 'admin',
  37. 'default_role' => 0,
  38. 'created' => '2010-01-07 03:36:33',
  39. 'modified' => '2010-01-07 03:36:33',
  40. 'sort' => '6',
  41. 'active' => 1
  42. ),
  43. array(
  44. 'id' => '4',
  45. 'name' => 'User',
  46. 'description' => 'Standardrolle jedes Mitglieds (ausreichend für die meisten Aktionen)',
  47. 'alias' => 'user',
  48. 'default_role' => 1,
  49. 'created' => '2010-01-07 03:36:33',
  50. 'modified' => '2010-01-07 03:36:33',
  51. 'sort' => '1',
  52. 'active' => 1
  53. ),
  54. array(
  55. 'id' => '6',
  56. 'name' => 'Partner',
  57. 'description' => 'Partner',
  58. 'alias' => 'partner',
  59. 'default_role' => 0,
  60. 'created' => '2010-01-07 03:36:33',
  61. 'modified' => '2010-01-07 03:36:33',
  62. 'sort' => '0',
  63. 'active' => 1
  64. ),
  65. array(
  66. 'id' => '1',
  67. 'name' => 'Super-Admin',
  68. 'description' => 'Zuständig für Programmierung, Sicherheit, Bugfixes, Hosting und CO',
  69. 'alias' => 'superadmin',
  70. 'default_role' => 0,
  71. 'created' => '2010-01-07 03:36:33',
  72. 'modified' => '2010-01-07 03:36:33',
  73. 'sort' => '7',
  74. 'active' => 1
  75. ),
  76. );
  77. }