Executes arbitrary commands after the action instance has been completed.
This function provides the ability to tack on operations to the end of the execution of an action for example, for the purpose of cleaning up file handles
API Tags:
Redefined in descendants as:
Executes arbitrary commands before the action instance is created.
This function provides the ability to interject operations such as validating logins or initializing tools before the action is executed.
API Tags:
Redefined in descendants as:
void DoAction(
string
$action, string
$requestmethod
)
|
|
Perform an action from this module
This function executes an action which belongs to the module instance.
Parameters:
|
string |
$action: |
The name of the action to execute |
|
string |
$requestmethod: |
The method of the request (GET or POST) |
API Tags:
Information Tags:
| Throws: | Krai_Module_Exception_Mdone |
void RedirectSilent(
string
$module, string
$action, [
$params = array()]
)
|
|
Execute a redirect behind the scenes
This function executes a redirect to another module/action pair behind the scenes. The browser is not redirected, just the script execution.
Parameters:
|
string |
$module: |
The module to redirect to |
|
string |
$action: |
The action to execute |
|
array |
$params: |
The parameters for the request |
API Tags:
Information Tags:
| Throws: | Krai_Module_Exception_Adone |
void RedirectTo(
string
$module, [string
$action = null], [
$params = array()]
)
|
|
Execute a redirect
This function executes a redirect via a Location header. It can redirect to another module/action/params target as generated by Krai_Router::UrlFor(), or to an arbitrary URL by passing that url as the only parameter.
Parameters:
|
string |
$module: |
The module or URL to redirect to |
|
string |
$action: |
The action to redirect to |
|
array |
$params: |
The parameters for generating the url |
API Tags:
Information Tags:
| Throws: | Krai_Module_Exception_Adone |