|
MediaWiki master
|
A watchlist join with a settable condition on wl_user. More...
Inherits MediaWiki\RecentChanges\ChangesListQuery\BasicJoin.

Public Member Functions | |||||||
| __construct () | |||||||
| setUser (UserIdentity $user) | |||||||
| Set the user whose watchlist will be queried. | |||||||
Public Member Functions inherited from MediaWiki\RecentChanges\ChangesListQuery\BasicJoin | |||||||
| __construct (string $tableName, ?string $defaultAlias, $conds, $dependencies=[],) | |||||||
| alias (JoinDependencyProvider $provider, string $alias) | |||||||
Add or retrieve an instance of the join with the given table alias.
| |||||||
| forConds (JoinDependencyProvider $provider) | |||||||
Declare that the join is required to provide fields for the WHERE clause.Add or retrieve the default instance of the join.
| |||||||
| forFields (JoinDependencyProvider $provider) | |||||||
Declare that the join is required to provide fields in the SELECT clause.Add or retrieve the default instance of the join.
| |||||||
| prepare (SelectQueryBuilder $sqb) | |||||||
Add all registered instances of the join to a SELECT query.
| |||||||
Protected Member Functions | |
| getExtraConds (?string $alias) | |
| Add the wl_user condition. | |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\RecentChanges\ChangesListQuery\BasicJoin | |
| ChangesListJoinBuilder[] | $instances = [] |
A watchlist join with a settable condition on wl_user.
Definition at line 12 of file WatchlistJoin.php.
| MediaWiki\RecentChanges\ChangesListQuery\WatchlistJoin::__construct | ( | ) |
Definition at line 15 of file WatchlistJoin.php.
|
protected |
Add the wl_user condition.
| string | null | $alias |
Reimplemented from MediaWiki\RecentChanges\ChangesListQuery\BasicJoin.
Definition at line 41 of file WatchlistJoin.php.
| MediaWiki\RecentChanges\ChangesListQuery\WatchlistJoin::setUser | ( | UserIdentity | $user | ) |
Set the user whose watchlist will be queried.
| UserIdentity | $user |
Definition at line 31 of file WatchlistJoin.php.
References MediaWiki\User\UserIdentity\getId().