SGL_URLUrl related functionality.
Located in /SGL/Url.php (line 51)
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 124)
Anchor
mixed
$aQueryData
(line 115)
mixed
$aRes
= array() (line 118)
mixed
$aStrategies
= array() (line 117)
mixed
$frontScriptName
(line 116)
string
$host
(line 81)
Host
string
$password
(line 75)
Password
string
$path
(line 93)
Path
integer
$port
(line 87)
Port
string
$protocol
(line 63)
Protocol
array
$querystring
(line 114)
Query string.
The querystring is defined as everthing from the frontScriptName to the end of the URI, not including anchors, examples:
string
$url
(line 57)
Full url
bool
$useBrackets
(line 130)
Whether to use []
string
$username
(line 69)
Username
static toPartialArray (line 815)
Returns an array of all elements from the front controller script name onwards, including the frontScriptName.
Constructor __construct (line 161)
PHP5 Constructor
Parses the given url and stores the various parts Defaults are used in certain cases
Constructor SGL_URL (line 137)
PHP4 Constructor
addSessionInfo (line 771)
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 676)
Returns hostname + path with final slashes removed if present.
getFrontScriptName (line 650)
Returns the front controller script name.
getHostName (line 635)
getManagerName (line 367)
getModuleName (line 372)
getPath (line 640)
getQueryData (line 383)
Returns querystring data as an array.
getQueryString (line 421)
Returns querystring portion of url.
getStandardPort (line 564)
Returns the standard port number for a protocol.
getStrategiesFingerprint (line 504)
init (line 194)
Attempts to parse URI elements.
makeLink (line 547)
parseQueryString (line 432)
Build array of strategies and executes parsers.
parseResourceUri (line 715)
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 463)
Parses an array of querystring param names and values and returns a key/value hash.
removeSessionInfo (line 791)
Removes the session name and session value elements from an array.
removeStrategies (line 799)
resolveServerVars (line 596)
Resolves PHP_SELF var depending on implementation, ie apache, iis, cgi, etc.
setProtocol (line 585)
Forces the URL to a particular protocol.
singleton (line 356)
SGL_Url singletons are currently only used for output URLs, so the output format is taken from $conf.
toAbsolute (line 662)
Ensures URL is fully qualified.
toString (line 520)
Returns the full URI as a string.
Documentation generated on Wed, 23 Jan 2008 17:04:48 +0000 by phpDocumentor 1.4.1