MediaWiki
REL1_19
|
Public Member Functions | |
addWatch () | |
Given a title and user (assumes the object is setup), add the watch to the database. | |
isWatched () | |
Is mTitle being watched by mUser? | |
removeWatch () | |
Same as addWatch, only the opposite. | |
Static Public Member Functions | |
static | duplicateEntries ($ot, $nt) |
Check if the given title already is watched by the user, and if so add watches on a new title. | |
static | fromUserTitle ($user, $title) |
Create a WatchedItem object with the given user and title. | |
Public Attributes | |
$id | |
$mTitle | |
$mUser | |
$ns | |
$ti | |
Static Private Member Functions | |
static | doDuplicateEntries ($ot, $nt) |
Handle duplicate entries. |
Definition at line 10 of file WatchedItem.php.
Given a title and user (assumes the object is setup), add the watch to the database.
Definition at line 54 of file WatchedItem.php.
References MWNamespace\getSubject(), MWNamespace\getTalk(), wfGetDB(), wfProfileIn(), and wfProfileOut().
static WatchedItem::doDuplicateEntries | ( | $ | ot, |
$ | nt | ||
) | [static, private] |
Handle duplicate entries.
Backend for duplicateEntries().
Definition at line 142 of file WatchedItem.php.
References $res, and wfGetDB().
Referenced by duplicateEntries().
static WatchedItem::duplicateEntries | ( | $ | ot, |
$ | nt | ||
) | [static] |
Check if the given title already is watched by the user, and if so add watches on a new title.
To be used for page renames and such.
$ot | Title: page title to duplicate entries from, if present |
$nt | Title: page title to add watches on |
Definition at line 129 of file WatchedItem.php.
References doDuplicateEntries().
Referenced by Title\moveTo().
static WatchedItem::fromUserTitle | ( | $ | user, |
$ | title | ||
) | [static] |
Create a WatchedItem object with the given user and title.
$user | User: the user to use for (un)watching |
$title | Title: the title we're going to (un)watch |
Definition at line 19 of file WatchedItem.php.
Referenced by User\addWatch(), User\isWatched(), and User\removeWatch().
Is mTitle being watched by mUser?
Definition at line 38 of file WatchedItem.php.
References $dbr, $res, and wfGetDB().
Same as addWatch, only the opposite.
Definition at line 86 of file WatchedItem.php.
References $success, MWNamespace\getSubject(), MWNamespace\getTalk(), wfGetDB(), wfProfileIn(), and wfProfileOut().
WatchedItem::$id |
Definition at line 11 of file WatchedItem.php.
WatchedItem::$mTitle |
Definition at line 11 of file WatchedItem.php.
WatchedItem::$mUser |
Definition at line 11 of file WatchedItem.php.
WatchedItem::$ns |
Definition at line 11 of file WatchedItem.php.
WatchedItem::$ti |
Definition at line 11 of file WatchedItem.php.