ampReplace (line
127)
Replaces & with & for xhtml compliance
Needed to handle unicode conflicts due to unicode conflicts
void
ampReplace
(mixed $text)
html_entity_decode (line
535)
html_entity_decode function for backward compatability in PHP
void
html_entity_decode
(string $string, [string $opt = ENT_COMPAT])
-
string
$string
-
string
$opt
josErrorAlert (line
239)
void
josErrorAlert
(mixed $text, [mixed $action = 'window.history.go(-1);'], [mixed $mode = 1])
josMail (line
573)
Mail function (uses phpMailer)
boolean
josMail
(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 e-mail address
-
string
$fromname: From name
-
mixed
$recipient: Recipient e-mail address(es)
-
string
$subject: E-mail subject
-
string
$body: Message body
-
boolean
$mode: false = plain text, true = HTML
-
mixed
$cc: CC e-mail address(es)
-
mixed
$bcc: BCC e-mail address(es)
-
mixed
$attachment: Attachment file name(s)
-
mixed
$replyto: Reply to email address(es)
-
mixed
$replytoname: Reply to name(s)
josRedirect (line
197)
Utility function redirect the browser location to another url
void
josRedirect
(string $url, [string $msg = ''])
-
string
$url: The URL to redirect to
-
string
$msg: A message to display on redirect
josSendAdminMail (line
640)
Sends mail to administrator for approval of a user submission
boolean
josSendAdminMail
(string $adminName, string $adminEmail, string $email, string $type, string $title, string $author, [mixed $url = null])
-
string
$adminName: Name of administrator
-
string
$adminEmail: Email address of administrator
-
string
$email: [NOT USED TODO: Deprecate?]
-
string
$type: Type of item to approve
-
string
$title: Title of item to approve
-
string
$author: Author of item to approve
josURL (line
673)
Method to process internal Joomla URLs
void
josURL
(string $url, [int $ssl = 0], [int $sef = 1])
-
string
$url: Absolute or Relative URL to Joomla resource
-
int
$ssl: Secure state for the processed URL 1: Make URL secure using global secure site URL 0: Leave URL in the same secure state as it was passed to the function -1: Make URL unsecure using the global unsecure site URL
-
int
$sef: Search engine friendly state for the processed URL 1: Make URL search engine friendly 0: Leave URL in the same sef state as it was passed to the function
mosArrayToInts (line
783)
Function to convert array to integer values
array
mosArrayToInts
(array &$array, [int $default = null])
-
array
&$array
-
int
$default: A default value to assign if $array is not an array
mosBackTrace (line
267)
Format a backtrace error
void
mosBackTrace
()
mosBindArrayToObject (line
149)
Copy the named array content into the object as properties only existing properties of object are filled. when undefined in hash, properties wont be deleted
void
mosBindArrayToObject
(array $array, obj &$obj, [string $ignore = ''], [boolean $prefix = NULL], [mixed $checkSlashes = true])
-
array
$array: the input array
-
obj
&$obj: byref the object to fill of any class
-
string
$ignore
-
boolean
$prefix
mosCompressID (line
509)
void
mosCompressID
(mixed $ID)
mosCreateGUID (line
501)
void
mosCreateGUID
()
mosCurrentDate (line
434)
Returns current date according to current local and time offset
current
mosCurrentDate
([string $format = ""])
-
string
$format: format optional format for strftime
mosExpandID (line
513)
void
mosExpandID
(mixed $ID)
mosFormatDate (line
409)
Returns formated date according to current local and adds time offset
formated
mosFormatDate
(string $date, [string $format = ""], [offset $offset = ""])
-
string
$date: date in datetime format
-
string
$format: format optional format for strftime
-
offset
$offset: time offset if different than global one
mosGetOrderingList (line
330)
void
mosGetOrderingList
(string $sql, [integer $chop = '30'])
-
string
$sql: SQL with ordering As value and 'name field' AS text
-
integer
$chop: The length of the truncated headline
mosGetParam (line
29)
Utility function to return a value from a named array or a specified default
void
mosGetParam
(array &$arr, string $name, [mixed $def = null], [int $mask = 0])
-
array
&$arr: A named array
-
string
$name: The key to search for
-
mixed
$def: The default value to give if no key found
-
int
$mask: An options mask: _MOS_NOTRIM prevents trim, _MOS_ALLOWHTML allows safe html, _MOS_ALLOWRAW allows raw input
mosHash (line
525)
Provides a secure hash based on a seed
string
mosHash
(string $seed)
-
string
$seed: Seed string
mosMakeHtmlSafe (line
103)
Makes a variable safe to display in forms
Object parameters that are non-string, array, object or start with underscore will be converted
void
mosMakeHtmlSafe
(object An &$mixed, [int $quote_style = ENT_QUOTES], [string|array $exclude_keys = ''])
-
object An
&$mixed: object to be parsed
-
int
$quote_style: The optional quote style for the htmlspecialchars function
-
string|array
$exclude_keys: An optional single field name or array of field names not to be parsed (eg, for a textarea)
mosMenuCheck (line
371)
Checks whether a menu option is within the users access level
boolean
mosMenuCheck
(
int $Itemid,
string $menu_option,
int $task,
database $gid)
-
int
$Itemid: Item id number
-
string
$menu_option: The menu option
-
int
$task: The users group ID number
-
database
$gid: A database connector object
mosNotAuth (line
287)
Displays a not authorised message
If the user is not logged in then an addition message is displayed.
void
mosNotAuth
()
mosObjectToArray (line
172)
void
mosObjectToArray
(mixed $p_obj)
mosPrepareSearchContent (line
743)
Prepares results from search for display
string
mosPrepareSearchContent
(string $text, [int $length = 200], string $searchword)
-
string
$text: The source string
-
int
$length: Number of chars to trim
-
string
$searchword: The searchword to select around
mosSmartSubstr (line
764)
returns substring of characters around a searchword
string
mosSmartSubstr
(string $text, [int $length = 200], string $searchword)
-
string
$text: The source string
-
int
$length: Number of chars to return
-
string
$searchword: The searchword to select around
mosStripslashes (line
73)
Strip slashes from strings or arrays of strings
mixed
mosStripslashes
(mixed &$value)
-
mixed
&$value: The input string or array
mosToolTip (line
453)
Utility function to provide ToolTips
HTML
mosToolTip
(string $tooltip, [string $title = ''], [mixed $width = ''], [mixed $image = 'tooltip.png'], [mixed $text = ''], [mixed $href = '#'], [mixed $link = 1])
-
string
$tooltip: ToolTip text
-
string
$title: Box title
mosTreeRecurse (line
296)
void
mosTreeRecurse
(mixed $id, mixed $indent, mixed $list, mixed &$children, [mixed $maxlevel = 9999], [mixed $level = 0], [mixed $type = 1])
SortArrayObjects (line
825)
Sorts an Array of objects
void
SortArrayObjects
(mixed &$a, mixed $k, [integer $sort_direction = 1])
-
integer
$sort_direction: [1 = Ascending] [-1 = Descending]
SortArrayObjects_cmp (line
804)
Sorts an Array of objects
void
SortArrayObjects_cmp
(mixed &$a, mixed &$b)