pictcode / lib / Cake / Test / Fixture / AfterTreeFixture.php @ 635eef61
履歴 | 表示 | アノテート | ダウンロード (1.638 KB)
1 | 635eef61 | spyder1211 | <?php
|
---|---|---|---|
2 | /**
|
||
3 | * Short description for after_tree_fixture.php
|
||
4 | *
|
||
5 | * Long description for after_tree_fixture.php
|
||
6 | *
|
||
7 | * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||
8 | *
|
||
9 | * Licensed under The MIT License
|
||
10 | * For full copyright and license information, please see the LICENSE.txt
|
||
11 | * Redistributions of files must retain the above copyright notice.
|
||
12 | *
|
||
13 | * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||
14 | * @link http://www.cakephp.org
|
||
15 | * @package Cake.Test.Fixture
|
||
16 | * @since 1.2
|
||
17 | * @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||
18 | */
|
||
19 | |||
20 | /**
|
||
21 | * AfterTreeFixture class
|
||
22 | *
|
||
23 | * @package Cake.Test.Fixture
|
||
24 | */
|
||
25 | class AfterTreeFixture extends CakeTestFixture { |
||
26 | |||
27 | /**
|
||
28 | * fields property
|
||
29 | *
|
||
30 | * @var array
|
||
31 | */
|
||
32 | public $fields = array( |
||
33 | 'id' => array('type' => 'integer', 'key' => 'primary'), |
||
34 | 'parent_id' => array('type' => 'integer'), |
||
35 | 'lft' => array('type' => 'integer'), |
||
36 | 'rght' => array('type' => 'integer'), |
||
37 | 'name' => array('type' => 'string', 'length' => 255, 'null' => false) |
||
38 | ); |
||
39 | |||
40 | /**
|
||
41 | * records property
|
||
42 | *
|
||
43 | * @var array
|
||
44 | */
|
||
45 | public $records = array( |
||
46 | array('parent_id' => null, 'lft' => 1, 'rght' => 2, 'name' => 'One'), |
||
47 | array('parent_id' => null, 'lft' => 3, 'rght' => 4, 'name' => 'Two'), |
||
48 | array('parent_id' => null, 'lft' => 5, 'rght' => 6, 'name' => 'Three'), |
||
49 | array('parent_id' => null, 'lft' => 7, 'rght' => 12, 'name' => 'Four'), |
||
50 | array('parent_id' => null, 'lft' => 8, 'rght' => 9, 'name' => 'Five'), |
||
51 | array('parent_id' => null, 'lft' => 10, 'rght' => 11, 'name' => 'Six'), |
||
52 | array('parent_id' => null, 'lft' => 13, 'rght' => 14, 'name' => 'Seven') |
||
53 | ); |
||
54 | } |