Mercurial > hg > Members > shoshi > webvirt
comparison cake/tests/fixtures/node_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 file. | |
4 * | |
5 * PHP versions 4 and 5 | |
6 * | |
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
9 * | |
10 * Licensed under The MIT License | |
11 * Redistributions of files must retain the above copyright notice. | |
12 * | |
13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
14 * @link http://cakephp.org CakePHP(tm) Project | |
15 * @package cake | |
16 * @subpackage cake.tests.fixtures | |
17 * @since CakePHP(tm) v 1.2.0.6879 //Correct version number as needed** | |
18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) | |
19 */ | |
20 | |
21 /** | |
22 * Short description for file. | |
23 * | |
24 * @package cake | |
25 * @subpackage cake.tests.fixtures | |
26 * @since CakePHP(tm) v 1.2.0.6879 //Correct version number as needed** | |
27 */ | |
28 class NodeFixture extends CakeTestFixture { | |
29 | |
30 /** | |
31 * name property | |
32 * | |
33 * @var string 'Node' | |
34 * @access public | |
35 */ | |
36 var $name = 'Node'; | |
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 'name' => 'string', | |
47 'state' => 'integer' | |
48 ); | |
49 | |
50 /** | |
51 * records property | |
52 * | |
53 * @var array | |
54 * @access public | |
55 */ | |
56 var $records = array( | |
57 array('id' => 1, 'name' => 'First', 'state' => 50), | |
58 array('id' => 2, 'name' => 'Second', 'state' => 60), | |
59 ); | |
60 } |