MediaWiki  1.34.0
ApiQueryPageImagesProxyMock.php
Go to the documentation of this file.
1 <?php
2 
3 namespace PageImages\Tests;
4 
5 use ApiPageSet;
7 
9 
11  public function __construct( ApiPageSet $pageSet ) {
12  $this->pageSet = $pageSet;
13  }
14 
16  public function getPageSet() {
17  return $this->pageSet;
18  }
19 
21  public function getTitles() {
22  return parent::getTitles();
23  }
24 
26  public static function getPropNames( $license ) {
27  return parent::getPropNames( $license );
28  }
29 }
PageImages\Tests\ApiQueryPageImagesProxyMock\getTitles
getTitles()
Gets the set of titles to get page images for.Note well that the set of titles comprises the set of "...
Definition: ApiQueryPageImagesProxyMock.php:21
PageImages\Tests\ApiQueryPageImagesProxyMock\__construct
__construct(ApiPageSet $pageSet)
Definition: ApiQueryPageImagesProxyMock.php:11
PageImages\Tests\ApiQueryPageImagesProxyMock
Definition: ApiQueryPageImagesProxyMock.php:8
ApiPageSet
This class contains a list of pages that the client has requested.
Definition: ApiPageSet.php:40
ApiQueryPageImages
Expose image information for a page via a new prop=pageimages API.
Definition: ApiQueryPageImages.php:14
PageImages\Tests\ApiQueryPageImagesProxyMock\getPropNames
static getPropNames( $license)
Get property names used in page_props table.If the license is free, then only the free property name ...
Definition: ApiQueryPageImagesProxyMock.php:26
PageImages\Tests
Definition: ApiQueryPageImagesProxyMock.php:3
PageImages\Tests\ApiQueryPageImagesProxyMock\getPageSet
getPageSet()
Get the PageSet object to work on.ApiPageSet
Definition: ApiQueryPageImagesProxyMock.php:16