59 $gallery = ImageGalleryBase::factory(
false, $this->
getContext() );
64 foreach ( $res as $row ) {
66 $namespace = $row->namespace ??
NS_FILE;
67 $title = Title::makeTitleSafe( $namespace, $row->title );
69 $gallery->add( $title, $this->
getCellHtml( $row ),
'',
'', [], ImageGalleryBase::LOADING_LAZY );
76 $out->addHTML( $gallery->toHTML() );
106class_alias( ImageQueryPage::class,
'ImageQueryPage' );
This is one of the Core classes and should be read at least once by any new developers.
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
formatResult( $skin, $result)
outputResults( $out, $skin, $dbr, $res, $num, $offset)
Format and output report results using the given information plus OutputPage.
getCellHtml( $row)
Get additional HTML to be shown in a results' cell.
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
int $offset
The offset and limit in use, as passed to the query() function.
getContext()
Gets the context this SpecialPage is executed in.
The base class for all skins.