ManiaLib 1.0b1 API Reference

 Class RequestEngineMVC

Description

RequestEngine designed for MVC framework

Located in /mvc/libraries/RequestEngineMVC.class.php (line 14)

RequestEngine
   |
   --RequestEngineMVC
Method Summary
 void createLink ([string $controller = Route::CUR], [string $action = Route::CUR])
 void createLinkArgList ([string $controller = Route::CUR], [string $action = Route::CUR])
 void getAction ([ $defaultAction = null])
 void getController ()
 void redirectManialink ([string $controller = Route::CUR], [string $action = Route::CUR])
 void redirectManialinkArgList (string $controller, string $action)
Methods
static getInstance (line 32)

Gets the instance

  • access: public
RequestEngineMVC getInstance ()

Redefinition of:
RequestEngine::getInstance()
Use this methode to retrieve a reference on the request object from anywhere in the code
createLink (line 113)

Creates a link to the specified route with all defined GET vars in the URL

  • access: public
void createLink ([string $controller = Route::CUR], [string $action = Route::CUR])
  • string $controller: Can be the name of a controller or a class const of Route
  • string $action: Can be the name of an action or a class const of Route

Redefinition of:
RequestEngine::createLink()
Returns an URL containing all the currently defined GET parameters
createLinkArgList (line 123)

Creates a link to the specified route with, with names of GET vars as parameters of the method

void createLinkArgList ([string $controller = Route::CUR], [string $action = Route::CUR])
  • string $controller: Can be the name of a controller or a class const of Route
  • string $action: Can be the name of an action or a class const of Route

Redefinition of:
RequestEngine::createLinkArgList()
Returns an URL with the request parameters specified as method arguments (eg. )
getAction (line 66)
  • access: public
void getAction ([ $defaultAction = null])
  • $defaultAction
getController (line 71)
  • access: public
void getController ()
redirectManialink (line 81)

Redirects to the specified route with all defined GET vars in the URL

  • access: public
void redirectManialink ([string $controller = Route::CUR], [string $action = Route::CUR])
  • string $controller: Can be the name of a controller or a class const of Route
  • string $action: Can be the name of an action or a class const of Route

Redefinition of:
RequestEngine::redirectManialink()
Creates a Manialink redirection to the specified file with GET parameters specified as method arguments.
redirectManialinkArgList (line 92)

Redirects to the specified route with, with names of GET vars as parameters of the method

  • access: public
void redirectManialinkArgList (string $controller, string $action)
  • string $controller: Can be the name of a controller or a class const of Route
  • string $action: Can be the name of an action or a class const of Route

Inherited Methods

Inherited From RequestEngine

 RequestEngine::createAbsoluteLinkArgList()
 RequestEngine::createLink()
 RequestEngine::createLinkArgList()
 RequestEngine::delete()
 RequestEngine::get()
 RequestEngine::getInstance()
 RequestEngine::getReferer()
 RequestEngine::getStrict()
 RequestEngine::redirectManialink()
 RequestEngine::redirectManialinkAbsolute()
 RequestEngine::redirectToReferer()
 RequestEngine::registerGlobalParam()
 RequestEngine::registerProtectedParam()
 RequestEngine::registerReferer()
 RequestEngine::restore()
 RequestEngine::set()