MediaWiki REL1_32
WatchedItem Class Reference

Representation of a pair of user and title for watchlist entries. More...

Collaboration diagram for WatchedItem:

Public Member Functions

 __construct (User $user, LinkTarget $linkTarget, $notificationTimestamp)
 
 getLinkTarget ()
 
 getNotificationTimestamp ()
 Get the notification timestamp of this entry.
 
 getUser ()
 

Private Attributes

LinkTarget $linkTarget
 
null string $notificationTimestamp
 the value of the wl_notificationtimestamp field
 
User $user
 

Detailed Description

Representation of a pair of user and title for watchlist entries.

Author
Tim Starling
Addshore

Definition at line 32 of file WatchedItem.php.

Constructor & Destructor Documentation

◆ __construct()

WatchedItem::__construct ( User $user,
LinkTarget $linkTarget,
$notificationTimestamp )
Parameters
User$user
LinkTarget$linkTarget
null | string$notificationTimestampthe value of the wl_notificationtimestamp field

Definition at line 53 of file WatchedItem.php.

References $linkTarget, $notificationTimestamp, and $user.

Member Function Documentation

◆ getLinkTarget()

WatchedItem::getLinkTarget ( )
Returns
LinkTarget

Definition at line 73 of file WatchedItem.php.

References $linkTarget.

◆ getNotificationTimestamp()

WatchedItem::getNotificationTimestamp ( )

Get the notification timestamp of this entry.

Returns
bool|null|string

Definition at line 82 of file WatchedItem.php.

References $notificationTimestamp.

◆ getUser()

WatchedItem::getUser ( )
Returns
User

Definition at line 66 of file WatchedItem.php.

References $user.

Member Data Documentation

◆ $linkTarget

LinkTarget WatchedItem::$linkTarget
private

Definition at line 36 of file WatchedItem.php.

Referenced by __construct(), and getLinkTarget().

◆ $notificationTimestamp

null string WatchedItem::$notificationTimestamp
private

the value of the wl_notificationtimestamp field

Definition at line 46 of file WatchedItem.php.

Referenced by __construct(), and getNotificationTimestamp().

◆ $user

User WatchedItem::$user
private

Definition at line 41 of file WatchedItem.php.

Referenced by __construct(), and getUser().


The documentation for this class was generated from the following file: