ACL Extension  0.3
 All Data Structures Namespaces Files Functions Variables
Permission Class Reference
Inheritance diagram for Permission:
PmPermission

Public Member Functions

 tableName ()
 rules ()
 relations ()
 attributeLabels ()
 search ()
 __clone ()

Static Public Member Functions

static model ($className=__CLASS__)

Detailed Description

Definition at line 27 of file Permission.php.


Member Function Documentation

__clone ( )

Clones the object - resets the ID so that it is in fact a new object in the database also

Definition at line 114 of file Permission.php.

{
$this->id = NULL;
$this->isNewRecord = true;
}
attributeLabels ( )
Returns:
array customized attribute labels (name=>label)

Definition at line 77 of file Permission.php.

{
return array(
'id' => 'ID',
'aco_id' => 'Aco',
'aro_id' => 'Aro',
'aco_path' => 'Aco Path',
'aro_path' => 'Aro Path',
'action_id' => 'Action',
);
}
static model (   $className = __CLASS__)
static

Returns the static model of the specified AR class.

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

Definition at line 35 of file Permission.php.

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

Definition at line 62 of file Permission.php.

{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
//
return array(
'Aco' => array(static::BELONGS_TO, Strategy::getClass('AcoNode'), 'aco_id'),
'Aro' => array(static::BELONGS_TO, Strategy::getClass('AroNode'), 'aro_id'),
'Action' => array(static::BELONGS_TO, 'Action', 'action_id')
);
}
rules ( )
Returns:
array validation rules for model attributes.

Definition at line 51 of file Permission.php.

{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
);
}
search ( )

Retrieves a list of models based on the current search/filter conditions.

Returns:
CActiveDataProvider the data provider that can return the models based on the search/filter conditions.

Definition at line 93 of file Permission.php.

{
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria=new CDbCriteria;
$criteria->compare('id',$this->id);
$criteria->compare('aco_id',$this->aco_id);
$criteria->compare('aro_id',$this->aro_id);
$criteria->compare('action_id',$this->action_id);
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}
tableName ( )
Returns:
string the associated database table name

Definition at line 43 of file Permission.php.

{
return '{{permission}}';
}

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