ACL Extension  0.3
 All Data Structures Namespaces Files Functions Variables
PmAco Class Reference
Inheritance diagram for PmAco:
PmAclObject AclObject

Public Member Functions

 tableName ()
 rules ()
 relations ()
 attributeLabels ()
- Public Member Functions inherited from PmAclObject
 getFreeNodes ()
 getPaths ()
 fetchComprisedPositions ()
 addPositionCheck ($positions, $type, $table= 't')
 getDirectChildNodes (AclObject $child=NULL)
 getDirectParentNodes (AclObject $parent=NULL)
 beforeDelete ()
 join ($obj)
 leave ($obj)
 is ($obj)
- Public Member Functions inherited from AclObject
 getChildObjects ()
 getParentObjects ()
 loadObject ($identifier, $model=NULL)
 loadObjects ($identifier, $model=NULL, $onlyFirst=true)
 getNodes ()
 afterSave ()
 getAssociatedObject ()

Static Public Member Functions

static model ($className=__CLASS__)
- Static Public Member Functions inherited from PmAclObject
static buildTreeQueryCondition ($source, $destination, $disableInheritance=false)
- Static Public Member Functions inherited from AclObject
static loadObjectStatic ($identifier, $model)
static loadObjectsStatic ($identifier, $model=NULL, $onlyFirst=true)

Additional Inherited Members

- Protected Member Functions inherited from PmAclObject
 createNode ($parent=NULL)
- Protected Member Functions inherited from AclObject
 beforeJoin (&$obj)
 beforeLeave (&$obj)
 beforeIs (&$obj)
 assureSaved ()
 assureSafety (&$obj)

Detailed Description

Definition at line 11 of file PmAco.php.


Member Function Documentation

attributeLabels ( )
Returns:
array customized attribute labels (name=>label)

Definition at line 59 of file PmAco.php.

{
return array(
'id' => 'ID',
'alias' => 'Alias',
'model' => 'Model',
'foreign_key' => 'Foreign Key',
'creaed' => 'Created'
);
}
static model (   $className = __CLASS__)
static

Returns the static model of the specified AR class.

Parameters:
string$classNameactive record class name.
Returns:
PM_Aco the static model class

Definition at line 19 of file PmAco.php.

{
return parent::model($className);
}
relations ( )
Returns:
array relational rules.

Definition at line 46 of file PmAco.php.

{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'acoNodes' => array(static::HAS_MANY, 'PmAcoNode', 'collection_id'),
'permissions' => array(static::HAS_MANY, 'Permission', 'aco_id')
);
}
rules ( )
Returns:
array validation rules for model attributes.

Definition at line 35 of file PmAco.php.

{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
);
}
tableName ( )
Returns:
string the associated database table name

Definition at line 27 of file PmAco.php.

{
return '{{aco_collection}}';
}

The documentation for this class was generated from the following file: