*/
const MAX_PAGES = 100;
- public function __construct( $query, $moduleName ) {
+ public function __construct( ApiQuery $query, $moduleName ) {
// "pc" is short for "page contributors", "co" was already taken by the
// GeoData extension's prop=coordinates.
parent::__construct( $query, $moduleName, 'pc' );
$this->setContinueEnumParameter( 'continue',
$params['continue'] !== null ? $params['continue'] : '0|0'
);
+
return;
}
}
// of anoncontributors
$this->setContinueEnumParameter( 'continue', $continuePages );
}
+
return;
}
} elseif ( $params['excluderights'] ) {
// We've reached the one extra which shows that
// there are additional pages to be had. Stop here...
$this->setContinueEnumParameter( 'continue', $row->page . '|' . $row->user );
+
return;
}
);
if ( !$fit ) {
$this->setContinueEnumParameter( 'continue', $row->page . '|' . $row->user );
+
return;
}
}
);
}
- public function getPossibleErrors() {
- return array_merge( parent::getPossibleErrors(),
- $this->getRequireMaxOneParameterErrorMessages(
- array( 'group', 'excludegroup', 'rights', 'excluderights' )
- )
- );
- }
-
-
public function getDescription() {
return 'Get the list of logged-in contributors and ' .
- 'the count of anonymous contributors to a page';
+ 'the count of anonymous contributors to a page.';
}
public function getExamples() {