diff options
Diffstat (limited to 'includes/api/ApiQueryGeneratorBase.php')
-rw-r--r-- | includes/api/ApiQueryGeneratorBase.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/api/ApiQueryGeneratorBase.php b/includes/api/ApiQueryGeneratorBase.php index 67fe0d61a7f6..f7b94c7c0156 100644 --- a/includes/api/ApiQueryGeneratorBase.php +++ b/includes/api/ApiQueryGeneratorBase.php @@ -46,6 +46,15 @@ abstract class ApiQueryGeneratorBase extends ApiQueryBase { } /** + * 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 * @return ApiPageSet |