MediaWiki REL1_39
|
Class that stores information about thumbnail, e. More...
Public Member Functions | |
__construct (string $mimeType, ?int $size, ?int $width, ?int $height, ?int $duration, string $url, ?string $name) | |
getDuration () | |
Duration of the representation in seconds or null if not applicable. | |
getHeight () | |
Height of the representation in pixels or null if not applicable. | |
getMimeType () | |
Internet mime type for the representation, like "image/png" or "audio/mp3". | |
getName () | |
String that represent file identity in storage or null. | |
getSize () | |
Size of the representation in bytes or null if not applicable. | |
getUrl () | |
Full URL to the contents of the file. | |
getWidth () | |
Width of the representation in pixels or null if not applicable. | |
Class that stores information about thumbnail, e.
g. url, width and height
Definition at line 9 of file SearchResultThumbnail.php.
MediaWiki\Search\Entity\SearchResultThumbnail::__construct | ( | string | $mimeType, |
?int | $size, | ||
?int | $width, | ||
?int | $height, | ||
?int | $duration, | ||
string | $url, | ||
?string | $name ) |
string | $mimeType | Internet mime type for the representation, like "image/png" or "audio/mp3" |
int | null | $size | Size of the representation in bytes |
int | null | $width | Width of the representation in pixels or null if not applicable |
int | null | $height | Height of the representation in pixels or null if not applicable |
int | null | $duration | Duration of the representation in seconds or null if not applicable |
string | $url | full URL to the contents of the file |
string | null | $name | full URL to the contents of the file |
Definition at line 63 of file SearchResultThumbnail.php.
MediaWiki\Search\Entity\SearchResultThumbnail::getDuration | ( | ) |
Duration of the representation in seconds or null if not applicable.
Definition at line 125 of file SearchResultThumbnail.php.
MediaWiki\Search\Entity\SearchResultThumbnail::getHeight | ( | ) |
Height of the representation in pixels or null if not applicable.
Definition at line 101 of file SearchResultThumbnail.php.
MediaWiki\Search\Entity\SearchResultThumbnail::getMimeType | ( | ) |
Internet mime type for the representation, like "image/png" or "audio/mp3".
Definition at line 109 of file SearchResultThumbnail.php.
MediaWiki\Search\Entity\SearchResultThumbnail::getName | ( | ) |
String that represent file identity in storage or null.
Definition at line 133 of file SearchResultThumbnail.php.
MediaWiki\Search\Entity\SearchResultThumbnail::getSize | ( | ) |
Size of the representation in bytes or null if not applicable.
Definition at line 117 of file SearchResultThumbnail.php.
MediaWiki\Search\Entity\SearchResultThumbnail::getUrl | ( | ) |
Full URL to the contents of the file.
Definition at line 85 of file SearchResultThumbnail.php.
MediaWiki\Search\Entity\SearchResultThumbnail::getWidth | ( | ) |
Width of the representation in pixels or null if not applicable.
Definition at line 93 of file SearchResultThumbnail.php.