DAT-2875 remove generator functionality

This commit is contained in:
idradm 2015-06-16 11:00:39 +02:00
parent 81e1754a02
commit c73ff55883

View file

@ -1,7 +1,7 @@
<?php
class ApiQueryPortableInfobox extends ApiQueryGeneratorBase {
class ApiQueryPortableInfobox extends ApiQueryBase {
public function __construct( $query, $moduleName ) {
parent::__construct( $query, $moduleName, 'ib' );
@ -15,16 +15,6 @@ class ApiQueryPortableInfobox extends ApiQueryGeneratorBase {
return __CLASS__ . '$Id$';
}
/**
* Execute this module as a generator
*
* @param $resultPageSet ApiPageSet: All output should be appended to
* this object
*/
public function executeGenerator( $resultPageSet ) {
$this->runOnPageSet( $resultPageSet );
}
protected function runOnPageSet( ApiPageSet $pageSet ) {
$articles = array_map( function ( Title $item ) {
return Article::newFromTitle( $item, RequestContext::getMain() );