static
Class MUI.util
static
string
cookie_value
(
pName
,
pDefault
)
pName
<string>
name of the cookie to get.
pDefault
<string>
default value, if the cookie value is not found.
string
static
integer
indexOfInArray
(
pNeedle
,
pHaystack
,
pFrom
)
pNeedle
<anything>
the object to look for in pHaystack.
pHaystack
<array>
the array to look in.
pFrom
<integer>
thje index at which to start the search. Optional; defaults to 0.
integer
static
boolean
is_landing_page
(
pIgnoreDomains
)
A page is considered a landing page if it is not on the same domain as the referrer.
pIgnoreDomains
<array>
a list of domains to ignore; domains in this list will, for all intents and purposes, be considered the same domain as the current domain.
boolean
static
void
set_cookie_value
(
pName
,
pHours
,
pPath
,
pDomain
,
pValue
)
pName
<string>
name of the cookie to set.
pHours
<string|number>
how long should ht ecookie be vlaid for? "-" is forever; "." is no expiry date; "x" deletes the cookie; a number is hte number of hours the cookie is good for
pPath
<string>
path to set the cookie on.
pDomain
<string>
domain to set the cookie on.
pValue
<string>
value of the cookie to set.
void
static
string
url_parameter
(
pURL
,
pParameterName
,
pDefault
)
pURL
<string>
URL string to anlayze.
pParameterName
<string>
the name of the parameter to extract.
pDefault
<string>
default value, if the parameter value is not found.
string