-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGroupFixture.php
More file actions
60 lines (56 loc) · 2.05 KB
/
GroupFixture.php
File metadata and controls
60 lines (56 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* GroupFixture
*
* @author Kohei Teraguchi <kteraguchi@commonsnet.org>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
*/
/**
* Summary for GroupFixture
*/
class GroupFixture extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null),
'lft' => array('type' => 'integer', 'null' => true, 'default' => null),
'rght' => array('type' => 'integer', 'null' => true, 'default' => null),
'has_room' => array('type' => 'boolean', 'null' => true, 'default' => null, 'comment' => 'Group has room or not.'),
'need_approval' => array('type' => 'boolean', 'null' => true, 'default' => null),
'can_read_by_self' => array('type' => 'boolean', 'null' => true, 'default' => null, 'comment' => '自分自身がグループの構成員であるかどうか、自分自身が閲覧し得るか否か。
e.g.) 嫌いな人グループを作った当人は閲覧できても、嫌いなグループに登録されただけの人は閲覧不可など。'),
'created_user' => array('type' => 'integer', 'null' => true, 'default' => null),
'created' => array('type' => 'datetime', 'null' => true, 'default' => null),
'modified_user' => array('type' => 'integer', 'null' => true, 'default' => null),
'modified' => array('type' => 'datetime', 'null' => true, 'default' => null),
'indexes' => array(
'PRIMARY' => array('column' => 'id', 'unique' => 1)
),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
);
/**
* Records
*
* @var array
*/
public $records = array(
array(
'id' => 1,
'parent_id' => 1,
'lft' => 1,
'rght' => 1,
'has_room' => 1,
'need_approval' => 1,
'can_read_by_self' => 1,
'created_user' => 1,
'created' => '2014-12-24 08:01:09',
'modified_user' => 1,
'modified' => '2014-12-24 08:01:09'
),
);
}