$purifier
$purifier :\HTMLPurifier
The html purify framework instance
DataStorageFolder(string $path,string $base_path = FAA_PATHS_DATA_REAL): string
Clear a path
Cleanup path string and make sure it is located inside the data storage
string | $path | A possible folder or file path |
string | $base_path | Must be in this folder |
The sanitized path or false when matching failed
TimeToLocal(string|integer $date,mixed|string $time_zone = FAA_TIMEZONE,string $format = 'Y-m-d H:i:s T'): string|\DateTime
Local time
Convert a UTC time to local time and return it formatted based on the given value
string|integer | $date | The UTC source date |
mixed|string | $time_zone | The time zone e.g. Europe/Berlin |
string | $format | The target format |
The formatted date in the locale time zone
AsciiToken(string $text,boolean $clear = false): string
clear a text field with letters cleanup not formatted text using restrictive mode
string | $text | A insecure string |
boolean | $clear | When true remove potentially problematic characters |
The sanitized ascii letter string
RelativeFileName(string $text,boolean $clear = false): string
clear a relative path cleanup path string and make sure it is has no evil letters
string | $text | A possible folder or file path |
boolean | $clear | When true remove potentially problematic characters |
The sanitized path or false when matching failed
FileName(string $text,boolean $clear = false): string
clear a path cleanup path string and make sure it is has no evil letters
string | $text | A possible folder or file path |
boolean | $clear | When true remove potentially problematic characters |
The sanitized path or false when matching failed