ImageQueryPage Class Reference
[SpecialPage]

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

Inherits QueryPage.

Inherited by MostimagesPage, UncategorizedImagesPage, and UnusedimagesPage.

List of all members.

Protected Member Functions

 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.

Private Member Functions

 prepareImage ($row)
 Prepare an image object given a result row.


Detailed Description

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

Author:
Rob Church <robchur@gmail.com>

Definition at line 10 of file ImageQueryPage.php.


Member Function Documentation

ImageQueryPage::getCellHtml ( row  )  [protected]

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

Parameters:
object $row Result row
Returns:
string

Reimplemented in MostimagesPage.

Definition at line 61 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 $out OutputPage to print to
Skin $skin User skin to use
Database $dbr Database (read) connection to use
int $res Result pointer
int $num Number of available result rows
int $offset Paging offset

Reimplemented from QueryPage.

Definition at line 23 of file ImageQueryPage.php.

References $dbr, $i, $out, $res, $row, getCellHtml(), and prepareImage().

ImageQueryPage::prepareImage ( row  )  [private]

Prepare an image object given a result row.

Parameters:
object $row Result row
Returns:
Image

Definition at line 47 of file ImageQueryPage.php.

References $row, $title, Title::makeTitleSafe(), and wfFindFile().

Referenced by outputResults().


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

Generated on Sat Sep 5 02:08:38 2009 for MediaWiki by  doxygen 1.5.9