comparison cake/tests/fixtures/after_tree_fixture.php @ 0:261e66bd5a0c

hg init
author Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
date Sun, 24 Jul 2011 21:08:31 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:261e66bd5a0c
1 <?php
2 /**
3 * Short description for after_tree_fixture.php
4 *
5 * Long description for after_tree_fixture.php
6 *
7 * PHP versions 4 and 5
8 *
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 *
11 * Licensed under The MIT License
12 * Redistributions of files must retain the above copyright notice.
13 *
14 * @copyright CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
15 * @link http://www.cakephp.org
16 * @package cake
17 * @subpackage cake.tests.fixtures
18 * @since 1.2
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
21
22 /**
23 * AdFixture class
24 *
25 * @package cake
26 * @subpackage cake.tests.fixtures
27 */
28 class AfterTreeFixture extends CakeTestFixture {
29
30 /**
31 * name property
32 *
33 * @var string 'AfterTree'
34 * @access public
35 */
36 var $name = 'AfterTree';
37
38 /**
39 * fields property
40 *
41 * @var array
42 * @access public
43 */
44 var $fields = array(
45 'id' => array('type' => 'integer', 'key' => 'primary'),
46 'parent_id' => array('type' => 'integer'),
47 'lft' => array('type' => 'integer'),
48 'rght' => array('type' => 'integer'),
49 'name' => array('type' => 'string', 'length' => 255, 'null' => false)
50 );
51
52 /**
53 * records property
54 *
55 * @var array
56 * @access public
57 */
58 var $records = array(
59 array('parent_id' => null, 'lft' => 1, 'rght' => 2, 'name' => 'One'),
60 array('parent_id' => null, 'lft' => 3, 'rght' => 4, 'name' => 'Two'),
61 array('parent_id' => null, 'lft' => 5, 'rght' => 6, 'name' => 'Three'),
62 array('parent_id' => null, 'lft' => 7, 'rght' => 12, 'name' => 'Four'),
63 array('parent_id' => null, 'lft' => 8, 'rght' => 9, 'name' => 'Five'),
64 array('parent_id' => null, 'lft' => 10, 'rght' => 11, 'name' => 'Six'),
65 array('parent_id' => null, 'lft' => 13, 'rght' => 14, 'name' => 'Seven')
66 );
67 }