MediaWiki
1.27.2
|
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. More... | |
getTitle () | |
Back compat pre 1.27 with the WatchedItemStore introduction. More... | |
getUser () | |
isWatched () | |
removeWatch () | |
resetNotificationTimestamp ($force= '', $oldid=0) | |
Static Public Member Functions | |
static | batchAddWatch (array $items) |
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 More... | |
Title | $title |
User | $user |
Representation of a pair of user and title for watchlist entries.
Definition at line 31 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 81 of file WatchedItem.php.
References $checkRights, $linkTarget, $notificationTimestamp, $user, and user.
WatchedItem::addWatch | ( | ) |
Definition at line 210 of file WatchedItem.php.
References getTitle(), and user.
|
static |
Definition at line 177 of file WatchedItem.php.
References $success, $user, as, WatchedItemStore\getDefaultInstance(), User\getId(), User\getTalkPage(), and User\isAllowed().
Referenced by WatchedItemUnitTest\testBatchAddWatch().
Definition at line 241 of file WatchedItem.php.
References WatchedItemStore\getDefaultInstance().
Referenced by WatchedItemIntegrationTest\testDuplicateAllAssociatedEntries(), and WatchedItemUnitTest\testDuplicateEntries().
|
static |
Definition at line 153 of file WatchedItem.php.
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 | ( | ) |
Definition at line 105 of file WatchedItem.php.
References $linkTarget.
Referenced by WatchedItemStore\cache().
WatchedItem::getNotificationTimestamp | ( | ) |
Get the notification timestamp of this entry.
Definition at line 114 of file WatchedItem.php.
References $notificationTimestamp, WatchedItemStore\getDefaultInstance(), and user.
WatchedItem::getTitle | ( | ) |
Back compat pre 1.27 with the WatchedItemStore introduction.
Definition at line 142 of file WatchedItem.php.
References $title, Title\newFromLinkTarget(), and title.
Referenced by addWatch(), isWatched(), removeWatch(), and resetNotificationTimestamp().
WatchedItem::getUser | ( | ) |
Definition at line 98 of file WatchedItem.php.
References $user.
Referenced by WatchedItemStore\cache().
WatchedItem::isWatched | ( | ) |
Definition at line 233 of file WatchedItem.php.
References getTitle(), and user.
WatchedItem::removeWatch | ( | ) |
Definition at line 220 of file WatchedItem.php.
References getTitle(), and user.
WatchedItem::resetNotificationTimestamp | ( | $force = '' , |
|
$oldid = 0 |
|||
) |
Definition at line 161 of file WatchedItem.php.
References WatchedItemStore\getDefaultInstance(), getTitle(), and user.
bool WatchedItem::$checkRights = User::CHECK_USER_RIGHTS |
Definition at line 52 of file WatchedItem.php.
Referenced by __construct().
|
private |
Definition at line 63 of file WatchedItem.php.
Referenced by __construct(), and getLinkTarget().
|
private |
the value of the wl_notificationtimestamp field
Definition at line 73 of file WatchedItem.php.
Referenced by __construct(), and getNotificationTimestamp().
|
private |
Definition at line 58 of file WatchedItem.php.
Referenced by fromUserTitle(), and getTitle().
|
private |
Definition at line 68 of file WatchedItem.php.
Referenced by __construct(), batchAddWatch(), fromUserTitle(), and getUser().
const WatchedItem::CHECK_USER_RIGHTS = User::CHECK_USER_RIGHTS |
Definition at line 41 of file WatchedItem.php.
const WatchedItem::DEPRECATED_USAGE_TIMESTAMP = -100 |
Definition at line 46 of file WatchedItem.php.
const WatchedItem::IGNORE_USER_RIGHTS = User::IGNORE_USER_RIGHTS |
Definition at line 36 of file WatchedItem.php.