MediaWiki REL1_35
TransformParameterError Class Reference

Shortcut class for parameter validation errors. More...

Inheritance diagram for TransformParameterError:
Collaboration diagram for TransformParameterError:

Public Member Functions

 __construct ( $params)
 Stable to call.
 
 getHttpStatusCode ()
 Stable to override.
 
- Public Member Functions inherited from MediaTransformError
 __construct ( $msg, $width, $height,... $args)
 Stable to call.
 
 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 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 ()
 Stable to override.
 
 getUrl ()
 Stable to override.
 
 getWidth ()
 
 hasFile ()
 Check if an output thumbnail file actually exists.
 
 setStoragePath ( $storagePath)
 Stable to override.
 
 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 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.
 

Detailed Description

Shortcut class for parameter validation errors.

@newable

Definition at line 30 of file TransformParameterError.php.

Constructor & Destructor Documentation

◆ __construct()

TransformParameterError::__construct (   $params)

Stable to call.

Parameters
array$params

Definition at line 37 of file TransformParameterError.php.

References wfMessage().

Member Function Documentation

◆ getHttpStatusCode()

TransformParameterError::getHttpStatusCode ( )

Stable to override.

Returns
int

Reimplemented from MediaTransformError.

Definition at line 45 of file TransformParameterError.php.


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