FOLDER_SEPARATOR
FOLDER_SEPARATOR
Separator character for paths.
Static helper class for FileLogWriter (FLW).
sanitizePath(string $path) : string
File path sanitizer:
string | $path |
The sanitized path string.
pathLeavesOrEqualsRoot(string $path, string $root) : boolean
Make sure a given path does at no time leave or become equal to another path (aka "the document root"):
string | $path | The path to validate |
string | $root | The path representing document root |
content2CSV(array $content, array $params = null) : array
CSV representation of the given content.
array | $content | Associative array containing all fields to write, field names as keys, field content as values (representing a logfile entry). |
array | $params | CSV parameter: "field_delimiter" (default -> ,), "field_quote" (default -> "), "field_quote_escape" (default -> "). |
Associative, "field_names" -> csv string of field IDs, "field_content" -> csv string of log field contents