MediaWiki
REL1_31
WatchedItem.php
Go to the documentation of this file.
1
<?php
22
use
MediaWiki\Linker\LinkTarget
;
23
32
class
WatchedItem
{
36
private
$linkTarget
;
37
41
private
$user
;
42
46
private
$notificationTimestamp
;
47
53
public
function
__construct
(
54
User
$user,
55
LinkTarget
$linkTarget
,
56
$notificationTimestamp
57
) {
58
$this->user =
$user
;
59
$this->linkTarget =
$linkTarget
;
60
$this->notificationTimestamp =
$notificationTimestamp
;
61
}
62
66
public
function
getUser
() {
67
return
$this->user
;
68
}
69
73
public
function
getLinkTarget
() {
74
return
$this->linkTarget
;
75
}
76
82
public
function
getNotificationTimestamp
() {
83
return
$this->notificationTimestamp
;
84
}
85
}
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:53
WatchedItem
Representation of a pair of user and title for watchlist entries.
Definition
WatchedItem.php:32
WatchedItem\__construct
__construct(User $user, LinkTarget $linkTarget, $notificationTimestamp)
Definition
WatchedItem.php:53
WatchedItem\$linkTarget
LinkTarget $linkTarget
Definition
WatchedItem.php:36
WatchedItem\getUser
getUser()
Definition
WatchedItem.php:66
WatchedItem\getNotificationTimestamp
getNotificationTimestamp()
Get the notification timestamp of this entry.
Definition
WatchedItem.php:82
WatchedItem\getLinkTarget
getLinkTarget()
Definition
WatchedItem.php:73
WatchedItem\$user
User $user
Definition
WatchedItem.php:41
WatchedItem\$notificationTimestamp
null string $notificationTimestamp
the value of the wl_notificationtimestamp field
Definition
WatchedItem.php:46
MediaWiki\Linker\LinkTarget
Definition
LinkTarget.php:26
includes
watcheditem
WatchedItem.php
Generated on Mon Nov 25 2024 15:35:36 for MediaWiki by
1.10.0