MediaWiki
REL1_22
|
Public Member Functions | |
__construct (IContextSource $context, $userName=null, $search= '', $including=false, $showAll=false) | |
doBatchLookups () | |
Called from getBody(), before getStartBody() is called and after doQuery() was called. | |
formatValue ($field, $value) | |
Format a table cell. | |
getDefaultQuery () | |
Get an array of query parameters that should be put into self-links. | |
getDefaultSort () | |
The database field name used as a default sort order. | |
getFieldNames () | |
getForm () | |
getNavClass () | |
getPagingQueries () | |
Get a URL query array for the prev, next, first and last links. | |
getQueryInfo () | |
This function should be overridden to provide all parameters needed for the main paged query. | |
getSortHeaderClass () | |
getTableClass () | |
getTitle () | |
Get the Title object. | |
isFieldSortable ($field) | |
Return true if the named field should be sortable by the UI, false otherwise. | |
reallyDoQuery ($offset, $limit, $asc) | |
Override reallyDoQuery to mix together two queries. | |
Public Attributes | |
$mFieldNames = null | |
$mIncluding = false | |
$mQueryConds = array() | |
$mSearch = '' | |
$mShowAll = false | |
$mTableName = 'image' | |
$mUserName = null | |
Protected Member Functions | |
buildQueryConds ($table) | |
Build the where clause of the query. | |
combineResult ($res1, $res2, $limit, $ascending) | |
Combine results from 2 tables. | |
getQueryInfoReal ($table) | |
Actually get the query info. |
Definition at line 69 of file SpecialListfiles.php.
ImageListPager::__construct | ( | IContextSource $ | context, |
$ | userName = null , |
||
$ | search = '' , |
||
$ | including = false , |
||
$ | showAll = false |
||
) |
Definition at line 79 of file SpecialListfiles.php.
References $dbr, IContextSource\getRequest(), global, Title\newFromText(), Title\newFromURL(), and wfGetDB().
ImageListPager::buildQueryConds | ( | $ | table | ) | [protected] |
Build the where clause of the query.
Replaces the older mQueryConds member variable.
$table | String Either "image" or "oldimage" |
Definition at line 126 of file SpecialListfiles.php.
References $dbr, array(), Title\newFromURL(), and wfGetDB().
Referenced by getQueryInfoReal().
ImageListPager::combineResult | ( | $ | res1, |
$ | res2, | ||
$ | limit, | ||
$ | ascending | ||
) | [protected] |
Combine results from 2 tables.
Note: This will throw away some results
$res1 | ResultWrapper |
$res2 | ResultWrapper |
$limit | int |
$ascending | boolean See note about $asc in $this->reallyDoQuery |
Definition at line 333 of file SpecialListfiles.php.
References $limit, and array().
Referenced by reallyDoQuery().
Called from getBody(), before getStartBody() is called and after doQuery() was called.
This will be called only if there are rows in the result set.
Reimplemented from IndexPager.
Definition at line 379 of file SpecialListfiles.php.
References array(), as, and UserCache\singleton().
ImageListPager::formatValue | ( | $ | name, |
$ | value | ||
) |
Format a table cell.
The return value should be HTML, but use an empty string not   for empty cells. Do not include the
and .
The current result row is available as $this->mCurrentRow, in case you need more context.
string | $name | the database field name |
string | $value | the value retrieved from the database |
Reimplemented from TablePager.
Definition at line 389 of file SpecialListfiles.php.
References $file, $link, $name, $value, array(), Xml\element(), Linker\formatComment(), Linker\link(), Linker\linkKnown(), Title\makeTitle(), Title\makeTitleSafe(), RepoGroup\singleton(), wfLocalFile(), and User\whoIs().
Get an array of query parameters that should be put into self-links.
By default, all parameters passed in the URL are used, except for a short blacklist.
Reimplemented from IndexPager.
Definition at line 514 of file SpecialListfiles.php.
References $queries.
The database field name used as a default sort order.
Reimplemented from TablePager.
Definition at line 369 of file SpecialListfiles.php.
References global.
Reimplemented from TablePager.
Definition at line 158 of file SpecialListfiles.php.
References array(), global, ContextSource\msg(), and text.
Referenced by getQueryInfoReal().
Definition at line 451 of file SpecialListfiles.php.
References array(), Xml\buildForm(), Html\closeElement(), Xml\fieldset(), global, Html\hidden(), Html\input(), Html\openElement(), and text.
Reimplemented from TablePager.
Definition at line 494 of file SpecialListfiles.php.
Get a URL query array for the prev, next, first and last links.
Reimplemented from IndexPager.
Definition at line 502 of file SpecialListfiles.php.
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 212 of file SpecialListfiles.php.
References getQueryInfoReal().
ImageListPager::getQueryInfoReal | ( | $ | table | ) | [protected] |
Actually get the query info.
This is to allow displaying both stuff from image and oldimage table.
This is a bit hacky.
$table | String Either 'image' or 'oldimage' |
Definition at line 230 of file SpecialListfiles.php.
References $dbr, $options, array(), as, buildQueryConds(), getFieldNames(), and wfGetDB().
Referenced by getQueryInfo().
Reimplemented from TablePager.
Definition at line 498 of file SpecialListfiles.php.
Reimplemented from TablePager.
Definition at line 490 of file SpecialListfiles.php.
Get the Title object.
Reimplemented from ContextSource.
Definition at line 523 of file SpecialListfiles.php.
References SpecialPage\getTitleFor().
ImageListPager::isFieldSortable | ( | $ | field | ) |
Return true if the named field should be sortable by the UI, false otherwise.
$field | String |
Reimplemented from TablePager.
Definition at line 180 of file SpecialListfiles.php.
ImageListPager::reallyDoQuery | ( | $ | offset, |
$ | limit, | ||
$ | asc | ||
) |
Override reallyDoQuery to mix together two queries.
Reimplemented from IndexPager.
Definition at line 293 of file SpecialListfiles.php.
References $fname, $limit, $options, IndexPager\buildQueryInfo(), combineResult(), and list.
ImageListPager::$mFieldNames = null |
Definition at line 70 of file SpecialListfiles.php.
ImageListPager::$mIncluding = false |
Definition at line 75 of file SpecialListfiles.php.
ImageListPager::$mQueryConds = array() |
Definition at line 72 of file SpecialListfiles.php.
ImageListPager::$mSearch = '' |
Definition at line 74 of file SpecialListfiles.php.
ImageListPager::$mShowAll = false |
Definition at line 76 of file SpecialListfiles.php.
ImageListPager::$mTableName = 'image' |
Definition at line 77 of file SpecialListfiles.php.
ImageListPager::$mUserName = null |
Definition at line 73 of file SpecialListfiles.php.