[ Index ]

PHP Cross Reference of ACL Module

title

Body

[close]

/models/ -> Action.php (summary)

(no description)

File Size: 224 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Action:: (10 methods):
  translateActions()
  translateStringActions()
  processActionOperation()
  getAllStringActions()
  model()
  tableName()
  rules()
  relations()
  attributeLabels()
  search()


Class: Action  - X-Ref

This is the model class for table "{{action}}".

Actions represent the things you can do with an Acess control object: for
example you can most often create, read, update and delete objects (also called CRUD)
The actions which can be performed on a given object can be explicitely
denoted by RestrictedActiveRecord::$possibleActions. Actions which are not
in this list, if it is defined, will never be granted.
translateActions($obj, $actions)   X-Ref
Translates the gibven actions into valid actions

param: AclObject $obj the object to perform the permissions on
param: mixed $actions may be a string or an array

translateStringActions($actions)   X-Ref
Processes the given actions

param: mixed $actions string or array of actions

processActionOperation($posMinus, $posPlus, $actions)   X-Ref
Processes the next operation on the actions and returns them

param: int $posMinus pos of the next minus-symbol in the string
param: int $posPlus pos of the next plus-symbol in the string
param: string $actions the action-string
return: array[string] the actions

getAllStringActions()   X-Ref
Fetches all actions from the database and returns them in an indexed array

return: array[string] the actinos

model($className=__CLASS__)   X-Ref
Returns the static model of the specified AR class.

param: string $className active record class name.
return: Action the static model class

tableName()   X-Ref

return: string the associated database table name

rules()   X-Ref

return: array validation rules for model attributes.

relations()   X-Ref

return: array relational rules.

attributeLabels()   X-Ref

return: array customized attribute labels (name=>label)

search()   X-Ref
Retrieves a list of models based on the current search/filter conditions.

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



Generated: Sun Jul 1 19:24:45 2012 Cross-referenced by PHPXref 0.7.1