IActionSource Interface Reference
[Interfaces]
Interface for all DAO objects having actions. More...
Inheritance diagram for IActionSource:
Public Member Functions |
|
get_action_source_name () | |
Identify for generic actionh processing.
|
|
get_actions ($user, $context= 'view', $params=false) | |
Get all actions. |
Detailed Description
Interface for all DAO objects having actions.
Definition at line 8 of file iactionsource.cls.php.
Member Function Documentation
IActionSource::get_action_source_name | ( | ) |
IActionSource::get_actions | ( | $ | user, | |
$ | context = 'view' , |
|||
$ | params = false |
|||
) |
Get all actions.
- Parameters:
-
dao_User The current user or false if no user is logged on String The context. Some actions may not be approbiate in some situations. For example, action 'edit' should not be returned when editing. THis can be expressed throug a context named 'edit'. Default context is 'view'.
- Returns:
- Array Associative array with action url as key and action description as value
Implemented in DataObjectBase.
The documentation for this interface was generated from the following file:
- gyro/core/lib/interfaces/iactionsource.cls.php