public function orHaving($cond, $value = null, $type = null)
    {
        if ($value !== null) {
            $cond = $this->_adapter->quoteInto($cond, $value, $type);
        }

        if ($this->_parts[self::HAVING]) {
            $this->_parts[self::HAVING][] = self::SQL_OR . " ($cond)";
        } else {
            $this->_parts[self::HAVING][] = "($cond)";
        }

        return $this;
    }
public function orHaving($cond, $value = null, $type = null)
    {
        if ($value !== null) {
            $cond = $this->_adapter->quoteInto($cond, $value, $type);
        }

        if ($this->_parts[self::HAVING]) {
            $this->_parts[self::HAVING][] = self::SQL_OR . " ($cond)";
        } else {
            $this->_parts[self::HAVING][] = "($cond)";
        }

        return $this;
    }
public function orHaving ( $ cond , $ value = null , $ type = null ) { if ( $ value !== null ) { $ cond = $ this -> _adapter -> quoteInto ( $ cond , $ value , $ type ) ; } if ( $ this -> _parts [ self :: HAVING ] ) { $ this -> _parts [ self :: HAVING ] [ ] = self :: SQL_OR . " ($cond)" ; } else { $ this -> _parts [ self :: HAVING ] [ ] = "($cond)" ; } return $ this ; }
Adds a HAVING condition to the query by OR.

Otherwise identical to orHaving().

@param string $cond The HAVING condition.
@param mixed    $value OPTIONAL The value to quote into the condition.
@param int      $type  OPTIONAL The type of the given value
@return Zend_Db_Select This Zend_Db_Select object.

@see having()
Adds a HAVING condition to the query by OR .