|
const | PROP_NAME = 'page_image' |
| Page property used to store the best page image information.
|
|
const | PROP_NAME_FREE = 'page_image_free' |
| Page property used to store the best free page image information Note changing this value is not advised as it will invalidate all existing page property names on a production instance and cause them to be regenerated.
|
|
|
static | getImages (array $pageIds, $size=0) |
| Returns image information for pages with given ids.
|
|
- Note
- WTFPL
- Author
- Max Semenik
-
Brad Jorsch
-
Thiemo Kreuz
Definition at line 9 of file PageImages.php.
◆ getImages()
static PageImages::getImages |
( |
array | $pageIds, |
|
|
| $size = 0 ) |
|
staticprivate |
Returns image information for pages with given ids.
- Parameters
-
- Returns
- array[]
Definition at line 172 of file PageImages.php.
◆ getPageImage()
static PageImages::getPageImage |
( |
Title | $title | ) |
|
|
static |
◆ getPropName()
static PageImages::getPropName |
( |
| $isFree | ) |
|
|
static |
Get property name used in page_props table.
When a page image is stored it will be stored under this property name on the corresponding article.
- Parameters
-
bool | $isFree | Whether the image is a free-license image |
- Returns
- string
Definition at line 38 of file PageImages.php.
◆ onApiOpenSearchSuggest()
static PageImages::onApiOpenSearchSuggest |
( |
array & | $results | ) |
|
|
static |
ApiOpenSearchSuggest hook handler, enhances ApiOpenSearch results with this extension's data.
- Parameters
-
array[] | &$results | Array of results to add page images too |
Definition at line 115 of file PageImages.php.
◆ onBeforePageDisplay()
static PageImages::onBeforePageDisplay |
( |
OutputPage & | $out, |
|
|
Skin & | $skin ) |
|
static |
◆ onInfoAction()
static PageImages::onInfoAction |
( |
IContextSource | $context, |
|
|
& | $pageInfo ) |
|
static |
◆ onSpecialMobileEditWatchlistImages()
static PageImages::onSpecialMobileEditWatchlistImages |
( |
IContextSource | $context, |
|
|
array | $watchlist, |
|
|
array & | $images ) |
|
static |
SpecialMobileEditWatchlist::images hook handler, adds images to mobile watchlist A-Z view.
- Parameters
-
IContextSource | $context | Context object. Ignored |
array[] | $watchlist | Array of relevant pages on the watchlist, sorted by namespace |
array[] | &$images | Array of images to populate |
Definition at line 140 of file PageImages.php.
References $title.
◆ PROP_NAME
const PageImages::PROP_NAME = 'page_image' |
Page property used to store the best page image information.
If the best image is the same as the best image with free license, then nothing is stored under this property. Note changing this value is not advised as it will invalidate all existing page property names on a production instance and cause them to be regenerated.
- See also
- PageImages::PROP_NAME_FREE
Definition at line 20 of file PageImages.php.
◆ PROP_NAME_FREE
const PageImages::PROP_NAME_FREE = 'page_image_free' |
Page property used to store the best free page image information Note changing this value is not advised as it will invalidate all existing page property names on a production instance and cause them to be regenerated.
Definition at line 28 of file PageImages.php.
The documentation for this class was generated from the following file: