MediaWiki REL1_40
|
Find thumbnails for search results. More...
Public Member Functions | |
__construct (RepoGroup $repoGroup, HookContainer $hookContainer) | |
buildSearchResultThumbnailFromFile (File $file, int $size=null) | |
Returns a SearchResultThumbnail instance for a given File/size combination. | |
getThumbnails (array $pageIdentities, ?int $size=60) | |
Public Attributes | |
const | THUMBNAIL_SIZE = 60 |
Find thumbnails for search results.
Definition at line 17 of file SearchResultThumbnailProvider.php.
MediaWiki\Search\SearchResultThumbnailProvider::__construct | ( | RepoGroup | $repoGroup, |
HookContainer | $hookContainer ) |
RepoGroup | $repoGroup | |
HookContainer | $hookContainer |
Definition at line 31 of file SearchResultThumbnailProvider.php.
MediaWiki\Search\SearchResultThumbnailProvider::buildSearchResultThumbnailFromFile | ( | File | $file, |
int | $size = null ) |
Returns a SearchResultThumbnail instance for a given File/size combination.
File | $file | |
int | null | $size |
Definition at line 66 of file SearchResultThumbnailProvider.php.
MediaWiki\Search\SearchResultThumbnailProvider::getThumbnails | ( | array | $pageIdentities, |
?int | $size = 60 ) |
PageIdentity[] | $pageIdentities | array that contains $pageId => PageIdentity. |
int | null | $size | size of thumbnail height and width in points |
Definition at line 90 of file SearchResultThumbnailProvider.php.
References $file.
const MediaWiki\Search\SearchResultThumbnailProvider::THUMBNAIL_SIZE = 60 |
Definition at line 19 of file SearchResultThumbnailProvider.php.