PHP Class Cascade\Config\Loader\FileLoader\FileLoaderAbstract

Author: Raphael Antonmattei ([email protected])
Inheritance: extends Symfony\Component\Config\Loader\FileLoader
显示文件 Open project: theorchard/monolog-cascade

Public Properties

Property Type Description
$validExtensions

Public Methods

Method 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 method

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

isFile() public method

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

readFrom() public method

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

validateExtension() public method

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

Property Details

$validExtensions public_oe static_oe property

public static $validExtensions