MediaWiki  REL1_19
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 10 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:
$skinSkin
$resultobject Result row
Returns:
mixed String or false to skip
Parameters:
$skinSkin object
$resultObject: database row

Reimplemented from QueryPage.

Definition at line 42 of file ImageQueryPage.php.

ImageQueryPage::getCellHtml ( row) [protected]

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

Parameters:
$rowObject: result row
Returns:
String

Reimplemented in MostimagesPage.

Definition at line 50 of file ImageQueryPage.php.

Referenced by outputResults().

Here is the caller graph for this function:

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

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

Parameters:
$outOutputPage to print to
$skinSkin: user skin to use [unused]
$dbrDatabaseBase (read) connection to use
$resInteger: result pointer
$numInteger: number of available result rows
$offsetInteger: paging offset

Reimplemented from QueryPage.

Definition at line 23 of file ImageQueryPage.php.

References $dbr, $out, $res, $title, getCellHtml(), and Title\makeTitleSafe().

Here is the call graph for this function:


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