/** * @return String */ protected function createChannelsWithEmptyRow(Gpf_SqlBuilder_SelectBuilder $select) { $selectNullRow = new Gpf_SqlBuilder_SelectClause(); $selectNullRow->add('\'\'', Pap_Db_Table_Channels::ID); $selectNullRow->add('\' ' . $this->_('None channel') . '\'', Pap_Db_Table_Channels::NAME); return $select->toString() . ' UNION ' . $selectNullRow->toString(); }
public function equals(Gpf_SqlBuilder_SelectClause $select) { return $select->toString() == $this->toString(); }
public function toString() { return $this->select->toString() . ($this->from->isEmpty() ? '' : "FROM " . $this->from->toString()) . $this->where->toString() . $this->groupBy->toString() . $this->having->toString() . $this->orderBy->toString() . $this->limit->toString(); }