PHP 클래스 Cascade\Config\Loader\FileLoader\FileLoaderAbstract

저자: Raphael Antonmattei ([email protected])
상속: extends Symfony\Component\Config\Loader\FileLoader
파일 보기 프로젝트 열기: theorchard/monolog-cascade

공개 프로퍼티들

프로퍼티 타입 설명
$validExtensions

공개 메소드들

메소드 설명
getSectionOf ( array $array, string $section = '' ) : array | mixed Return a section of an array based on the key passed in
isFile ( string $resource ) : boolean Test if a given resource is a file name or a file path
readFrom ( string $input ) : string Read from a file or string
validateExtension ( string $filepath ) : boolean Validate a file extension against a list of provided valid extensions

메소드 상세

getSectionOf() 공개 메소드

Return a section of an array based on the key passed in
public getSectionOf ( array $array, string $section = '' ) : array | mixed
$array array Array we want the section from
$section string Section name (key)
리턴 array | mixed Return the section of an array or just a value

isFile() 공개 메소드

Test if a given resource is a file name or a file path
public isFile ( string $resource ) : boolean
$resource string Plain string or file path
리턴 boolean Whether or not the resource is a file

readFrom() 공개 메소드

Read from a file or string
public readFrom ( string $input ) : string
$input string Filepath or string
리턴 string Return a string from read file or directly from $input

validateExtension() 공개 메소드

Validate a file extension against a list of provided valid extensions
public validateExtension ( string $filepath ) : boolean
$filepath string file path of the file we want to check
리턴 boolean Whether or not the extension is valid

프로퍼티 상세

$validExtensions 공개적으로 정적으로 프로퍼티

public static $validExtensions