MediaWiki REL1_37
JoinGroup.php
Go to the documentation of this file.
1<?php
2
3namespace Wikimedia\Rdbms;
4
9class JoinGroup extends JoinGroupBase {
11 private $alias;
12
14 private $nextAutoAlias = 0;
15
22 public function __construct( $alias ) {
23 $this->alias = $alias;
24 }
25
31 protected function getAutoAlias() {
32 return $this->alias . '_' . ( $this->nextAutoAlias++ );
33 }
34
39 public function getRawTables() {
40 return $this->tables;
41 }
42
47 public function getRawJoinConds() {
48 return $this->joinConds;
49 }
50
55 public function getAlias() {
56 return $this->alias;
57 }
58}
A class for code shared between SelectQueryBuilder and JoinGroup.
An object representing a parenthesized group of tables and their join types and conditions.
Definition JoinGroup.php:9
__construct( $alias)
Use SelectQueryBuilder::newJoinGroup() to create a join group.
Definition JoinGroup.php:22
getAutoAlias()
Get a table alias which is unique to the parent SelectQueryBuilder.
Definition JoinGroup.php:31