summaryrefslogtreecommitdiff
path: root/includes/api/ApiQueryPageProps.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2014-12-27 15:41:37 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-12-31 11:43:28 +0100
commitc1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch)
tree2b38796e738dd74cb42ecd9bfd151803108386bc /includes/api/ApiQueryPageProps.php
parentb88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff)
Update to MediaWiki 1.24.1
Diffstat (limited to 'includes/api/ApiQueryPageProps.php')
-rw-r--r--includes/api/ApiQueryPageProps.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php
index 2de57106..e370c39f 100644
--- a/includes/api/ApiQueryPageProps.php
+++ b/includes/api/ApiQueryPageProps.php
@@ -33,7 +33,7 @@ class ApiQueryPageProps extends ApiQueryBase {
private $params;
- public function __construct( $query, $moduleName ) {
+ public function __construct( ApiQuery $query, $moduleName ) {
parent::__construct( $query, $moduleName, 'pp' );
}
@@ -104,9 +104,9 @@ class ApiQueryPageProps extends ApiQueryBase {
* Add page properties to an ApiResult, adding a continue
* parameter if it doesn't fit.
*
- * @param $result ApiResult
- * @param $page int
- * @param $props array
+ * @param ApiResult $result
+ * @param int $page
+ * @param array $props
* @return bool True if it fits in the result
*/
private function addPageProps( $result, $page, $props ) {
@@ -115,6 +115,7 @@ class ApiQueryPageProps extends ApiQueryBase {
if ( !$fit ) {
$this->setContinueEnumParameter( 'continue', $page );
}
+
return $fit;
}
@@ -134,12 +135,13 @@ class ApiQueryPageProps extends ApiQueryBase {
public function getParamDescription() {
return array(
'continue' => 'When more results are available, use this to continue',
- 'prop' => 'Only list these props. Useful for checking whether a certain page uses a certain page prop',
+ 'prop' => 'Only list these props. Useful for checking whether a ' .
+ 'certain page uses a certain page prop',
);
}
public function getDescription() {
- return 'Get various properties defined in the page content';
+ return 'Get various properties defined in the page content.';
}
public function getExamples() {