List of all members.
Public Member Functions |
| may ($obj, $action) |
| grant ($obj, $actions) |
| deny ($obj, $actions) |
| afterSave () |
Protected Member Functions |
| loadAroCollection () |
Protected Attributes |
| $aroCollection = NULL |
Detailed Description
RequestingActiveRecord Class File
- Author:
- zeroByte <dispyfree@googlemail.com>
- Copyright:
- mine LGPLv2 This class is intended as a base for objects which try to acces other objects taking into account their rights In fact this class is yet another wrapper for an AroCollection
Member Function Documentation
RequestingActiveRecord::afterSave |
( |
| ) |
|
This method takes care to associate an ARO-collection with this one
- Parameters:
-
RequestingActiveRecord::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
RequestingActiveRecord::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
RequestingActiveRecord::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
The documentation for this class was generated from the following file:
- models/RequestingActiveRecord.php