Gdn_SQLDriver::having PHP Method

having() public method

Adds to the $this->_Havings collection. Called by $this->Having() and $this->OrHaving().
public having ( mixed $Field, string $Value = '', $EscapeField = true, $EscapeValue = true ) : Gdn_SQLDriver
$Field mixed The name of the field (or array of field names) in the having clause.
$Value string The string on the right side of the having comparison.
return Gdn_SQLDriver $this
    function having($Field, $Value = '', $EscapeField = true, $EscapeValue = true)
    {
        if (!is_array($Field)) {
            $Field = array($Field => $Value);
        }
        foreach ($Field as $ChildField => $ChildValue) {
            $Expr = $this->conditionExpr($ChildField, $ChildValue, $EscapeField, $EscapeValue);
            $this->_having($Expr);
        }
        return $this;
    }