$errors
$errors :
Class APISecurity
check( clearIfValid = true, string|bool token = false, name = API_TOKEN) :
Check if there is a valid token in $_REQUEST[$name . '_REQUEST'] - can be expanded for more wide use, later (Mith)
clearIfValid | whether to clear the token after validation |
|
string|bool | token | token to validate |
name | name of session variable |
validateToken(string|bool token = false, clearIfValid = true, name = API_TOKEN) :
Check if a token is valid. If no token is specified, $_REQUEST[$name . '_REQUEST'] is checked
string|bool | token | token to validate |
clearIfValid | whether to clear the token value if valid |
|
name | session name to validate |