PHP Класс Cascade\Config\Loader\FileLoader\FileLoaderAbstract

Автор: Raphael Antonmattei ([email protected])
Наследование: extends Symfony\Component\Config\Loader\FileLoader
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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