Actions methods

Returns the action with the given actionName.
  • actionName String
Returns: Action object or false if the action has not been mapped.

Initializes the module, loads the dependent module classes and calls the mapActions method on all available modules using Engine::callMethodOnAllModules.

Checks if the action with the given actionName has been mapped.
  • actionName String
Returns: Boolean

Maps an action for a module.
  • actionName String
  • action Action object
$e->Actions->mapAction(
"home",
new \Cherrycake\Action([
"moduleType" => \Cherrycake\ACTION_MODULE_TYPE_APP,
"moduleName" => "Home",
"methodName" => "homePage",
"request" => new \Cherrycake\Request([
"pathComponents" => false,
"parameters" => false
])
]);
);

Parses the received query to find the corresponding action and runs it
Last modified 2yr ago
Copy link
On this page
getAction( actionName )
init
isAction( actionName )
mapAction( actionName, action )
run