|
| execute ($action, $forwarder="") |
|
| register ($action, $filename="", $access= 'logged_in') |
|
| unregister ($action) |
|
| validateActionToken ($visible_errors=true, $token=null, $ts=null) |
|
| getActionTokenTimeout () |
|
| gatekeeper ($action) |
|
| validateTokenOwnership ($token, $timestamp, $session_token= '') |
| Was the given token generated for the session defined by session_token? More...
|
|
| generateActionToken ($timestamp, $session_token= '') |
| Generate a token from a session token (specifying the user), the timestamp, and the site key. More...
|
|
| exists ($action) |
|
| ajaxForwardHook ($hook, $reason, $return, $params) |
|
| ajaxActionHook () |
|
| getAllActions () |
| Get all actions. More...
|
|
Definition at line 15 of file ActionsService.php.
Elgg\ActionsService::ajaxActionHook |
( |
| ) |
|
Elgg\ActionsService::ajaxForwardHook |
( |
|
$hook, |
|
|
|
$reason, |
|
|
|
$return, |
|
|
|
$params |
|
) |
| |
Elgg\ActionsService::execute |
( |
|
$action, |
|
|
|
$forwarder = "" |
|
) |
| |
Elgg\ActionsService::exists |
( |
|
$action | ) |
|
Elgg\ActionsService::gatekeeper |
( |
|
$action | ) |
|
Elgg\ActionsService::generateActionToken |
( |
|
$timestamp, |
|
|
|
$session_token = '' |
|
) |
| |
Generate a token from a session token (specifying the user), the timestamp, and the site key.
- See also
- generate_action_token
- Parameters
-
int | $timestamp | Unix timestamp |
string | $session_token | Session-specific token |
- Returns
- string private
Definition at line 282 of file ActionsService.php.
Elgg\ActionsService::getActionTokenTimeout |
( |
| ) |
|
- See also
- ::validateActionToken private
- Since
- 1.9.0
- Returns
- int number of seconds that action token is valid
Definition at line 216 of file ActionsService.php.
Elgg\ActionsService::getAllActions |
( |
| ) |
|
static Elgg\ActionsService::includeFile |
( |
|
$file | ) |
|
|
staticprotected |
Include an action file with isolated scope.
- Parameters
-
string | $file | File to be interpreted by PHP |
- Returns
- void
Definition at line 87 of file ActionsService.php.
Elgg\ActionsService::register |
( |
|
$action, |
|
|
|
$filename = "" , |
|
|
|
$access = 'logged_in' |
|
) |
| |
Elgg\ActionsService::unregister |
( |
|
$action | ) |
|
Elgg\ActionsService::validateActionToken |
( |
|
$visible_errors = true , |
|
|
|
$token = null , |
|
|
|
$ts = null |
|
) |
| |
Elgg\ActionsService::validateTokenOwnership |
( |
|
$token, |
|
|
|
$timestamp, |
|
|
|
$session_token = '' |
|
) |
| |
Was the given token generated for the session defined by session_token?
- Parameters
-
string | $token | CSRF token |
int | $timestamp | Unix time |
string | $session_token | Session-specific token |
- Returns
- bool private
Definition at line 265 of file ActionsService.php.
Elgg\ActionsService::validateTokenTimestamp |
( |
|
$ts | ) |
|
|
protected |
Is the token timestamp within acceptable range?
- Parameters
-
int | $ts | timestamp from the CSRF token |
- Returns
- bool
Definition at line 204 of file ActionsService.php.
The documentation for this class was generated from the following file: