Lines Matching refs:alias
41 * @param string $alias Under whichname to slect the column. blank for column name
43 public function addSelectColumn($tablealias, $column, $alias = '') argument
45 if ($alias === '') $alias = $column;
49 $this->select[$alias] = "$tablealias.$column";
56 * @param string $alias
64 public function addSelectStatement($statement, $alias) argument
66 $this->select[$alias] = $statement;
72 * @param string $alias
76 public function getSelectStatement($alias) argument
78 if (!isset($this->select[$alias])) {
82 return $this->select[$alias];
89 * @param string $alias alias for the table, blank for table name
91 public function addTable($table, $alias = '') argument
93 if ($alias === '') $alias = $table;
94 if (isset($this->from[$alias])) {
97 $this->from[$alias] = "$table AS $alias";
98 $this->type[$alias] = 'table';
213 foreach ($this->from as $alias => $statement) {
214 if ($this->type[$alias] == 'table' && $from) {
225 foreach ($this->select as $alias => $select) {
226 $selects[] = "$select AS $alias";