SELECT( 'qc_value', 'qc_namespace', 'qc_title' ) ->FROM( 'querycache' ) ->WHERE( 'qc_type' )->EQUAL_TO( AllinfoboxesQueryPage::ALL_INFOBOXES_TYPE ) ->run( $dbr, function ( ResultWrapper $result ) { $out = [ ]; while ( $row = $result->fetchRow() ) { $out[] = [ 'pageid' => $row[ 'qc_value' ], 'title' => $row[ 'qc_title' ], 'ns' => $row[ 'qc_namespace' ] ]; } return $out; } ); } ); foreach ( $data as $id => $infobox ) { $this->getResult()->addValue( [ 'query', 'allinfoboxes' ], null, $infobox ); } $this->getResult()->setIndexedTagName_internal( [ 'query', 'allinfoboxes' ], 'i' ); } public function getVersion() { return __CLASS__ . '$Id$'; } }