|
MediaWiki
1.23.0
|
Basic media transform error class. More...


Public Member Functions | |
| __construct ( $msg, $width, $height) | |
| getHtmlMsg () | |
| isError () | |
| This will be overridden to return true in error classes. More... | |
| toHtml ( $options=array()) | |
| Fetch HTML for this transform output. More... | |
| toText () | |
Public Member Functions inherited from MediaTransformOutput | |
| fileIsSource () | |
| Check if the output thumbnail is the same as the source. More... | |
| getDescLinkAttribs ( $title=null, $params=array()) | |
| getExtension () | |
| Get the final extension of the thumbnail. More... | |
| getFile () | |
| getHeight () | |
| getLocalCopyPath () | |
| Get the path of a file system copy of the thumbnail. More... | |
| getStoragePath () | |
| getUrl () | |
| getWidth () | |
| hasFile () | |
| Check if an output thumbnail file actually exists. More... | |
| setStoragePath ( $storagePath) | |
| streamFile ( $headers=array()) | |
| Stream the file if there were no errors. More... | |
Private Attributes | |
| string | $htmlMsg |
| HTML formatted version of the error *. More... | |
| string | $textMsg |
| Plain text formatted version of the error *. More... | |
Additional Inherited Members | |
Public Attributes inherited from MediaTransformOutput | |
| array | $responsiveUrls = array() |
| Associative array mapping optional supplementary image files from pixel density (eg 1.5 or 2) to additional URLs. More... | |
Protected Member Functions inherited from MediaTransformOutput | |
| linkWrap ( $linkAttribs, $contents) | |
| Wrap some XHTML text in an anchor tag with the given attributes. More... | |
Protected Attributes inherited from MediaTransformOutput | |
| File | $file |
| object * More... | |
| int | $height |
| Image height *. More... | |
| bool string | $lang |
| Language code, false if not set *. More... | |
| bool string | $page |
| bool string | $path |
| Filesystem path to the thumb *. More... | |
| bool string | $storagePath = false |
| Permanent storage path *. More... | |
| string | $url |
| URL path to the thumb *. More... | |
| int | $width |
| Image width *. More... | |
Basic media transform error class.
Definition at line 409 of file MediaTransformOutput.php.
| MediaTransformError::__construct | ( | $msg, | |
| $width, | |||
| $height | |||
| ) |
Definition at line 414 of file MediaTransformOutput.php.
References $args, MediaTransformOutput\$height, MediaTransformOutput\$width, and wfMessage().
| MediaTransformError::getHtmlMsg | ( | ) |
Definition at line 438 of file MediaTransformOutput.php.
References $htmlMsg.
| MediaTransformError::isError | ( | ) |
This will be overridden to return true in error classes.
Reimplemented from MediaTransformOutput.
Definition at line 442 of file MediaTransformOutput.php.
| MediaTransformError::toHtml | ( | $options = array() | ) |
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 427 of file MediaTransformOutput.php.
| MediaTransformError::toText | ( | ) |
Definition at line 434 of file MediaTransformOutput.php.
References $textMsg.
|
private |
HTML formatted version of the error *.
Definition at line 410 of file MediaTransformOutput.php.
Referenced by getHtmlMsg().
|
private |
Plain text formatted version of the error *.
Definition at line 412 of file MediaTransformOutput.php.
Referenced by toText().