MediaWiki REL1_37
|
MimeMagic helper wrapper. More...
Public Member Functions | |
__construct (MimeAnalyzer $magic) | |
getPropsFromPath ( $path, $ext) | |
Get an associative array containing information about a file with the given storage path. | |
newPlaceholderProps () | |
Empty place holder props for non-existing files. | |
Private Attributes | |
MimeAnalyzer | $magic |
MWFileProps::__construct | ( | MimeAnalyzer | $magic | ) |
MWFileProps::getPropsFromPath | ( | $path, | |
$ext | |||
) |
Get an associative array containing information about a file with the given storage path.
Resulting array fields include:
string | $path | Filesystem path to a file |
string | bool | null | $ext | The file extension, or true to extract it from the filename. Set it to false to ignore the extension. Might be null in case the file is going to be stashed. |
Definition at line 64 of file MWFileProps.php.
References $ext, $path, FileBackend\extensionFromPath(), MediaHandler\getHandler(), newPlaceholderProps(), and true.
MWFileProps::newPlaceholderProps | ( | ) |
Empty place holder props for non-existing files.
Resulting array fields include:
Definition at line 118 of file MWFileProps.php.
References MEDIATYPE_UNKNOWN, and FSFile\placeholderProps().
Referenced by getPropsFromPath().
|
private |
Definition at line 30 of file MWFileProps.php.
Referenced by __construct().