MediaWiki  REL1_22
ImageQueryPage Class Reference

Variant of QueryPage which uses a gallery to output results, thus suited for reports generating images. More...

Inheritance diagram for ImageQueryPage:
Collaboration diagram for ImageQueryPage:

List of all members.

Public Member Functions

 formatResult ($skin, $result)
 Formats the results of the query for display.

Protected Member Functions

 getCellHtml ($row)
 Get additional HTML to be shown in a results' cell.
 outputResults ($out, $skin, $dbr, $res, $num, $offset)
 Format and output report results using the given information plus OutputPage.

Detailed Description

Variant of QueryPage which uses a gallery to output results, thus suited for reports generating images.

Author:
Rob Church <[email protected]>

Definition at line 31 of file ImageQueryPage.php.


Member Function Documentation

ImageQueryPage::formatResult ( skin,
result 
)

Formats the results of the query for display.

The skin is the current skin; you can use it for making links. The result is a single row of result data. You should be able to grab SQL results off of it. If the function returns false, the line output will be skipped.

Parameters:
Skin$skin
object$resultResult row
Returns:
string|bool String or false to skip

Reimplemented from QueryPage.

Definition at line 63 of file ImageQueryPage.php.

ImageQueryPage::getCellHtml ( row) [protected]

Get additional HTML to be shown in a results' cell.

Parameters:
object$rowResult row
Returns:
string

Reimplemented in MostimagesPage.

Definition at line 71 of file ImageQueryPage.php.

Referenced by outputResults().

ImageQueryPage::outputResults ( out,
skin,
dbr,
res,
num,
offset 
) [protected]

Format and output report results using the given information plus OutputPage.

Parameters:
OutputPage$outOutputPage to print to
Skin$skinUser skin to use [unused]
DatabaseBase$dbr(read) connection to use
int$resResult pointer
int$numNumber of available result rows
int$offsetPaging offset

Reimplemented from QueryPage.

Definition at line 43 of file ImageQueryPage.php.

References $dbr, $out, $res, $title, ImageGalleryBase\factory(), getCellHtml(), SpecialPage\getContext(), and Title\makeTitleSafe().


The documentation for this class was generated from the following file: