PHP Class Cascade\Config\Loader\FileLoader\FileLoaderAbstract

Author: Raphael Antonmattei ([email protected])
Inheritance: extends Symfony\Component\Config\Loader\FileLoader
Afficher le fichier Open project: theorchard/monolog-cascade

Méthodes publiques

Свойство Type Description
$validExtensions

Méthodes publiques

Méthode Description
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

Method Details

getSectionOf() public méthode

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)
Résultat array | mixed Return the section of an array or just a value

isFile() public méthode

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
Résultat boolean Whether or not the resource is a file

readFrom() public méthode

Read from a file or string
public readFrom ( string $input ) : string
$input string Filepath or string
Résultat string Return a string from read file or directly from $input

validateExtension() public méthode

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
Résultat boolean Whether or not the extension is valid

Property Details

$validExtensions public_oe static_oe property

public static $validExtensions