dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add CollationFa"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryGeneratorBase.php
diff --git
a/includes/api/ApiQueryGeneratorBase.php
b/includes/api/ApiQueryGeneratorBase.php
index
67fe0d6
..
f7b94c7
100644
(file)
--- a/
includes/api/ApiQueryGeneratorBase.php
+++ b/
includes/api/ApiQueryGeneratorBase.php
@@
-45,6
+45,15
@@
abstract class ApiQueryGeneratorBase extends ApiQueryBase {
$this->mGeneratorPageSet = $generatorPageSet;
}
$this->mGeneratorPageSet = $generatorPageSet;
}
+ /**
+ * Indicate whether the module is in generator mode
+ * @since 1.28
+ * @return bool
+ */
+ public function isInGeneratorMode() {
+ return $this->mGeneratorPageSet !== null;
+ }
+
/**
* Get the PageSet object to work on.
* If this module is generator, the pageSet object is different from other module's
/**
* Get the PageSet object to work on.
* If this module is generator, the pageSet object is different from other module's