PHP Trait M1\Vars\Traits\ResourceFlagsTrait

Since: 0.3.0
Datei anzeigen Open project: m1/Vars

Protected Methods

Method Description
explodeResourceIfElse ( string $resource ) : array Explodes the ?: flag into pieces
implodeResourceIfElse ( array $resource ) : string Returns the array pieces of the exploded ?: into a string
replicateFlags ( string $resource, $original_resource ) : string Duplicates the flags from one string to another
trimFlags ( string $resource ) : string Returns trimmed resource string

Private Methods

Method Description
checkRecursive ( string $resource ) : boolean Checks to see if the recursive flag is set
checkSuppression ( string $resource ) : boolean Checks to see if the file not found exception is suppressed

Method Details

explodeResourceIfElse() protected method

Explodes the ?: flag into pieces
protected explodeResourceIfElse ( string $resource ) : array
$resource string The resource string
return array The parsed resources

implodeResourceIfElse() protected method

Returns the array pieces of the exploded ?: into a string
protected implodeResourceIfElse ( array $resource ) : string
$resource array The resource array
return string The parsed string resource

replicateFlags() protected method

Duplicates the flags from one string to another
protected replicateFlags ( string $resource, $original_resource ) : string
$resource string The resource to add the flags to
return string The parsed string resource

trimFlags() protected method

Returns trimmed resource string
protected trimFlags ( string $resource ) : string
$resource string The resource
return string The parsed string resource