Filter
Static class that is used to filter data.
Located in /includes/classes/format/Filter.php (line 22)
alpha (line 82)
Replaces all but letters of the alphabet A-Z
- string $input
alphaNumeric (line 94)
Returns only letters and numbers, a-z:0-9 not case sensitive
- string $input
cleanDate (line 228)
Clean string for use as date 0-9./-
- string $date
cleanDirName (line 175)
Cleans a string for use as a directory name
- string $input
cleanEmailInjection (line 201)
Clean up string for use in email, remove injection attempts
- string $string
cleanFileName (line 163)
Cleans a string for use as a file name
- string $input
cleanKey (line 151)
Filters out unsafe characters for array keys
- string $input
cleanText (line 287)
Encode MS Word characters
- string $string
cleanUrl (line 186)
Cleanup string for use as a url
- string $input
cleanXSS (line 274)
Remove harmful content from string
- string $value: unfiltered string
double (line 105)
Removes all but numbers and decimal
- string $input
filterword (line 48)
Filter a string based off bad words from administration.
- string $value: The value
httpURL (line 135)
Adds http:// to urls that don't have it
- string $input
mysqlEscape (line 244)
Escape a string for use in mysql statement
- string $string
mysqlEscapeLike (line 392)
Escape and wrap a string with % for mysql LIKE statements
- string $string
mysqlEscapeLikeXSS (line 403)
Escape, wrap with %, and remove XSS attempts
- string $string
mysqlEscapeXSS (line 257)
Escape and remove XSS attempts for use in mysql statement
- string $value
mysqlInt (line 233)
- $int
mysqlLike (line 381)
Wraps string with %
- string $string
nonTagHtmlEntities (line 322)
Utf8 encodes, converts word chars, and converts everything but to html entities but html tags.
- string $string
numeric (line 70)
Replaces all but numbers in a string
- string $input
stripTags (line 31)
Strip HTML Tags
- string $value
taglessHtmlEntities (line 345)
Utf8 encodes, converts word chars, strips tags, and converts everything but to html entities.
- string $string
utf8Encode (line 365)
Convert a string to UTF-8, attempts to use mb_string extension otherwise defaults to encode
- string $string
YorN (line 119)
Enforces Y or N as value of input, case sensitive and defaults to N
- string $input

