MediaWiki REL1_30
|
Representation of a pair of user and title for watchlist entries. More...
Public Member Functions | |
__construct (User $user, LinkTarget $linkTarget, $notificationTimestamp, $checkRights=null) | |
addWatch () | |
getLinkTarget () | |
getNotificationTimestamp () | |
Get the notification timestamp of this entry. | |
getTitle () | |
Back compat pre 1.27 with the WatchedItemStore introduction. | |
getUser () | |
isWatched () | |
removeWatch () | |
Static Public Member Functions | |
static | duplicateEntries (Title $oldTitle, Title $newTitle) |
static | fromUserTitle ( $user, $title, $checkRights=User::CHECK_USER_RIGHTS) |
Public Attributes | |
bool | $checkRights = User::CHECK_USER_RIGHTS |
const | CHECK_USER_RIGHTS = User::CHECK_USER_RIGHTS |
const | DEPRECATED_USAGE_TIMESTAMP = -100 |
const | IGNORE_USER_RIGHTS = User::IGNORE_USER_RIGHTS |
Private Attributes | |
LinkTarget | $linkTarget |
null string | $notificationTimestamp |
the value of the wl_notificationtimestamp field | |
Title | $title |
User | $user |
Representation of a pair of user and title for watchlist entries.
Definition at line 32 of file WatchedItem.php.
WatchedItem::__construct | ( | User | $user, |
LinkTarget | $linkTarget, | ||
$notificationTimestamp, | |||
$checkRights = null ) |
User | $user | |
LinkTarget | $linkTarget | |
null | string | $notificationTimestamp | the value of the wl_notificationtimestamp field |
bool | null | $checkRights | DO NOT USE - used internally for backward compatibility |
Definition at line 82 of file WatchedItem.php.
References $checkRights, $linkTarget, $notificationTimestamp, and $user.
WatchedItem::addWatch | ( | ) |
Definition at line 163 of file WatchedItem.php.
References getTitle(), and wfDeprecated().
Definition at line 194 of file WatchedItem.php.
References $oldTitle, and wfDeprecated().
Referenced by WatchedItemIntegrationTest\testDuplicateAllAssociatedEntries(), and WatchedItemUnitTest\testDuplicateEntries().
|
static |
Definition at line 154 of file WatchedItem.php.
References $checkRights, $title, $user, DEPRECATED_USAGE_TIMESTAMP, and wfDeprecated().
Referenced by WatchedItemIntegrationTest\testDuplicateAllAssociatedEntries(), WatchedItemUnitTest\testFromUserTitle(), WatchedItemIntegrationTest\testGetNotificationTimestamp_falseOnNotAllowed(), WatchedItemIntegrationTest\testGetNotificationTimestamp_falseOnNotWatched(), WatchedItemIntegrationTest\testIsWatched_falseOnNotAllowed(), WatchedItemIntegrationTest\testRemoveWatch_falseOnNotAllowed(), WatchedItemIntegrationTest\testUpdateAndResetNotificationTimestamp(), and WatchedItemIntegrationTest\testWatchAndUnWatchItem().
WatchedItem::getLinkTarget | ( | ) |
WatchedItem::getNotificationTimestamp | ( | ) |
Get the notification timestamp of this entry.
Definition at line 115 of file WatchedItem.php.
References $notificationTimestamp.
WatchedItem::getTitle | ( | ) |
Back compat pre 1.27 with the WatchedItemStore introduction.
Definition at line 143 of file WatchedItem.php.
References $title.
Referenced by addWatch(), isWatched(), and removeWatch().
WatchedItem::getUser | ( | ) |
WatchedItem::isWatched | ( | ) |
Definition at line 186 of file WatchedItem.php.
References getTitle(), and wfDeprecated().
WatchedItem::removeWatch | ( | ) |
Definition at line 173 of file WatchedItem.php.
References getTitle(), and wfDeprecated().
bool WatchedItem::$checkRights = User::CHECK_USER_RIGHTS |
Definition at line 53 of file WatchedItem.php.
Referenced by __construct(), and fromUserTitle().
|
private |
Definition at line 64 of file WatchedItem.php.
Referenced by __construct(), and getLinkTarget().
|
private |
the value of the wl_notificationtimestamp field
Definition at line 74 of file WatchedItem.php.
Referenced by __construct(), and getNotificationTimestamp().
|
private |
Definition at line 59 of file WatchedItem.php.
Referenced by fromUserTitle(), and getTitle().
|
private |
Definition at line 69 of file WatchedItem.php.
Referenced by __construct(), fromUserTitle(), and getUser().
const WatchedItem::CHECK_USER_RIGHTS = User::CHECK_USER_RIGHTS |
Definition at line 42 of file WatchedItem.php.
const WatchedItem::DEPRECATED_USAGE_TIMESTAMP = -100 |
Definition at line 47 of file WatchedItem.php.
Referenced by fromUserTitle().
const WatchedItem::IGNORE_USER_RIGHTS = User::IGNORE_USER_RIGHTS |
Definition at line 37 of file WatchedItem.php.