Class SGL_URL2

Description

Url class to work with Browser2 request type.

Located in /SGL/Url2.php (line 9)


	
			
Variable Summary
 Horde_Routes_Util $_routes
Method Summary
 SGL_URL2 __construct ( $oRoutes)
 string getBaseUrl ([boolean $skipProtocol = false], [boolean $includeFc = true])
 string getQueryString ()
 void getRequest ()
 string makeCurrentLink ([array $aQueryData = array()])
 string makeLink ([array $aParams = array()])
 viod setMapperOptions (array $aOpts)
 void setRequest (SGL_Request $oRequest)
 string toString ()
 array _makeDefaultParamsArray (array $aParams)
 array _resolveOldStyleParams (array $aParams)
 boolean _urlIsMatched (string $url)
Variables
SGL_Request $_request (line 14)
  • access: private
Horde_Routes_Util $_routes (line 19)
  • access: private
Methods
Constructor __construct (line 26)

Constructor.

  • access: public
SGL_URL2 __construct ( $oRoutes)
  • Horde_Routes_Util $oRoutes
getBaseUrl (line 258)

Get Seagull base URL without protocol.

  • access: public
string getBaseUrl ([boolean $skipProtocol = false], [boolean $includeFc = true])
  • boolean $skipProtocol
  • boolean $includeFc
getQueryString (line 279)

Get query string as in SGL_Url1.

  • deprecated:
  • access: public
string getQueryString ()
getRequest (line 41)
  • access: public
void getRequest ()
makeCurrentLink (line 233)

Make current link.

  • access: public
string makeCurrentLink ([array $aQueryData = array()])
  • array $aQueryData
makeLink (line 162)

Make link.

  • todo: add https support.
  • access: public
string makeLink ([array $aParams = array()])
  • array $aParams: mixed
setMapperOptions (line 53)

Set mapper options.

  • access: public
viod setMapperOptions (array $aOpts)
  • array $aOpts
setRequest (line 36)

Set request.

  • access: public
void setRequest (SGL_Request $oRequest)
toString (line 245)

Alias for makeCurrentLink().

  • see: self::makeCurrentLink()
  • access: public
string toString ()
_makeDefaultParamsArray (line 120)

Make array suitable for default Routes.

  • access: private
array _makeDefaultParamsArray (array $aParams)
  • array $aParams
_resolveOldStyleParams (line 74)

Format params specified in old SGL_Output::makeUrl() style to new system.

  • return: Array ( moduleName => name of module managerName => name of manager k1 => v1 k2 => v2 )
  • access: private
array _resolveOldStyleParams (array $aParams)
  • array $aParams
_urlIsMatched (line 148)

Identify if given URL is ok (i.e. was matched by Horde).

  • access: private
boolean _urlIsMatched (string $url)
  • string $url

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