MediaWiki  master
TransformTooBigImageAreaError Class Reference

Shortcut class for parameter file size errors. More...

Inheritance diagram for TransformTooBigImageAreaError:
Collaboration diagram for TransformTooBigImageAreaError:

Public Member Functions

 __construct ( $params, $maxImageArea)
 Stable to call. More...
 
 getHttpStatusCode ()
 Stable to override. More...
 
- Public Member Functions inherited from MediaTransformError
 __construct ( $msg, $width, $height,... $args)
 Stable to call. More...
 
 getHtmlMsg ()
 
 getMsg ()
 
 isError ()
 This will be overridden to return true in error classes. More...
 
 toHtml ( $options=[])
 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=[])
 
 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 ()
 Stable to override. More...
 
 getUrl ()
 Stable to override. More...
 
 getWidth ()
 
 hasFile ()
 Check if an output thumbnail file actually exists. More...
 
 setStoragePath ( $storagePath)
 Stable to override. More...
 
 streamFile ( $headers=[])
 Stream the file if there were no errors. More...
 
 streamFileWithStatus ( $headers=[])
 Stream the file if there were no errors. More...
 

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. 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
 
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...
 

Detailed Description

Shortcut class for parameter file size errors.

@newable

Since
1.25

Definition at line 31 of file TransformTooBigImageAreaError.php.

Constructor & Destructor Documentation

◆ __construct()

TransformTooBigImageAreaError::__construct (   $params,
  $maxImageArea 
)

Stable to call.

Parameters
array$params
int$maxImageArea

Definition at line 39 of file TransformTooBigImageAreaError.php.

References MediaTransformError\$msg, Message\getLanguage(), Message\params(), and wfMessage().

Member Function Documentation

◆ getHttpStatusCode()

TransformTooBigImageAreaError::getHttpStatusCode ( )

Stable to override.

Returns
int

Reimplemented from MediaTransformError.

Definition at line 52 of file TransformTooBigImageAreaError.php.


The documentation for this class was generated from the following file: