Class Util
Utility class
Provides a set of methods that perform common, often re-used functions.
Namespace: Phramework\Models
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since 0
Todo: add defined settings
Located at Models/Util.php
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since 0
Todo: add defined settings
Located at Models/Util.php
Methods summary
public static
string
|
|
public static
string
|
#
toAscii( string $str )
Clears all non ASCII characters from a string and replaces /,_,|,+, ,- charaters to '-' |
public static
boolean
|
|
public static
|
|
public static
|
|
public static
string
|
|
public static
string
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
string|false
|
|
public static
|
#
directoryToArray( string $directory, boolean $recursive = false, boolean $listDirs = false, boolean $listFiles = true, string $exclude = '', array $allowed_filetypes = [], boolean $relative_path = false )
Get an array that represents directory tree |
public static
|
#
deleteDirectoryContents( string $directory, boolean $DELETE_DIRECTORY = false )
Delete all contents from a directory |
public static
string
|
|
public static
array
|
|
public static
boolean
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
#
getPath( array $array, string $glue = DIRECTORY_SEPARATOR )
Join directories and filename to create path |
public static
|
|
public static
|
|
public static
|
|
public static
string
|