MediaWiki REL1_40
|
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. | |
MWFileProps::__construct | ( | MimeAnalyzer | $magic | ) |
MimeAnalyzer | $magic |
Definition at line 35 of file MWFileProps.php.
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 119 of file MWFileProps.php.
References MEDIATYPE_UNKNOWN, and FSFile\placeholderProps().
Referenced by getPropsFromPath().