PHP Class Yosymfony\Spress\Core\Support\FileInfo

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

Méthodes publiques

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

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

getExtension() public méthode

Gets the extension of the file.
public getExtension ( ) : string
Résultat string

getFilename() public méthode

Gets the filename.
public getFilename ( ) : string
Résultat string

hasPredefinedExtension() public méthode

Has a predefined extension?
public hasPredefinedExtension ( ) : boolean
Résultat boolean