MediaWiki
REL1_24
|
Item class for a live revision table row. More...
Public Member Functions | |
__construct ($list, $row) | |
canView () | |
Returns true if the current user can view the item. | |
canViewContent () | |
Returns true if the current user can view the item text/file. | |
getAuthorIdField () | |
Get the DB field name storing user ids. | |
getAuthorNameField () | |
Get the DB field name storing user names. | |
getHTML () | |
Get the HTML of the list item. | |
getIdField () | |
Get the DB field name associated with the ID list. | |
getTimestampField () | |
Get the DB field name storing timestamps. | |
isDeleted () | |
Protected Member Functions | |
getDiffLink () | |
Get the HTML link to the diff. | |
getRevisionLink () | |
Get the HTML link to the revision text. | |
Protected Attributes | |
RequestContext | $context |
* | |
Revision | $revision |
* |
Item class for a live revision table row.
Definition at line 290 of file RevisionList.php.
RevisionItem::__construct | ( | $ | list, |
$ | row | ||
) |
RevisionListBase | $list | |
object | $row | DB result row |
Reimplemented from RevisionItemBase.
Definition at line 295 of file RevisionList.php.
Referenced by getIdField().
Returns true if the current user can view the item.
Reimplemented from RevisionItemBase.
Definition at line 317 of file RevisionList.php.
Returns true if the current user can view the item text/file.
Reimplemented from RevisionItemBase.
Definition at line 321 of file RevisionList.php.
Referenced by getDiffLink(), and getRevisionLink().
Get the DB field name storing user ids.
Override this function.
Reimplemented from RevisionItemBase.
Definition at line 309 of file RevisionList.php.
Get the DB field name storing user names.
Override this function.
Reimplemented from RevisionItemBase.
Definition at line 313 of file RevisionList.php.
RevisionItem::getDiffLink | ( | ) | [protected] |
Get the HTML link to the diff.
Overridden by RevDelArchiveItem
Definition at line 355 of file RevisionList.php.
References array(), canViewContent(), isDeleted(), Linker\link(), and list.
Get the HTML of the list item.
Should be include "<li></li>" tags. This is used to show the list in HTML form, by the special page.
Reimplemented from RevisionItemBase.
Definition at line 376 of file RevisionList.php.
Get the DB field name associated with the ID list.
Override this function.
Reimplemented from RevisionItemBase.
Definition at line 301 of file RevisionList.php.
References RevisionItemBase\$list, RevisionItemBase\$row, __construct(), and ContextSource\getContext().
RevisionItem::getRevisionLink | ( | ) | [protected] |
Get the HTML link to the revision text.
Overridden by RevDelArchiveItem.
Definition at line 334 of file RevisionList.php.
References array(), canViewContent(), isDeleted(), Linker\link(), list, and true.
Get the DB field name storing timestamps.
Override this function.
Reimplemented from RevisionItemBase.
Definition at line 305 of file RevisionList.php.
Definition at line 325 of file RevisionList.php.
Referenced by getDiffLink(), and getRevisionLink().
RequestContext RevisionItem::$context [protected] |
*
Definition at line 293 of file RevisionList.php.
Revision RevisionItem::$revision [protected] |
*
Definition at line 291 of file RevisionList.php.