Adds parameters to the given url
static string
appendToUrlString
(string $url, [array $params = array ()], [boolean $forxml = false])
-
string
$url: an URL
-
array
$params: some parameters to append to the url
-
boolean
$forxml: if true, escape some characters to include the url into an html/xml document
escape and simplier a string to be a part of an url path remove or replace not allowed characters etc..
static string
escape
(string $str, [boolean $highlevel = false])
-
string
$str: the string to escape
-
boolean
$highlevel: false : just to a urlencode. true, replace some characters
Gets the url corresponding to an action, in the given format
static mixed
get
(string $actSel, [array $params = array ()], integer $what)
-
string
$actSel: action selector. You can use # instead of the module or the action name, to specify the current url.
-
array
$params: associative array with the parameters
-
integer
$what: the format you want : one of the jUrl const, STRING XMLSTRING JURL JURLACTION
get current Url
static string
getCurrentUrl
([boolean $forxml = false])
-
boolean
$forxml: if true, escape some characters to include the url into an html/xml document
return the current url engine
Gets the absolute url corresponding to an action, in the given format with
the domainName in defaultConfig or current
static string
getFull
(string $actSel, [array $params = array ()], integer $what, [string $domainName = null])
-
string
$actSel: action selector. You can use # instead of the module or the action name, to specify the current url.
-
array
$params: associative array with the parameters
-
integer
$what: the format you want : only jUrl::STRING or jUrl::XMLSTRING
-
string
$domainName: Customized domain name
Parse a url
static
jUrlAction
parse
(
string $scriptNamePath,
string $pathinfo,
array $params)
-
string
$scriptNamePath: /path/index.php
-
string
$pathinfo: the path info of the url.
-
array
$params: url parameter ($_REQUEST)
Parse a url from the request
-
jRequest
$request
-
array
$params: url parameters ($_REQUEST, or $_GET)
perform the opposit of escape
static string
unescape
(string $str)
-
string
$str: the string to escape
constructor
jUrl
__construct
([string $scriptname = ''], [array $params = array ()], [string $pathInfo = ''])
-
string
$scriptname: script name
-
array
$params: parameters
-
string
$pathInfo: path info contents
get the path part of the url (scriptName + pathinfo)
string
getPath
()
get the query part of the url
string
getQuery
([boolean $forxml = false])
-
boolean
$forxml: true: some characters will be escaped
converts the url to a string
string
toString
([boolean $forxml = false])
-
boolean
$forxml: true: some characters will be escaped
Redefinition of:
- jUrlBase::toString()
- get the url string corresponding to the url/action
Inherited Methods
Inherited From jUrlBase
jUrlBase::clearParam()
jUrlBase::delParam()
jUrlBase::getParam()
jUrlBase::setParam()
jUrlBase::toString()
jUrlBase::__toString()