X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryGeneratorBase.php;h=f7b94c7c015650fa6b821bd6991f017347eea7fd;hb=996587e228e71436dc4bf2bceb41ce5a94e9288c;hp=67fe0d61a7f6e3c0416306b3b1343741e210b8ca;hpb=e2d6e193c94cb0b9b82654d2365113973dd41ecb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryGeneratorBase.php b/includes/api/ApiQueryGeneratorBase.php index 67fe0d61a7..f7b94c7c01 100644 --- a/includes/api/ApiQueryGeneratorBase.php +++ b/includes/api/ApiQueryGeneratorBase.php @@ -45,6 +45,15 @@ abstract class ApiQueryGeneratorBase extends ApiQueryBase { $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