Elgg
Version 4.3
|
Actions service. More...
Public Member Functions | |
__construct (RouteRegistrationService $routes, HandlersService $handlers) | |
Constructor. More... | |
register (string $action, $handler= '', string $access= 'logged_in') | |
Registers an action. More... | |
unregister (string $action) | |
Unregisters an action. More... | |
exists (string $action) | |
Check if an action is registered and its script exists. More... | |
getAllActions () | |
Get all actions. More... | |
Protected Attributes | |
$routes | |
$handlers | |
Actions service.
Definition at line 20 of file ActionsService.php.
Elgg\ActionsService::__construct | ( | RouteRegistrationService | $routes, |
HandlersService | $handlers | ||
) |
Constructor.
RouteRegistrationService | $routes | Routes |
HandlersService | $handlers | Handlers service |
Definition at line 53 of file ActionsService.php.
Elgg\ActionsService::exists | ( | string | $action | ) |
Check if an action is registered and its script exists.
string | $action | Action name |
Definition at line 152 of file ActionsService.php.
Elgg\ActionsService::getAllActions | ( | ) |
Elgg\ActionsService::register | ( | string | $action, |
$handler = '' , |
|||
string | $access = 'logged_in' |
||
) |
Registers an action.
string | $action | The name of the action (eg "register", "account/settings/save") |
string | callable | $handler | Optionally, the filename where this action is located. If not specified, will assume the action is in elgg/actions/<action>.php |
string | $access | Who is allowed to execute this action: public, logged_in, logged_out, admin. (default: logged_in) |
Definition at line 71 of file ActionsService.php.
Elgg\ActionsService::unregister | ( | string | $action | ) |
Unregisters an action.
string | $action | Action name |
Definition at line 131 of file ActionsService.php.
|
protected |
Definition at line 45 of file ActionsService.php.
|
protected |
Definition at line 40 of file ActionsService.php.