MediaWiki master
|
Shared code between SelectQueryBuilder and JoinGroup to represent tables and join conditions. More...
Inherited by Wikimedia\Rdbms\JoinGroup, and Wikimedia\Rdbms\SelectQueryBuilder.
Public Member Functions | |
join ( $table, $alias=null, $conds=[]) | |
Inner join a table or group of tables. | |
leftJoin ( $table, $alias=null, $conds=[]) | |
Left join a table or group of tables. | |
straightJoin ( $table, $alias=null, $conds=[]) | |
Straight join a table or group of tables. | |
table ( $table, $alias=null) | |
Add a single table or a single parenthesized group. | |
Protected Member Functions | |
getAutoAlias () | |
Protected Attributes | |
array | $joinConds = [] |
string null | $lastAlias |
array | $tables = [] |
Shared code between SelectQueryBuilder and JoinGroup to represent tables and join conditions.
Definition at line 12 of file JoinGroupBase.php.
|
abstractprotected |
Reimplemented in Wikimedia\Rdbms\JoinGroup, and Wikimedia\Rdbms\SelectQueryBuilder.
Referenced by Wikimedia\Rdbms\JoinGroupBase\table().
Wikimedia\Rdbms\JoinGroupBase::join | ( | $table, | |
$alias = null, | |||
$conds = [] ) |
Inner join a table or group of tables.
This should be called after table().
string | JoinGroup | SelectQueryBuilder | $table | The unqualified name of a table, a table name of the form "information_schema.<unquoted identifier>", a JoinGroup containing multiple tables, or a SelectQueryBuilder representing a subquery. |
string | null | $alias | The alias name, or null to automatically generate an alias which will be unique to this builder |
string | array | $conds | The conditions for the ON clause |
Definition at line 86 of file JoinGroupBase.php.
Referenced by MediaWiki\Revision\ArchiveSelectQueryBuilder\joinComment(), MediaWiki\Revision\RevisionSelectQueryBuilder\joinComment(), and MediaWiki\ChangeTags\ChangeTagsStore\modifyDisplayQueryBuilder().
Wikimedia\Rdbms\JoinGroupBase::leftJoin | ( | $table, | |
$alias = null, | |||
$conds = [] ) |
Left join a table or group of tables.
This should be called after table().
string | JoinGroup | SelectQueryBuilder | $table | The unqualified name of a table, a table name of the form "information_schema.<unquoted identifier>", a JoinGroup containing multiple tables, or a SelectQueryBuilder representing a subquery. |
string | null | $alias | The alias name, or null to automatically generate an alias which will be unique to this builder |
string | array | $conds | The conditions for the ON clause |
Definition at line 70 of file JoinGroupBase.php.
Referenced by MediaWiki\ChangeTags\ChangeTagsStore\modifyDisplayQueryBuilder().
Wikimedia\Rdbms\JoinGroupBase::straightJoin | ( | $table, | |
$alias = null, | |||
$conds = [] ) |
Straight join a table or group of tables.
This should be called after table().
string | JoinGroup | SelectQueryBuilder | $table | The unqualified name of a table, a table name of the form "information_schema.<unquoted identifier>", a JoinGroup containing multiple tables, or a SelectQueryBuilder representing a subquery. |
string | null | $alias | The alias name, or null to automatically generate an alias which will be unique to this builder |
string | array | $conds | The conditions for the ON clause |
Definition at line 102 of file JoinGroupBase.php.
Wikimedia\Rdbms\JoinGroupBase::table | ( | $table, | |
$alias = null ) |
Add a single table or a single parenthesized group.
string | JoinGroup | SelectQueryBuilder | $table | The unqualified name of a table, a table name of the form "information_schema.<unquoted identifier>", a JoinGroup containing multiple tables, or a SelectQueryBuilder representing a subquery. |
string | null | $alias | The table alias, or null for no alias |
Definition at line 33 of file JoinGroupBase.php.
References Wikimedia\Rdbms\JoinGroupBase\getAutoAlias().
Referenced by MediaWiki\User\UserSelectQueryBuilder\__construct(), MediaWiki\Page\PageSelectQueryBuilder\__construct(), Wikimedia\Rdbms\SelectQueryBuilder\from(), and Wikimedia\Rdbms\SelectQueryBuilder\tables().
|
protected |
Definition at line 17 of file JoinGroupBase.php.
Referenced by Wikimedia\Rdbms\JoinGroup\getRawJoinConds().
|
protected |
Definition at line 20 of file JoinGroupBase.php.
|
protected |
Definition at line 14 of file JoinGroupBase.php.
Referenced by Wikimedia\Rdbms\JoinGroup\getRawTables(), Wikimedia\Rdbms\SelectQueryBuilder\rawTables(), and Wikimedia\Rdbms\SelectQueryBuilder\tables().