MediaWiki master
|
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 39 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 68 of file MWFileProps.php.
References $path, and newPlaceholderProps().
MWFileProps::newPlaceholderProps | ( | ) |
Empty place holder props for non-existing files.
Resulting array fields include:
Definition at line 123 of file MWFileProps.php.
References MEDIATYPE_UNKNOWN.
Referenced by getPropsFromPath().