|
MediaWiki master
|
Shortcut class for parameter file size errors. More...
Inherits MediaWiki\Media\MediaTransformError.

Public Member Functions | ||||
| __construct ( $params, $maxImageArea) | ||||
| getHttpStatusCode () | ||||
| ||||
Public Member Functions inherited from MediaWiki\Media\MediaTransformError | ||||
| __construct ( $msg, $width, $height,... $args) | ||||
| getHtmlMsg () | ||||
| 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 MediaWiki\Media\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. | ||||
Additional Inherited Members | |
Public Attributes inherited from MediaWiki\Media\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 MediaWiki\Media\MediaTransformOutput | |
| linkWrap ( $linkAttribs, $contents) | |
| Wrap some XHTML text in an anchor tag with the given attributes or, fallback to a span in the absence thereof. | |
Protected Attributes inherited from MediaWiki\Media\MediaTransformOutput | |
| File | $file |
| int | $height |
| Image height. | |
| string false | $lang |
| Language code, false if not set. | |
| string false | $page |
| string null false | $path |
| Filesystem path to the thumb. | |
| string false | $storagePath = false |
| Permanent storage path. | |
| string false | $url |
| URL path to the thumb. | |
| int | $width |
| Image width. | |
Shortcut class for parameter file size errors.
Definition at line 19 of file TransformTooBigImageAreaError.php.
| MediaWiki\Media\TransformTooBigImageAreaError::__construct | ( | $params, | |
| $maxImageArea ) |
| array | $params | |
| int | $maxImageArea |
Definition at line 27 of file TransformTooBigImageAreaError.php.
References wfMessage().
| MediaWiki\Media\TransformTooBigImageAreaError::getHttpStatusCode | ( | ) |
Reimplemented from MediaWiki\Media\MediaTransformError.
Definition at line 43 of file TransformTooBigImageAreaError.php.