MediaWiki REL1_34
|
Basic media transform error class. More...
Public Member Functions | |
__construct ( $msg, $width, $height,... $args) | |
getHtmlMsg () | |
getHttpStatusCode () | |
getMsg () | |
isError () | |
This will be overridden to return true in error classes. | |
toHtml ( $options=[]) | |
Fetch HTML for this transform output. | |
toText () | |
Public Member Functions inherited from MediaTransformOutput | |
fileIsSource () | |
Check if the output thumbnail is the same as the source. | |
getDescLinkAttribs ( $title=null, $params=[]) | |
getExtension () | |
Get the final extension of the thumbnail. | |
getFile () | |
getHeight () | |
getLocalCopyPath () | |
Get the path of a file system copy of the thumbnail. | |
getStoragePath () | |
getUrl () | |
getWidth () | |
hasFile () | |
Check if an output thumbnail file actually exists. | |
setStoragePath ( $storagePath) | |
streamFile ( $headers=[]) | |
Stream the file if there were no errors. | |
streamFileWithStatus ( $headers=[]) | |
Stream the file if there were no errors. | |
Private Attributes | |
Message | $msg |
Additional Inherited Members | |
Public Attributes inherited from MediaTransformOutput | |
array | $responsiveUrls = [] |
Associative array mapping optional supplementary image files from pixel density (eg 1.5 or 2) to additional URLs. | |
Protected Member Functions inherited from MediaTransformOutput | |
linkWrap ( $linkAttribs, $contents) | |
Wrap some XHTML text in an anchor tag with the given attributes. | |
Protected Attributes inherited from MediaTransformOutput | |
File | $file |
int | $height |
Image height. | |
bool string | $lang |
Language code, false if not set. | |
bool string | $page |
bool string | $path |
Filesystem path to the thumb. | |
bool string | $storagePath = false |
Permanent storage path. | |
string | $url |
URL path to the thumb. | |
int | $width |
Image width. | |
Basic media transform error class.
Definition at line 29 of file MediaTransformError.php.
MediaTransformError::__construct | ( | $msg, | |
$width, | |||
$height, | |||
$args | |||
) |
Definition at line 33 of file MediaTransformError.php.
References $args, MediaTransformOutput\$height, $msg, MediaTransformOutput\$width, and wfMessage().
MediaTransformError::getHtmlMsg | ( | ) |
Definition at line 52 of file MediaTransformError.php.
Referenced by toHtml().
MediaTransformError::getHttpStatusCode | ( | ) |
Reimplemented in TransformParameterError, and TransformTooBigImageAreaError.
Definition at line 64 of file MediaTransformError.php.
MediaTransformError::getMsg | ( | ) |
Definition at line 56 of file MediaTransformError.php.
References $msg.
MediaTransformError::isError | ( | ) |
This will be overridden to return true in error classes.
Reimplemented from MediaTransformOutput.
Definition at line 60 of file MediaTransformError.php.
MediaTransformError::toHtml | ( | $options = [] | ) |
Fetch HTML for this transform output.
array | $options | Associative array of options. Boolean options should be indicated with a value of true for true, and false or absent for false. |
alt Alternate text or caption desc-link Boolean, show a description link file-link Boolean, show a file download link custom-url-link Custom URL to link to custom-title-link Custom Title object to link to valign vertical-align property, if the output is an inline element img-class Class applied to the "<img>" tag, if there is such a tag
For images, desc-link and file-link are implemented as a click-through. For sounds and videos, they may be displayed in other ways.
Reimplemented from MediaTransformOutput.
Definition at line 41 of file MediaTransformError.php.
References getHtmlMsg().
MediaTransformError::toText | ( | ) |
Definition at line 48 of file MediaTransformError.php.
|
private |
Definition at line 31 of file MediaTransformError.php.
Referenced by __construct(), TransformTooBigImageAreaError\__construct(), and getMsg().