ACL Extension
0.3
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
PmAco.php
Go to the documentation of this file.
1
<?php
2
11
class
PmAco
extends
PmAclObject
12
{
13
19
public
static
function
model
($className=__CLASS__)
20
{
21
return
parent::model
($className);
22
}
23
27
public
function
tableName
()
28
{
29
return
'{{aco_collection}}'
;
30
}
31
35
public
function
rules
()
36
{
37
// NOTE: you should only define rules for those attributes that
38
// will receive user inputs.
39
return
array(
40
);
41
}
42
46
public
function
relations
()
47
{
48
// NOTE: you may need to adjust the relation name and the related
49
// class name for the relations automatically generated below.
50
return
array(
51
'acoNodes'
=> array(static::HAS_MANY,
'PmAcoNode'
,
'collection_id'
),
52
'permissions'
=> array(static::HAS_MANY,
'Permission'
,
'aco_id'
)
53
);
54
}
55
59
public
function
attributeLabels
()
60
{
61
return
array(
62
'id'
=>
'ID'
,
63
'alias'
=>
'Alias'
,
64
'model'
=>
'Model'
,
65
'foreign_key'
=>
'Foreign Key'
,
66
'creaed'
=>
'Created'
67
);
68
}
69
70
}
71
?>
Web
exportAcl
acl
components
strategies
nestedSet
pathMaterialization
models
PmAco.php
Generated on Sat Jun 9 2012 15:23:10 for ACL Extension by
1.8.1