|
MediaWiki master
|
A simple join with a fixed join condition. More...
Inherits MediaWiki\RecentChanges\ChangesListQuery\ChangesListJoinModule.
Inherited by MediaWiki\RecentChanges\ChangesListQuery\SlotsJoin, and MediaWiki\RecentChanges\ChangesListQuery\WatchlistJoin.

Public Member Functions | |||||||
| __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) | |
| Subclasses may override this to add to the ON clause. | |
Protected Attributes | |
| ChangesListJoinBuilder[] | $instances = [] |
| MediaWiki\RecentChanges\ChangesListQuery\BasicJoin::__construct | ( | string | $tableName, |
| ?string | $defaultAlias, | ||
| $conds, | |||
| $dependencies = [] ) |
| string | $tableName | The table name, and the module name. |
| string | null | $defaultAlias | The alias to use if none was specified, or an empty string or null for no alias. |
| string|(IExpression|string)[] | $conds The conditions for the ON clause | |
| string | string[] | $dependencies | Table names which must also be included in the query if this table is included. Each table must also be the name of a registered join module. |
Definition at line 32 of file BasicJoin.php.
| MediaWiki\RecentChanges\ChangesListQuery\BasicJoin::alias | ( | JoinDependencyProvider | $provider, |
| string | $alias ) |
Add or retrieve an instance of the join with the given table alias.
| JoinDependencyProvider | $provider | |
| string | $alias |
Implements MediaWiki\RecentChanges\ChangesListQuery\ChangesListJoinModule.
Definition at line 63 of file BasicJoin.php.
| MediaWiki\RecentChanges\ChangesListQuery\BasicJoin::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.
| JoinDependencyProvider | $provider |
Implements MediaWiki\RecentChanges\ChangesListQuery\ChangesListJoinModule.
Definition at line 54 of file BasicJoin.php.
References MediaWiki\RecentChanges\ChangesListQuery\JoinDependencyProvider\joinForConds().
| MediaWiki\RecentChanges\ChangesListQuery\BasicJoin::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.
| JoinDependencyProvider | $provider |
Implements MediaWiki\RecentChanges\ChangesListQuery\ChangesListJoinModule.
Definition at line 45 of file BasicJoin.php.
References MediaWiki\RecentChanges\ChangesListQuery\JoinDependencyProvider\joinForFields().
|
protected |
Subclasses may override this to add to the ON clause.
| ?string | $alias |
Reimplemented in MediaWiki\RecentChanges\ChangesListQuery\SlotsJoin, and MediaWiki\RecentChanges\ChangesListQuery\WatchlistJoin.
Definition at line 99 of file BasicJoin.php.
| MediaWiki\RecentChanges\ChangesListQuery\BasicJoin::prepare | ( | SelectQueryBuilder | $sqb | ) |
Add all registered instances of the join to a SELECT query.
| SelectQueryBuilder | $sqb |
Implements MediaWiki\RecentChanges\ChangesListQuery\ChangesListJoinModule.
Definition at line 69 of file BasicJoin.php.
|
protected |
Definition at line 15 of file BasicJoin.php.