BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
WatchedItem Class Reference

Public Member Functions

 __construct (User $user, LinkTarget $linkTarget, $notificationTimestamp, $checkRights=null)
 
 getUser ()
 
 getLinkTarget ()
 
 getNotificationTimestamp ()
 
 getTitle ()
 
 resetNotificationTimestamp ($force= '', $oldid=0)
 
 addWatch ()
 
 removeWatch ()
 
 isWatched ()
 

Static Public Member Functions

static fromUserTitle ($user, $title, $checkRights=User::CHECK_USER_RIGHTS)
 
static duplicateEntries (Title $oldTitle, Title $newTitle)
 

Public Attributes

const IGNORE_USER_RIGHTS = User::IGNORE_USER_RIGHTS
 
const CHECK_USER_RIGHTS = User::CHECK_USER_RIGHTS
 
const DEPRECATED_USAGE_TIMESTAMP = -100
 
 $checkRights = User::CHECK_USER_RIGHTS
 

Detailed Description

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

Author
Tim Starling
Addshore

Constructor & Destructor Documentation

WatchedItem::__construct ( User  $user,
LinkTarget  $linkTarget,
  $notificationTimestamp,
  $checkRights = null 
)
Parameters
User$user
LinkTarget$linkTarget
null | string$notificationTimestampthe value of the wl_notificationtimestamp field
bool | null$checkRightsDO NOT USE - used internally for backward compatibility

Member Function Documentation

WatchedItem::addWatch ( )
Deprecated:
since 1.27 Use User::addWatch()
Returns
bool
static WatchedItem::duplicateEntries ( Title  $oldTitle,
Title  $newTitle 
)
static
static WatchedItem::fromUserTitle (   $user,
  $title,
  $checkRights = User::CHECK_USER_RIGHTS 
)
static
WatchedItem::getLinkTarget ( )
Returns
LinkTarget
WatchedItem::getNotificationTimestamp ( )

Get the notification timestamp of this entry.

Returns
bool|null|string
WatchedItem::getTitle ( )

Back compat pre 1.27 with the WatchedItemStore introduction

Todo:

remove in 1.28/9

Returns
Title
Deprecated:
Internal class use only
WatchedItem::getUser ( )
Returns
User
WatchedItem::isWatched ( )
Deprecated:
since 1.27 Use User::isWatched()
Returns
bool
WatchedItem::removeWatch ( )
Deprecated:
since 1.27 Use User::removeWatch()
Returns
bool
WatchedItem::resetNotificationTimestamp (   $force = '',
  $oldid = 0 
)

Member Data Documentation

const WatchedItem::CHECK_USER_RIGHTS = User::CHECK_USER_RIGHTS
const WatchedItem::DEPRECATED_USAGE_TIMESTAMP = -100
Deprecated:
Internal class use only
const WatchedItem::IGNORE_USER_RIGHTS = User::IGNORE_USER_RIGHTS

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