summaryrefslogtreecommitdiff
path: root/includes/api/ApiQueryTags.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/api/ApiQueryTags.php')
-rw-r--r--includes/api/ApiQueryTags.php25
1 files changed, 5 insertions, 20 deletions
diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php
index 732df9a4..31845648 100644
--- a/includes/api/ApiQueryTags.php
+++ b/includes/api/ApiQueryTags.php
@@ -38,9 +38,9 @@ class ApiQueryTags extends ApiQueryBase {
private $limit;
private $fld_displayname = false, $fld_description = false,
- $fld_hitcount = false;
+ $fld_hitcount = false;
- public function __construct( $query, $moduleName ) {
+ public function __construct( ApiQuery $query, $moduleName ) {
parent::__construct( $query, $moduleName, 'tg' );
}
@@ -97,6 +97,7 @@ class ApiQueryTags extends ApiQueryBase {
if ( ++$count > $this->limit ) {
$this->setContinueEnumParameter( 'continue', $tagName );
+
return false;
}
@@ -121,6 +122,7 @@ class ApiQueryTags extends ApiQueryBase {
$fit = $this->result->addValue( array( 'query', $this->getModuleName() ), null, $tag );
if ( !$fit ) {
$this->setContinueEnumParameter( 'continue', $tagName );
+
return false;
}
@@ -168,25 +170,8 @@ class ApiQueryTags extends ApiQueryBase {
);
}
- public function getResultProperties() {
- return array(
- '' => array(
- 'name' => 'string'
- ),
- 'displayname' => array(
- 'displayname' => 'string'
- ),
- 'description' => array(
- 'description' => 'string'
- ),
- 'hitcount' => array(
- 'hitcount' => 'integer'
- )
- );
- }
-
public function getDescription() {
- return 'List change tags';
+ return 'List change tags.';
}
public function getExamples() {