mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
DAT-2875 remove generator functionality
This commit is contained in:
parent
81e1754a02
commit
c73ff55883
|
@ -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() );
|
||||
|
|
Loading…
Reference in a new issue