diff options
Diffstat (limited to 'includes/api/ApiQueryPageProps.php')
-rw-r--r-- | includes/api/ApiQueryPageProps.php | 14 |
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() { |