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? |
public __construct ( string $file, array $predefinedExtensions = [] ) | ||
$file | string | The file name |
$predefinedExtensions | array | Predefined extensions |
public getExtension ( ) : string | ||
return | string |
public hasPredefinedExtension ( ) : boolean | ||
return | boolean |