프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
public validateExtension ( string $filepath ) : boolean | ||
$filepath | string | file path of the file we want to check |
리턴 | boolean | Whether or not the extension is valid |