<note> This class does not need to be included. It is part of the main library. </note>
bool actionExists( string $modName, string $actName)
void dispatch( [string $modName = NULL], [string $actName = NULL])
<note> Optional parameters for module and action exist if you wish to run Mojavi as a page controller.
This method should never be called manually. </note>
void forward( string $modName, string $actName)
string genURL( array $params)
Action &getAction( string $modName, string $actName)
AuthorizationHandler &getAuthorizationHandler( )
void getContentType( )
string getControllerPath( [string $modName = NULL], [string $actName = NULL])
void getCurrentAction( )
<note> If the request has not been forwarded, this will return the the originally requested action. </note>
void getCurrentModule( )
<note> If the request has not been forwarded, this will return the originally requested module. </note>
ExecutionChain &getExecutionChain( )
Controller &getInstance( [string $contentType = 'html'])
string getModuleDir( )
<note> If the request has been forwarded, this will return the directory of the forwarded module. </note>
array &getMojavi( )
int getRenderMode( )
<note> This will return NULL unless specifically set. </note>
One of the two possible render modes:
Request &getRequest( )
string getRequestAction( )
string getRequestModule( )
SessionHandler &getSessionHandler( )
User &getUser( )
View &getView( string $modName, string $actName, string $viewName)
void redirect( string $url)
void setAuthorizationHandler( Authorizationhandler &$handler)
void setContentType( string $contentType)
void setRenderMode( int $mode)
Global render mode, which is one of the following two:
void setSessionHandler( SessionHandler &$handler)
void setUser( User &$user)
bool viewExists( string $modName, string $actName, string $viewName)