PageRenderTime 39ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/cake/tests/fixtures/flag_tree_fixture.php

https://github.com/hardsshah/bookmarks
PHP | 59 lines | 13 code | 1 blank | 45 comment | 0 complexity | ff26948aeb07ec01c56684d7c7d026b1 MD5 | raw file
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * Tree behavior class test fixture.
  5. *
  6. * Enables a model object to act as a node-based tree.
  7. *
  8. * PHP versions 4 and 5
  9. *
  10. * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
  11. * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
  12. *
  13. * Licensed under The Open Group Test Suite License
  14. * Redistributions of files must retain the above copyright notice.
  15. *
  16. * @filesource
  17. * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
  18. * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
  19. * @package cake
  20. * @subpackage cake.tests.fixtures
  21. * @since CakePHP(tm) v 1.2.0.5331
  22. * @version $Revision$
  23. * @modifiedby $LastChangedBy$
  24. * @lastmodified $Date$
  25. * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
  26. */
  27. /**
  28. * Flag Tree Test Fixture
  29. *
  30. * Like Number Tree, but uses a flag for testing scope parameters
  31. *
  32. * @package cake
  33. * @subpackage cake.tests.fixtures
  34. */
  35. class FlagTreeFixture extends CakeTestFixture {
  36. /**
  37. * name property
  38. *
  39. * @var string 'FlagTree'
  40. * @access public
  41. */
  42. var $name = 'FlagTree';
  43. /**
  44. * fields property
  45. *
  46. * @var array
  47. * @access public
  48. */
  49. var $fields = array(
  50. 'id' => array('type' => 'integer','key' => 'primary'),
  51. 'name' => array('type' => 'string','null' => false),
  52. 'parent_id' => 'integer',
  53. 'lft' => array('type' => 'integer','null' => false),
  54. 'rght' => array('type' => 'integer','null' => false),
  55. 'flag' => array('type' => 'integer','null' => false, 'length' => 1, 'default' => 0)
  56. );
  57. }
  58. ?>