SGL_URLUrl related functionality.
Located in /SGL/Url.php (line 54)
SGL_URL
__construct
([string $url = null], [bool $useBrackets = true], [SGL_UrlParserStrategy $parserStrategy = null], array 3)
SGL_URL
SGL_URL
([ $url = null], [ $useBrackets = true], [ $parserStrategy = null], [ $conf = null])
void
makeLink
([ $action = ''], [ $mgr = ''], [ $mod = ''], [ $aList = array()], [ $params = ''], [ $idx = 0], [ $output = ''])
string
$anchor
(line 127)
Anchor
mixed
$aQueryData
(line 118)
mixed
$aRes
= array() (line 121)
mixed
$aStrategies
= array() (line 120)
mixed
$frontScriptName
(line 119)
string
$host
(line 84)
Host
string
$password
(line 78)
Password
string
$path
(line 96)
Path
integer
$port
(line 90)
Port
string
$protocol
(line 66)
Protocol
array
$querystring
(line 117)
Query string.
The querystring is defined as everthing from the frontScriptName to the end of the URI, not including anchors, examples:
string
$url
(line 60)
Full url
bool
$useBrackets
(line 133)
Whether to use []
string
$username
(line 72)
Username
static toPartialArray (line 818)
Returns an array of all elements from the front controller script name onwards, including the frontScriptName.
Constructor __construct (line 164)
PHP5 Constructor
Parses the given url and stores the various parts Defaults are used in certain cases
Constructor SGL_URL (line 140)
PHP4 Constructor
addSessionInfo (line 774)
Checks to see if cookies are enabled, if not, session id is added to URL.
PHP's magic querystring functionality is negated in SimpleNav::getTabsByRid(), in other words, the ?PHPSESSID=aeff023230323 is stripped out
getBase (line 679)
Returns hostname + path with final slashes removed if present.
getFrontScriptName (line 653)
Returns the front controller script name.
getHostName (line 638)
getManagerName (line 370)
getModuleName (line 375)
getPath (line 643)
getQueryData (line 386)
Returns querystring data as an array.
getQueryString (line 424)
Returns querystring portion of url.
getStandardPort (line 567)
Returns the standard port number for a protocol.
getStrategiesFingerprint (line 507)
init (line 197)
Attempts to parse URI elements.
makeLink (line 550)
parseQueryString (line 435)
Build array of strategies and executes parsers.
parseResourceUri (line 718)
Parse string stored in resource_uri field in section table.
This will always contain URL elements after the frontScriptName (index.php), never a FQDN, and never simplified names, ie section table must specify module name and manager name explicitly, even if they are the same, ie user/user
querystringArrayToHash (line 466)
Parses an array of querystring param names and values and returns a key/value hash.
removeSessionInfo (line 794)
Removes the session name and session value elements from an array.
removeStrategies (line 802)
resolveServerVars (line 599)
Resolves PHP_SELF var depending on implementation, ie apache, iis, cgi, etc.
setProtocol (line 588)
Forces the URL to a particular protocol.
singleton (line 359)
SGL_Url singletons are currently only used for output URLs, so the output format is taken from $conf.
toAbsolute (line 665)
Ensures URL is fully qualified.
toString (line 523)
Returns the full URI as a string.
Documentation generated on Tue, 23 Feb 2010 18:14:33 +0000 by phpDocumentor 1.4.3