List of all members.
Detailed Description
AroCollection Class File
- Author:
- zeroByte <dispyfree@googlemail.com>
- Copyright:
- mine LGPLv2 AroCollections represent bunches of Aro-objects associcated to one parent This is the class you will use in your daily work
Member Function Documentation
AroCollection::addPermissionCheck |
( |
&$ |
cmd, |
|
|
$ |
obj, |
|
|
$ |
action |
|
) |
| [protected] |
Adds the (complicated) permission check to the given query
- Parameters:
-
CDbCommand | $cmd | the DB-command to add the check to |
unknown | $obj | An Object identifier |
- Returns:
- CDbCommand The extended Db-command
AroCollection::addPositionCheck |
( |
$ |
positions, |
|
|
$ |
type |
|
) |
| |
Builds a single SQL-statement comprising all given positions This SQL-statement will match all those rows being located somewhere left from lft and right from rgt of each given position
- Parameters:
-
array | $positions | All positions to include in our statement |
string | $type | aco/aro |
- Returns:
- string the finished SQL-statement
AroCollection::deny |
( |
$ |
obj, |
|
|
$ |
actions |
|
) |
| |
Denies the object denoted by the $obj-identifier the given actions
- Parameters:
-
type | $obj | the object identifier |
array | $actions | the actions to deny |
- Returns:
- bool
AroCollection::grant |
( |
$ |
obj, |
|
|
$ |
actions |
|
) |
| |
Grants the object denoted by the $obj-identifier the given actions
- Parameters:
-
type | $obj | the object identifier |
array | $actions | the actions to grant |
- Returns:
- bool
We have to overwrite the table as we don't want to operate on a tree of collections but on a tree of nodes
AroCollection::may |
( |
$ |
obj, |
|
|
$ |
action |
|
) |
| |
Looks up if the user is granted a specific action to the given object
- Parameters:
-
string | array | $obj | The object to be checked |
string | $action | the action to be performed |
- Returns:
- bool true if access is granted, false otherwise
static AroCollection::model |
( |
$ |
className = __CLASS__ | ) |
[static] |
Returns the static model of the specified AR class.
- Parameters:
-
string | $className | active record class name. |
- Returns:
- AcoCollection the static model class
Reimplemented from ACLObjectCollection.
AroCollection::relations |
( |
| ) |
|
- Returns:
- array relational rules.
The documentation for this class was generated from the following file: