r79675 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79674‎ | r79675 | r79676 >
Date:22:11, 5 January 2011
Author:reedy
Status:ok
Tags:
Comment:
* (bug 26480) add a pppageprops param to prop=pageprops
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryPageProps.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryPageProps.php
@@ -60,6 +60,10 @@
6161 $this->addWhere( 'pp_page >=' . intval( $this->params['continue'] ) );
6262 }
6363
 64+ if ( $this->params['prop'] ) {
 65+ $this->addWhereFld( 'pp_propname', $this->params['prop'] );
 66+ }
 67+
6468 # Force a sort order to ensure that properties are grouped by page
6569 $this->addOption( 'ORDER BY', 'pp_page' );
6670
@@ -121,11 +125,17 @@
122126 }
123127
124128 public function getAllowedParams() {
125 - return array( 'continue' => null );
 129+ return array(
 130+ 'continue' => null,
 131+ 'prop' => null,
 132+ );
126133 }
127134
128135 public function getParamDescription() {
129 - return array( 'continue' => 'When more results are available, use this to continue' );
 136+ return array(
 137+ 'continue' => 'When more results are available, use this to continue',
 138+ 'prop' => 'Page prop to look on the page for. Useful for checking whether a certain page uses a certain page prop.'
 139+ );
130140 }
131141
132142 public function getDescription() {
Index: trunk/phase3/RELEASE-NOTES
@@ -80,6 +80,7 @@
8181 * (bug 26485) add a elextlinks param to prop=extlinks
8282 * (bug 26483) add a iwtitles param to prop=iwlinks
8383 * (bug 26484) add a lltitles param to prop=langlinks
 84+* (bug 26480) add a pppageprops param to prop=pageprops
8485
8586 === Languages updated in 1.18 ===
8687

Status & tagging log