Method to dump the structure of a variable for debugging purposes
static
string
dump
(mixed &$var, [boolean $htmlSafe = true])
-
mixed
&$var: A variable
-
boolean
$htmlSafe: True to ensure all characters are htmlsafe
Provides a secure hash based on a seed
static
string
getHash
(string $seed)
-
string
$seed: Seed string.
Method to determine a hash for anti-spoofing variable names
static
string
getToken
([boolean $forceNew = false])
-
boolean
$forceNew: Force creation of a new token.
Method to determine if the host OS is Windows.
static
boolean
isWinOS
()
Method to extract key/value pairs out of a string with XML style attributes
static
array
parseAttributes
(string $string)
-
string
$string: String containing XML style attributes
Sends mail to administrator for approval of a user submission
static
boolean
sendAdminMail
(string $adminName, string $adminEmail, string $email, string $type, string $title, string $author, [string $url = null])
-
string
$adminName: Name of administrator
-
string
$adminEmail: Email address of administrator
-
string
$email: [NOT USED]
-
string
$type: Type of item to approve
-
string
$title: Title of item to approve
-
string
$author: Author of item to approve
-
string
$url: url
Mail function (uses phpMailer)
static
boolean
sendMail
(string $from, string $fromname, mixed $recipient, string $subject, string $body, [boolean $mode = 0], [mixed $cc = null], [mixed $bcc = null], [mixed $attachment = null], [mixed $replyto = null], [mixed $replytoname = null])
-
string
$from: From email address
-
string
$fromname: From name
-
mixed
$recipient: Recipient email address(es)
-
string
$subject: Email subject
-
string
$body: Message body
-
boolean
$mode: False = plain text, true = HTML
-
mixed
$cc: CC email address(es)
-
mixed
$bcc: BCC email address(es)
-
mixed
$attachment: Attachment file name(s)
-
mixed
$replyto: Reply to email address(es)
-
mixed
$replytoname: Reply to name(s)
Prepend a reference to an element to the beginning of an array.
Renumbers numeric keys, so $value is always inserted to $array[0]
integer
array_unshift_ref
(array &$array, mixed &$value)
-
array
&$array: Array to be modified
-
mixed
&$value: Value to add
Return the byte value of a particular string
integer
return_bytes
(string $val)
-
string
$val: String optionally with G, M or K suffix