MediaWiki master
JoinGroup.php
Go to the documentation of this file.
1<?php
2
3namespace Wikimedia\Rdbms;
4
10class 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}
Shared code between SelectQueryBuilder and JoinGroup to represent tables and join conditions.
Parenthesized group of table names and their join types and conditions.
Definition JoinGroup.php:10
__construct( $alias)
Use SelectQueryBuilder::newJoinGroup() to create a join group.
Definition JoinGroup.php:23
getAutoAlias()
Get a table alias which is unique to the parent SelectQueryBuilder.
Definition JoinGroup.php:32