Method |
Description |
|
checkLink ( string $url, boolean $http = false, boolean $other = false ) : boolean |
Checks whether given link is valid |
|
escapeJsString ( string $string ) : string |
escapes a string to be inserted as string a JavaScript block
enclosed by
|
|
formatJsVal ( string $value ) : string |
Formats a value for javascript code. |
|
getJsValue ( string $key, mixed $value, boolean $escape = true ) : string |
Formats an javascript assignment with proper escaping of a value
and support for assigning array of strings. |
|
getJsValueForFormValidation ( string $key, string $value, boolean $addOn, boolean $comma ) : string |
Formats javascript assignment for form validation api
with proper escaping of a value. |
|
jsFormat ( string $a_string = '', boolean $add_backquotes = true ) : string |
Format a string so it can be a string inside JavaScript code inside an
eventhandler (onclick, onchange, on. |
|
printJsValue ( string $key, mixed $value ) : void |
Prints an javascript assignment with proper escaping of a value
and support for assigning array of strings. |
|
printJsValueForFormValidation ( string $key, string $value, boolean $addOn = false, boolean $comma = true ) : void |
Prints javascript assignment for form validation api
with proper escaping of a value. |
|
removeRequestVars ( &$whitelist ) : void |
Removes all variables from request except whitelisted ones. |
|
replaceBBLink ( array $found ) : string |
Callback function for replacing [a@link@target] links in bb code. |
|
replaceDocLink ( array $found ) : string |
Callback function for replacing [doc@anchor] links in bb code. |
|
sanitize ( string $message, boolean $escape = false, boolean $safe = false ) : string |
Sanitizes $message, taking into account our special codes
for formatting. |
|
sanitizeFilename ( string $filename, boolean $replaceDots = false ) : string |
Sanitize a filename by removing anything besides legit characters |
|