ImageHistoryPseudoPager Class Reference

Inherits ReverseChronologicalPager.

List of all members.

Public Member Functions

 __construct ($imagePage)
 getTitle ()
 Title used for self-links.
 getQueryInfo ()
 This function should be overridden to provide all parameters needed for the main paged query.
 getIndexField ()
 This function should be overridden to return the name of the index fi- eld.
 formatRow ($row)
 Abstract formatting function.
 getBody ()
 Get the formatted result list.
 doQuery ()
 Do the query, using information from the object context.
 getPreventClickjacking ()

Protected Member Functions

 preventClickjacking ($enable=true)

Protected Attributes

 $preventClickjacking = false


Detailed Description

Definition at line 1031 of file ImagePage.php.


Constructor & Destructor Documentation

ImageHistoryPseudoPager::__construct ( imagePage  ) 

Definition at line 1034 of file ImagePage.php.

References ReverseChronologicalPager::__construct().


Member Function Documentation

ImageHistoryPseudoPager::doQuery (  ) 

Do the query, using information from the object context.

This function has been kept minimal to make it overridable if necessary, to allow for result sets formed from multiple DB queries.

Reimplemented from IndexPager.

Definition at line 1082 of file ImagePage.php.

Referenced by getBody().

ImageHistoryPseudoPager::formatRow ( row  ) 

Abstract formatting function.

This should return an HTML string representing the result row $row. Rows will be concatenated and returned by getBody()

Reimplemented from IndexPager.

Definition at line 1056 of file ImagePage.php.

ImageHistoryPseudoPager::getBody (  ) 

Get the formatted result list.

Calls getStartBody(), formatRow() and getEndBody(), concatenates the results and returns them.

Reimplemented from IndexPager.

Definition at line 1060 of file ImagePage.php.

References $i, $s, doQuery(), ReverseChronologicalPager::getNavigationBar(), and preventClickjacking().

ImageHistoryPseudoPager::getIndexField (  ) 

This function should be overridden to return the name of the index fi- eld.

If the pager supports multiple orders, it may return an array of 'querykey' => 'indexfield' pairs, so that a request with &count=querykey will use indexfield to sort. In this case, the first returned key is the default.

Needless to say, it's really not a good idea to use a non-unique index for this! That won't page right.

Reimplemented from IndexPager.

Definition at line 1052 of file ImagePage.php.

ImageHistoryPseudoPager::getPreventClickjacking (  ) 

Definition at line 1165 of file ImagePage.php.

References preventClickjacking().

ImageHistoryPseudoPager::getQueryInfo (  ) 

This function should be overridden to provide all parameters needed for the main paged query.

It returns an associative array with the following elements: tables => Table(s) for passing to Database::select() fields => Field(s) for passing to Database::select(), may be * conds => WHERE conditions options => option array join_conds => JOIN conditions

Reimplemented from IndexPager.

Definition at line 1048 of file ImagePage.php.

ImageHistoryPseudoPager::getTitle (  ) 

Title used for self-links.

Override this if you want to be able to use a title other than $wgTitle

Reimplemented from IndexPager.

Definition at line 1044 of file ImagePage.php.

ImageHistoryPseudoPager::preventClickjacking ( enable = true  )  [protected]

Definition at line 1161 of file ImagePage.php.

Referenced by getBody(), and getPreventClickjacking().


Member Data Documentation

ImageHistoryPseudoPager::$preventClickjacking = false [protected]

Definition at line 1032 of file ImagePage.php.


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

Generated on Sat Apr 30 22:57:39 2011 for MediaWiki by  doxygen 1.5.9