Utility class

package filicious-core
author Christian Schiffler
author Tristan Lins
author Oliver Hoff

 Methods

compilePatternToRegexp()

compilePatternToRegexp(mixed $pattern, $strictLeadingDot, $strictWildcartSlash) 
Static
author Antoine Hérault
see

Parameters

$pattern

$strictLeadingDot

$strictWildcartSlash

Create a date time object.

createDateTime(\DateTime|int|string $time) : \DateTime
Static

Parameters

$time

\DateTimeintstring

A \DateTime object, a timestamp or a time format string.

Returns

Dirname function that only split on "/", required because we use UNIX path names all the time, even on windows!

dirname(string $path) : string
Static

Parameters

$path

string

Returns

string

Execute a php function, throw an AdapterException if the function failed.

executeFunction(mixed $callback, $exceptionClass, mixed $errorCode, mixed $errorMessage) : mixed
Static

Parameters

$callback

$exceptionClass

$errorCode

$errorMessage

Exceptions

\Filicious\Exception\AdapterException

Returns

mixed

Returns the absolute prefix of the given path

getAbsolutePrefix(string $path) : string
Static
author Antoine Hérault
see

Parameters

$path

string

A normalized path

Returns

string

Get the FileInfo resource identifier.

getFileInfo() : resource
Static

Returns

resource

getPathnameParts()

getPathnameParts($path) 
Static

Parameters

$path

hasBit()

hasBit($haystack, $bit) 
Static

Parameters

$haystack

$bit

Indicates whether the given path is absolute or not

isAbsolute(string $path) : boolean
Static
author Antoine Hérault
see

Parameters

$path

string

A normalized path

Returns

boolean

Determine if the variable is traversable.

isTraversable(mixed $var) 
Static

Parameters

$var

mixed

Normalizes the given path

normalizePath(string $path) : string
Static
author Antoine Hérault
see

Parameters

$path

string

Returns

string

streamCopy()

streamCopy(\Filicious\File $source, \Filicious\File $target) 
Static

Parameters

$source

$target

string2bitMode()

string2bitMode($string) 
Static

Parameters

$string

Strip a glob pattern from path.

stripPattern(mixed $pattern, mixed $path) 
Static

Parameters

$pattern

$path

 Properties

 

$finfo

$finfo : resource
Static