MediaWiki  master
MediaTransformError Class Reference

Basic media transform error class. More...

Inheritance diagram for MediaTransformError:
Collaboration diagram for MediaTransformError:

Public Member Functions

 __construct ( $msg, $width, $height,... $args)
 
 getHtmlMsg ()
 
 getHttpStatusCode ()
 
 getMsg ()
 
 isError ()
 
 toHtml ( $options=[])
 
 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 ()
 
 getUrl ()
 
 getWidth ()
 
 hasFile ()
 Check if an output thumbnail file actually exists. More...
 
 isError ()
 This will be overridden to return true in error classes. More...
 
 setStoragePath ( $storagePath)
 
 streamFile ( $headers=[])
 Stream the file if there were no errors. More...
 
 streamFileWithStatus ( $headers=[])
 Stream the file if there were no errors. More...
 
 toHtml ( $options=[])
 Fetch HTML for this transform output. More...
 

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

Basic media transform error class.

Definition at line 29 of file MediaTransformError.php.

Constructor & Destructor Documentation

◆ __construct()

MediaTransformError::__construct (   $msg,
  $width,
  $height,
  $args 
)

Member Function Documentation

◆ getHtmlMsg()

MediaTransformError::getHtmlMsg ( )

Definition at line 52 of file MediaTransformError.php.

Referenced by toHtml().

◆ getHttpStatusCode()

MediaTransformError::getHttpStatusCode ( )

Definition at line 64 of file MediaTransformError.php.

◆ getMsg()

MediaTransformError::getMsg ( )

Definition at line 56 of file MediaTransformError.php.

References $msg.

◆ isError()

MediaTransformError::isError ( )

Definition at line 60 of file MediaTransformError.php.

◆ toHtml()

MediaTransformError::toHtml (   $options = [])

Definition at line 41 of file MediaTransformError.php.

References getHtmlMsg().

◆ toText()

MediaTransformError::toText ( )

Definition at line 48 of file MediaTransformError.php.

Member Data Documentation

◆ $msg

Message MediaTransformError::$msg
private

Definition at line 31 of file MediaTransformError.php.

Referenced by TransformTooBigImageAreaError\__construct(), and getMsg().


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