MediaWiki master
ApiWatchlistTrait.php File Reference

Go to the source code of this file.

Namespaces

namespace  MediaWiki\Api
 

Functions

 MediaWiki\Api::getExpiryFromParams (array $params)
 Get formatted expiry from the given parameters, or null if no expiry was provided.
 
 MediaWiki\Api::getWatchlistExpiry (WatchedItemStoreInterface $store, PageIdentity $page, UserIdentity $user)
 Get existing expiry from the database.
 
 MediaWiki\Api::getWatchlistParams (array $watchOptions=[])
 Get additional allow params specific to watchlisting.
 
 MediaWiki\Api::getWatchlistValue (string $watchlist, PageIdentity $page, User $user, ?string $userOption=null)
 Return true if we're to watch the page, false if not.
 
 MediaWiki\Api::setWatch (string $watch, PageIdentity $page, User $user, ?string $userOption=null, ?string $expiry=null)
 Set a watch (or unwatch) based the based on a watchlist parameter.
 

Variables

trait MediaWiki\Api::ApiWatchlistTrait
 An ApiWatchlistTrait adds class properties and convenience methods for APIs that allow you to watch a page.