MediaWiki
1.30.0
|
MimeMagic helper wrapper. More...
Public Member Functions | |
__construct (MimeMagic $magic) | |
getPropsFromPath ( $path, $ext) | |
Get an associative array containing information about a file with the given storage path. More... | |
newPlaceholderProps () | |
Empty place holder props for non-existing files. More... | |
Private Member Functions | |
extractImageSizeInfo (array $gis) | |
Exract image size information. More... | |
Private Attributes | |
MimeMagic | $magic |
MWFileProps::__construct | ( | MimeMagic | $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 136 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().