Index: trunk/phase3/includes/api/ApiQueryPageProps.php |
— | — | @@ -60,6 +60,10 @@ |
61 | 61 | $this->addWhere( 'pp_page >=' . intval( $this->params['continue'] ) ); |
62 | 62 | } |
63 | 63 | |
| 64 | + if ( $this->params['prop'] ) { |
| 65 | + $this->addWhereFld( 'pp_propname', $this->params['prop'] ); |
| 66 | + } |
| 67 | + |
64 | 68 | # Force a sort order to ensure that properties are grouped by page |
65 | 69 | $this->addOption( 'ORDER BY', 'pp_page' ); |
66 | 70 | |
— | — | @@ -121,11 +125,17 @@ |
122 | 126 | } |
123 | 127 | |
124 | 128 | public function getAllowedParams() { |
125 | | - return array( 'continue' => null ); |
| 129 | + return array( |
| 130 | + 'continue' => null, |
| 131 | + 'prop' => null, |
| 132 | + ); |
126 | 133 | } |
127 | 134 | |
128 | 135 | 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 | + ); |
130 | 140 | } |
131 | 141 | |
132 | 142 | public function getDescription() { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -80,6 +80,7 @@ |
81 | 81 | * (bug 26485) add a elextlinks param to prop=extlinks |
82 | 82 | * (bug 26483) add a iwtitles param to prop=iwlinks |
83 | 83 | * (bug 26484) add a lltitles param to prop=langlinks |
| 84 | +* (bug 26480) add a pppageprops param to prop=pageprops |
84 | 85 | |
85 | 86 | === Languages updated in 1.18 === |
86 | 87 | |