MediaWiki
REL1_24
|
Use TablePager for prettified output. More...
Public Member Functions | |
__construct ($page, $conds, $langObj=null) | |
buildForm () | |
formatRow ($row) | |
formatValue ($field, $value) | |
Format a table cell. | |
getAllMessages ($descending) | |
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. | |
getFieldNames () | |
An array mapping database field names to a textual description of the field name, for use in the table header. | |
getQueryInfo () | |
This function should be overridden to provide all parameters needed for the main paged query. | |
getRowAttrs ($row, $isSecond=false) | |
getStartBody () | |
getTitle () | |
Get the Title object. | |
isFieldSortable ($x) | |
Return true if the named field should be sortable by the UI, false otherwise. | |
reallyDoQuery ($offset, $limit, $descending) | |
This function normally does a database query to get the results; we need to make a pretend result using a FakeResultWrapper. | |
Static Public Member Functions | |
static | getCustomisedStatuses ($messageNames, $langcode= 'en', $foreign=false) |
Determine which of the MediaWiki and MediaWiki_talk namespace pages exist. | |
Public Attributes | |
null bool | $custom |
$displayPrefix | |
Language | $lang |
$langcode | |
$mLimitsShown | |
$prefix | |
Protected Attributes | |
$filter |
Use TablePager for prettified output.
We have to pretend that we're getting data from a table when in fact not all of it comes from the database.
Definition at line 83 of file SpecialAllMessages.php.
AllMessagesTablePager::__construct | ( | $ | page, |
$ | conds, | ||
$ | langObj = null |
||
) |
Definition at line 96 of file SpecialAllMessages.php.
Definition at line 144 of file SpecialAllMessages.php.
AllMessagesTablePager::formatRow | ( | $ | row | ) |
stdClass | $row |
Reimplemented from TablePager.
Definition at line 409 of file SpecialAllMessages.php.
AllMessagesTablePager::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 356 of file SpecialAllMessages.php.
AllMessagesTablePager::getAllMessages | ( | $ | descending | ) |
Definition at line 222 of file SpecialAllMessages.php.
AllMessagesTablePager::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
string | $field | The column |
string | $value | The cell contents |
Reimplemented from TablePager.
Definition at line 443 of file SpecialAllMessages.php.
static AllMessagesTablePager::getCustomisedStatuses | ( | $ | messageNames, |
$ | langcode = 'en' , |
||
$ | foreign = false |
||
) | [static] |
Determine which of the MediaWiki and MediaWiki_talk namespace pages exist.
Returns array( 'pages' => ..., 'talks' => ... ), where the subarrays have an entry for each existing page, with the key being the message name and value arbitrary.
array | $messageNames | |
string | $langcode | What language code |
bool | $foreign | Whether the $langcode is not the content language |
Definition at line 250 of file SpecialAllMessages.php.
Referenced by ApiQueryAllMessages\execute(), and DeleteEqualMessages\fetchMessageInfo().
The database field name used as a default sort order.
Reimplemented from TablePager.
Definition at line 469 of file SpecialAllMessages.php.
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 from TablePager.
Definition at line 454 of file SpecialAllMessages.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 473 of file SpecialAllMessages.php.
AllMessagesTablePager::getRowAttrs | ( | $ | row, |
$ | isSecond = false |
||
) |
Definition at line 429 of file SpecialAllMessages.php.
Reimplemented from TablePager.
Definition at line 334 of file SpecialAllMessages.php.
Get the Title object.
Reimplemented from ContextSource.
Definition at line 461 of file SpecialAllMessages.php.
AllMessagesTablePager::isFieldSortable | ( | $ | field | ) |
Return true if the named field should be sortable by the UI, false otherwise.
string | $field |
Reimplemented from TablePager.
Definition at line 465 of file SpecialAllMessages.php.
AllMessagesTablePager::reallyDoQuery | ( | $ | offset, |
$ | limit, | ||
$ | descending | ||
) |
This function normally does a database query to get the results; we need to make a pretend result using a FakeResultWrapper.
string | $offset | |
int | $limit | |
bool | $descending |
Reimplemented from IndexPager.
Definition at line 301 of file SpecialAllMessages.php.
null bool AllMessagesTablePager::$custom |
Definition at line 94 of file SpecialAllMessages.php.
AllMessagesTablePager::$displayPrefix |
Definition at line 84 of file SpecialAllMessages.php.
AllMessagesTablePager::$filter [protected] |
Definition at line 84 of file SpecialAllMessages.php.
Language AllMessagesTablePager::$lang |
Definition at line 90 of file SpecialAllMessages.php.
AllMessagesTablePager::$langcode |
Definition at line 84 of file SpecialAllMessages.php.
AllMessagesTablePager::$mLimitsShown |
Reimplemented from IndexPager.
Definition at line 86 of file SpecialAllMessages.php.
AllMessagesTablePager::$prefix |
Definition at line 84 of file SpecialAllMessages.php.