MediaWiki
master
JoinGroup.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Wikimedia\Rdbms
;
4
10
class
JoinGroup
extends
JoinGroupBase
{
12
private
$alias;
13
15
private
$nextAutoAlias = 0;
16
23
public
function
__construct
( $alias ) {
24
$this->alias = $alias;
25
}
26
32
protected
function
getAutoAlias
() {
33
return
$this->alias .
'_'
. ( $this->nextAutoAlias++ );
34
}
35
40
public
function
getRawTables
() {
41
return
$this->tables
;
42
}
43
48
public
function
getRawJoinConds
() {
49
return
$this->joinConds
;
50
}
51
56
public
function
getAlias
() {
57
return
$this->alias;
58
}
59
}
Wikimedia\Rdbms\JoinGroupBase
Shared code between SelectQueryBuilder and JoinGroup to represent tables and join conditions.
Definition
JoinGroupBase.php:12
Wikimedia\Rdbms\JoinGroupBase\$tables
array $tables
Definition
JoinGroupBase.php:14
Wikimedia\Rdbms\JoinGroupBase\$joinConds
array $joinConds
Definition
JoinGroupBase.php:17
Wikimedia\Rdbms\JoinGroup
Parenthesized group of table names and their join types and conditions.
Definition
JoinGroup.php:10
Wikimedia\Rdbms\JoinGroup\getRawTables
getRawTables()
Definition
JoinGroup.php:40
Wikimedia\Rdbms\JoinGroup\__construct
__construct( $alias)
Use SelectQueryBuilder::newJoinGroup() to create a join group.
Definition
JoinGroup.php:23
Wikimedia\Rdbms\JoinGroup\getAutoAlias
getAutoAlias()
Get a table alias which is unique to the parent SelectQueryBuilder.
Definition
JoinGroup.php:32
Wikimedia\Rdbms\JoinGroup\getAlias
getAlias()
Definition
JoinGroup.php:56
Wikimedia\Rdbms\JoinGroup\getRawJoinConds
getRawJoinConds()
Definition
JoinGroup.php:48
Wikimedia\Rdbms
Definition
ChangedTablesTracker.php:3
includes
libs
rdbms
querybuilder
JoinGroup.php
Generated on Tue Oct 8 2024 23:24:36 for MediaWiki by
1.10.0