PHP Трейт M1\Vars\Traits\ResourceFlagsTrait

С версии: 0.3.0
Показать файл Открыть проект

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

explodeResourceIfElse() защищенный Метод

Explodes the ?: flag into pieces
protected explodeResourceIfElse ( string $resource ) : array
$resource string The resource string
Результат array The parsed resources

implodeResourceIfElse() защищенный Метод

Returns the array pieces of the exploded ?: into a string
protected implodeResourceIfElse ( array $resource ) : string
$resource array The resource array
Результат string The parsed string resource

replicateFlags() защищенный Метод

Duplicates the flags from one string to another
protected replicateFlags ( string $resource, $original_resource ) : string
$resource string The resource to add the flags to
Результат string The parsed string resource

trimFlags() защищенный Метод

Returns trimmed resource string
protected trimFlags ( string $resource ) : string
$resource string The resource
Результат string The parsed string resource