PHP 트레잇 M1\Vars\Traits\ResourceFlagsTrait

부터: 0.3.0
파일 보기 프로젝트 열기: m1/Vars

보호된 메소드들

메소드 설명
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