Esempio n. 1
0
 /**
  * @param ApiPageSet $resultPageSet
  * @return void
  */
 public function executeGenerator($resultPageSet)
 {
     if ($resultPageSet->isResolvingRedirects()) {
         $this->dieUsage('Use "gaifilterredir=nonredirects" option instead of "redirects" ' . 'when using allimages as a generator', 'params');
     }
     $this->run($resultPageSet);
 }
Esempio n. 2
0
 /**
  * @param ApiPageSet $pageSet
  * @return void
  */
 public function requestExtraData($pageSet)
 {
     $pageSet->requestField('page_restrictions');
     // when resolving redirects, no page will have this field
     if (!$pageSet->isResolvingRedirects()) {
         $pageSet->requestField('page_is_redirect');
     }
     $pageSet->requestField('page_is_new');
     $config = $this->getConfig();
     if (!$config->get('DisableCounters')) {
         $pageSet->requestField('page_counter');
     }
     $pageSet->requestField('page_touched');
     $pageSet->requestField('page_latest');
     $pageSet->requestField('page_len');
     if ($config->get('ContentHandlerUseDB')) {
         $pageSet->requestField('page_content_model');
     }
 }