summaryrefslogtreecommitdiff
path: root/includes/api/ApiQueryRandom.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-08-15 01:29:47 +0200
committerPierre Schmitz <pierre@archlinux.de>2008-08-15 01:29:47 +0200
commit370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch)
tree491674f4c242e4d6ba0d04eafa305174c35a3391 /includes/api/ApiQueryRandom.php
parentf4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff)
Update auf 1.13.0
Diffstat (limited to 'includes/api/ApiQueryRandom.php')
-rw-r--r--includes/api/ApiQueryRandom.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/api/ApiQueryRandom.php b/includes/api/ApiQueryRandom.php
index b8282098..046157a6 100644
--- a/includes/api/ApiQueryRandom.php
+++ b/includes/api/ApiQueryRandom.php
@@ -30,24 +30,24 @@ if (!defined('MEDIAWIKI')) {
/**
* Query module to get list of random pages
- *
- * @addtogroup API
+ *
+ * @ingroup API
*/
-
+
class ApiQueryRandom extends ApiQueryGeneratorBase {
public function __construct($query, $moduleName) {
parent :: __construct($query, $moduleName, 'rn');
}
-
+
public function execute() {
$this->run();
}
-
+
public function executeGenerator($resultPageSet) {
$this->run($resultPageSet);
}
-
+
protected function prepareQuery($randstr, $limit, $namespace, &$resultPageSet) {
$this->resetQueryParams();
$this->addTables('page');
@@ -104,7 +104,7 @@ if (!defined('MEDIAWIKI')) {
if(is_null($resultPageSet)) {
$result->setIndexedTagName($data, 'page');
$result->addValue('query', $this->getModuleName(), $data);
- }
+ }
}
private function extractRowInfo($row) {
@@ -115,7 +115,7 @@ if (!defined('MEDIAWIKI')) {
$vals['id'] = $row->page_id;
return $vals;
}
-
+
public function getAllowedParams() {
return array (
'namespace' => array(