PHP Class Yosymfony\Spress\Core\Support\FileInfo

Author: Victor Puertas ([email protected])
Inheritance: extends SplFileInfo
Exibir arquivo Open project: spress/spress Class Usage Examples

Public Methods

Method Description
__construct ( string $file, array $predefinedExtensions = [] ) Constructor.
getExtension ( ) : string Gets the extension of the file.
getFilename ( ) : string Gets the filename.
hasPredefinedExtension ( ) : boolean Has a predefined extension?

Method Details

__construct() public method

Constructor.
public __construct ( string $file, array $predefinedExtensions = [] )
$file string The file name
$predefinedExtensions array Predefined extensions

getExtension() public method

Gets the extension of the file.
public getExtension ( ) : string
return string

getFilename() public method

Gets the filename.
public getFilename ( ) : string
return string

hasPredefinedExtension() public method

Has a predefined extension?
public hasPredefinedExtension ( ) : boolean
return boolean