統計
| ブランチ: | リビジョン:

pictcode / lib / Cake / Test / Fixture / UnconventionalTreeFixture.php @ 635eef61

履歴 | 表示 | アノテート | ダウンロード (1.309 KB)

1
<?php
2
/**
3
 * Unconventional Tree behavior class test fixture.
4
 *
5
 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
6
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7
 *
8
 * Licensed under The MIT License
9
 * For full copyright and license information, please see the LICENSE.txt
10
 * Redistributions of files must retain the above copyright notice
11
 *
12
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13
 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
14
 * @package       Cake.Test.Fixture
15
 * @since         CakePHP(tm) v 1.2.0.7879
16
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
17
 */
18

    
19
/**
20
 * UnconventionalTreeFixture class
21
 *
22
 * Like Number tree, but doesn't use the default values for lft and rght or parent_id
23
 *
24
 * @uses          CakeTestFixture
25
 * @package       Cake.Test.Fixture
26
 */
27
class UnconventionalTreeFixture extends CakeTestFixture {
28

    
29
/**
30
 * fields property
31
 *
32
 * @var array
33
 */
34
        public $fields = array(
35
                'id'        => array('type' => 'integer', 'key' => 'primary'),
36
                'name'        => array('type' => 'string', 'null' => false),
37
                'join' => 'integer',
38
                'left'        => array('type' => 'integer', 'null' => false),
39
                'right'        => array('type' => 'integer', 'null' => false),
40
        );
41
}