MediaWiki
REL1_22
|
Public Member Functions | |
__construct (IContextSource $context, $par=null) | |
formatRow ($row) | |
Abstract formatting function. | |
getEndBody () | |
Hook into getBody() for the end of the list. | |
getForm () | |
getIndexField () | |
This function should be overridden to return the name of the index fi- eld. | |
getQueryInfo () | |
This function should be overridden to provide all parameters needed for the main paged query. | |
getStartBody () | |
Hook into getBody(), allows text to be inserted at the start. | |
Public Attributes | |
ImageGallery | $gallery |
Definition at line 54 of file SpecialNewimages.php.
NewFilesPager::__construct | ( | IContextSource $ | context, |
$ | par = null |
||
) |
Definition at line 59 of file SpecialNewimages.php.
References IContextSource\getRequest(), like, and IndexPager\setLimit().
NewFilesPager::formatRow | ( | $ | row | ) |
Abstract formatting function.
This should return an HTML string representing the result row $row. Rows will be concatenated and returned by getBody()
$row | Object: database row |
Reimplemented from IndexPager.
Definition at line 137 of file SpecialNewimages.php.
References $name, $time, $title, $ul, $user, ContextSource\getLanguage(), Linker\link(), Title\makeTitle(), and User\newFromId().
Hook into getBody() for the end of the list.
Reimplemented from IndexPager.
Definition at line 133 of file SpecialNewimages.php.
Definition at line 153 of file SpecialNewimages.php.
References ContextSource\$context, $form, array(), ContextSource\getContext(), ContextSource\getRequest(), ContextSource\getTitle(), global, and ContextSource\msg().
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 113 of file SpecialNewimages.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 69 of file SpecialNewimages.php.
References $dbr, $query, array(), User\getGroupsWithPermission(), global, like, Title\newFromURL(), and wfGetDB().
Hook into getBody(), allows text to be inserted at the start.
This will be called even if there are no rows in the result set.
Reimplemented from IndexPager.
Definition at line 117 of file SpecialNewimages.php.
References ImageGalleryBase\factory(), ContextSource\getContext(), and ContextSource\getRequest().
ImageGallery NewFilesPager::$gallery |
Definition at line 57 of file SpecialNewimages.php.