/** * Hack for versions of PHP that do not work with clone * * @return As_SelectQuery * @author Anthony Bush * @since 2008-03-17 **/ public function getClone() { $sql = new As_SelectQuery($this->db); $sql->setSelect($this->getSelect()); $sql->setFrom($this->getFrom()); $sql->setWhere($this->getWhere()); $sql->setGroupBy($this->getGroupBy()); $sql->setHaving($this->getHaving()); $sql->setOrderBy($this->getOrderBy()); $sql->setLimit($this->getLimit()); $sql->setOffset($this->getOffset()); return $sql; }