MediaWiki
REL1_20
|
Table-based display with a user-selectable sort order. More...
Public Member Functions | |
__construct (IContextSource $context=null) | |
formatRow ($row) | |
formatValue ($name, $value) | |
Format a table cell. | |
getCellAttrs ($field, $value) | |
Get any extra attributes to be applied to the given cell. | |
getDefaultSort () | |
The database field name used as a default sort order. | |
getEmptyBody () | |
getEndBody () | |
getFieldNames () | |
An array mapping database field names to a textual description of the field name, for use in the table header. | |
getHiddenFields ($blacklist=array()) | |
Get <input type="hidden"> elements for use in a method="get" form. | |
getIndexField () | |
getLimitDropdown () | |
Gets a limit selection dropdown. | |
getLimitForm () | |
Get a form containing a limit selection dropdown. | |
getLimitSelect () | |
Get a "<select>" element which has options for each of the allowed limits. | |
getNavClass () | |
getNavigationBar () | |
A navigation bar with images. | |
getRowAttrs ($row) | |
Get attributes to be applied to the given row. | |
getRowClass ($row) | |
Get a class name to be applied to the given row. | |
getSortHeaderClass () | |
getStartBody () | |
getTableClass () | |
isFieldSortable ($field) | |
Return true if the named field should be sortable by the UI, false otherwise. | |
Public Attributes | |
$mCurrentRow | |
$mSort |
TablePager::__construct | ( | IContextSource $ | context = null | ) |
Reimplemented from IndexPager.
Definition at line 902 of file Pager.php.
References ContextSource\$context, getDefaultSort(), getFieldNames(), ContextSource\getRequest(), and ContextSource\setContext().
TablePager::formatRow | ( | $ | row | ) |
stdClass | $row |
Reimplemented from IndexPager.
Reimplemented in AllmessagesTablePager.
TablePager::formatValue | ( | $ | name, |
$ | value | ||
) | [abstract] |
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.
$name | String: the database field name |
$value | String: the value retrieved from the database |
Reimplemented in AllmessagesTablePager, BlockListPager, and ImageListPager.
TablePager::getCellAttrs | ( | $ | field, |
$ | value | ||
) |
Get any extra attributes to be applied to the given cell.
Don't take this as an excuse to hardcode styles; use classes and CSS instead. Row context is available in $this->mCurrentRow
$field | String The column |
$value | String The cell contents |
Reimplemented in AllmessagesTablePager.
TablePager::getDefaultSort | ( | ) | [abstract] |
The database field name used as a default sort order.
Reimplemented in AllmessagesTablePager, BlockListPager, and ImageListPager.
Referenced by __construct().
TablePager::getFieldNames | ( | ) | [abstract] |
An array mapping database field names to a textual description of the field name, for use in the table header.
The description should be plain text, it will be HTML-escaped later.
Reimplemented in AllmessagesTablePager, BlockListPager, and ImageListPager.
Referenced by __construct().
TablePager::getHiddenFields | ( | $ | blacklist = array() | ) |
Get <input type="hidden"> elements for use in a method="get" form.
Resubmits all defined elements of the query string, except for a blacklist, passed in the $blacklist parameter.
$blacklist | Array parameters from the request query which should not be resubmitted |
Definition at line 1184 of file Pager.php.
Referenced by ImageListPager\getForm().
Get a "<select>" element which has options for each of the allowed limits.
Definition at line 1151 of file Pager.php.
Referenced by ImageListPager\getForm().
TablePager::getRowAttrs | ( | $ | row | ) |
TablePager::getRowClass | ( | $ | row | ) |
Reimplemented from IndexPager.
Reimplemented in AllmessagesTablePager.
TablePager::isFieldSortable | ( | $ | field | ) | [abstract] |
Return true if the named field should be sortable by the UI, false otherwise.
$field | String |
Reimplemented in AllmessagesTablePager, BlockListPager, and ImageListPager.