~tsep-dev/tsep/0.9-beta

« back to all changes in this revision

Viewing changes to branches/symfony/cake/tests/fixtures/flag_tree_fixture.php

  • Committer: geoffreyfishing
  • Date: 2011-01-11 23:46:12 UTC
  • Revision ID: svn-v4:ae0de26e-ed09-4cbe-9a20-e40b4c60ac6c::125
Created a symfony branch for future migration to symfony

Show diffs side-by-side

added added

removed removed

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