Beispiel #1
0
 protected function _renderColumnName(Column $column)
 {
     if ($column->isAll()) {
         return '*';
     }
     return $this->_enclose(parent::_renderColumnName($column));
 }
Beispiel #2
0
 /**
  * @param Column $column
  * @return string
  */
 protected function _renderColumnWithAlias(Column $column)
 {
     if (($alias = $column->getAlias()) && !$column->isAll()) {
         return $this->_renderColumn($column) . " AS " . $this->_renderAlias($alias);
     }
     return $this->_renderColumn($column);
 }
 public function testAlias()
 {
     $col = new Column("id", "project");
     $col->setAlias("project_id");
     $this->assertEquals("project_id", $col->getAlias());
 }