String
String manipulation class
Located in /includes/classes/format/String.php (line 22)
dot (line 100)
Trim a string and add dots to the end.
- string $str: The string
- int $len: The length you want returned
- string $dots: the suffix
formatPhone (line 194)
Formats a phone number for display
- string $string: unformatted phone number
- integer $length: number of digits in phone number
- string $seperator: charcter that seperates prefix from line number
generateToken (line 249)
Generate a random Token
- string $seed
hash (line 178)
Generate a hash
Provides an easy way to globally change the hash for a site
- string $string
- $input
prepDisplay (line 76)
Preps the display of a string
- string $value: The value
random (line 156)
Generate a random string
- integer $length
- string $pattern
removeDirectory (line 117)
Removes directory information from a string ie /directory/directory/file.php returns file.php
- string $string: raw string for processing
removeExtension (line 137)
Removes the file extension from a string ie file.tpl.php returns file Note will return part of a file name if it has a period in it, ie some.file.tpl.php returns some
- string $string: raw string for processing
removeLastChar (line 214)
Removes the specified last character if it is in the string.
- string $string: with last character to be removed
- string $char: character to be removed
safeAddSlashes (line 43)
Attempts to safely add slashes
- string $theValue: The string
- $string
safeStripSlashes (line 56)
Attempts to safely strip slashes
- string $str: The string
- $string
specialChars (line 87)
htmlspecialchars a string
- string $string: The value
stringHTML (line 31)
Generates a safe html string
- string $string: The string
truncate (line 232)
Truncate a string to a set length
- string $string
- integer $chars

