Action methods
__construct( setup )
setupA hash array with the following possible keys:moduleTypeThe type of the module that will be called on this action. Actions can call methods on both Core and App modules, but also on Core and App UiComponents.moduleNameThe name of the module that will be called for this action.methodNameThe name of the method within the module that will be called for this action. This method must return false if he doesn't accepts the request. It can return true or nothing if the request has been accepted.requestThe Request that triggers this Action.isCacheWhether this action must be cached or not.isSensibleToBruteForceAttacksWhether this action is sensible to brute force attacks or not. For example, an action that checks a given password and returns false if the password is incorrect. In such case, this request will sleep for some time when the password is wrong in order to discourage crackers.timeoutWhen set, this action must have this specific timeout.cacheProviderNameThe name of the cache provider to use when caching this action, defaults to thedefaultActionCacheProviderNameconfig key for the Actions module.cacheTtlThe TTL to use when caching this action, defaults to thedefaultActionCacheTtlconfig key for the Actions module.cachePrefixThe cache prefix to use when caching this action, defaults to thedefaultActionCachePrefixconfig key for the Actions module.
clearCache( parameterValues )
Removes this action from cache
parameterValuesAn optional hash array containing the values for the variable path components, parameters andadditionalCacheKeysinvolved in this action's Request. If not specified, the current parameter values will be used.
isCli
Returns: A boolean indicating whether this Action is intended for a command line request or not
Last updated
Was this helpful?