MediaWiki REL1_33
|
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 Member Functions | |
extractImageSizeInfo (array $gis) | |
Exract image size information. | |
Private Attributes | |
MimeAnalyzer | $magic |
MWFileProps::__construct | ( | MimeAnalyzer | $magic | ) |
|
private |
Exract image size information.
array | $gis |
Definition at line 102 of file MWFileProps.php.
Referenced by getPropsFromPath().
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 | $ext | The file extension, or true to extract it from the filename. Set it to false to ignore the extension. |
Definition at line 63 of file MWFileProps.php.
References $ext, $handler, $path, FileBackend\extensionFromPath(), extractImageSizeInfo(), MediaHandler\getHandler(), list, newPlaceholderProps(), File\splitMime(), and true.
MWFileProps::newPlaceholderProps | ( | ) |
Empty place holder props for non-existing files.
Resulting array fields include:
Definition at line 132 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().