Class SGL_Request_Browser2

Description

Browser2 request type, which uses Horder_Routes package to resolve query data, instead SGL_Url heavy parsing used by Browser1.

Located in /SGL/Request/Browser2.php (line 18)

SGL_Request
   |
   --SGL_Request_Browser2
Direct descendents
Class Description
SGL_Request_Ajax2 Browser2 request type, which uses Horder_Routes package to resolve query data, instead SGL_Url heavy parsing used by Browser1.
Method Summary
 static array getAvailableManagers ()
 static mixed _getManagerName (string $sectionName)
 void init ()
 array _getCustomRoutes ()
 boolean _ignoreRouteModification ( &$aRoute, array $aRoute)
 array _prependRegex (array $aRoutes, string $regex)
 array _urlParamStringToArray (string $params)
Variables

Inherited Variables

Inherited from SGL_Request

SGL_Request::$aProps
Methods
static getAvailableManagers (line 179)

Get list of all available managers. Used as callback for Horde_Routes to generate correct regex.

  • access: public
array getAvailableManagers ()
static _getManagerName (line 226)

Get manager name from congif directive. Callback for array_map.

  • return: string or null
  • access: private
mixed _getManagerName (string $sectionName)
  • string $sectionName
init (line 25)

Resolve query data by connecting to routes.

  • access: public
void init ()

Redefinition of:
SGL_Request::init()

Redefined in descendants as:
_getCustomRoutes (line 241)

Get custom routes array.

  • access: private
array _getCustomRoutes ()
_ignoreRouteModification (line 295)

Looks if custom route option is set to ignore prepending of :lang.

  • see: self::_prependRegex()
  • todo: make method names more obvious
  • access: private
boolean _ignoreRouteModification ( &$aRoute, array $aRoute)
  • array $aRoute
  • &$aRoute
_prependRegex (line 266)

Prepend regex to routes.

  • access: private
array _prependRegex (array $aRoutes, string $regex)
  • array $aRoutes
  • string $regex
_urlParamStringToArray (line 206)

Extract k/v pairs from string.

  • access: private
array _urlParamStringToArray (string $params)
  • string $params

Inherited Methods

Inherited From SGL_Request

 SGL_Request::add()
 SGL_Request::constantToString()
 SGL_Request::debug()
 SGL_Request::get()
 SGL_Request::getActionName()
 SGL_Request::getAll()
 SGL_Request::getManagerName()
 SGL_Request::getModuleName()
 SGL_Request::getType()
 SGL_Request::getUri()
 SGL_Request::init()
 SGL_Request::isEmpty()
 SGL_Request::merge()
 SGL_Request::reset()
 SGL_Request::set()
 SGL_Request::singleton()
 SGL_Request::_getRequestType()

Documentation generated on Tue, 23 Feb 2010 18:14:28 +0000 by phpDocumentor 1.4.3