ACL Extension
0.3
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
PmAcoNode.php
Go to the documentation of this file.
1
<?php
2
11
class
PmAcoNode
extends
PmAclNode
{
12
16
public
function
tableName
()
17
{
18
return
'{{aco}}'
;
19
}
20
24
public
function
relations
()
25
{
26
// NOTE: you may need to adjust the relation name and the related
27
// class name for the relations automatically generated below.
28
return
array(
29
'aco'
=> array(static::BELONGS_TO,
'PmAco'
,
'collection_id'
),
30
'permissions'
=> array(static::HAS_MANY,
'Permission'
,
'aco_id'
)
31
);
32
}
38
public
static
function
model
($className=__CLASS__)
39
{
40
return
parent::model
($className);
41
}
42
43
47
public
function
rules
()
48
{
49
// NOTE: you should only define rules for those attributes that
50
// will receive user inputs.
51
return
array(
52
);
53
}
54
58
public
function
attributeLabels
()
59
{
60
return
array(
61
'id'
=>
'ID'
,
62
'collection_id'
=>
'Collection Id'
,
63
'path'
=>
'path'
,
64
);
65
}
66
}
67
68
?>
Web
exportAcl
acl
components
strategies
nestedSet
pathMaterialization
models
PmAcoNode.php
Generated on Sat Jun 9 2012 15:23:10 for ACL Extension by
1.8.1