protected function filterColumn($col, $val, $op, $literal=false)
    {
        $valid_op = $this->validateOp($op);
        if ($valid_op === false) {
            throw new Exception('Invalid operator: ' . $op);
        }
        $this->filters[] = array(
            'left' => $col,
            'right' => $val,
            'op' => $valid_op,
            'rightIsLiteral' => $literal,
        );
    }
protected function filterColumn($col, $val, $op, $literal=false)
    {
        $valid_op = $this->validateOp($op);
        if ($valid_op === false) {
            throw new Exception('Invalid operator: ' . $op);
        }
        $this->filters[] = array(
            'left' => $col,
            'right' => $val,
            'op' => $valid_op,
            'rightIsLiteral' => $literal,
        );
    }
protected function filterColumn ( $ col , $ val , $ op , $ literal = false ) { $ valid_op = $ this -> validateOp ( $ op ) ; if ( $ valid_op === false ) { throw new Exception ( 'Invalid operator: ' . $ op ) ; } $ this -> filters [ ] = array ( 'left' => $ col , 'right' => $ val , 'op' => $ valid_op , 'rightIsLiteral' => $ literal , ) ; }
Add column WHERE condition
@param $col [string] column name
@param $val [mixed] right operand of condition
@param $op [string] operator (<, <=, >, >=, =, <>)
@param $literal [boolean, default false] indicates that
a string $val is the string itself and not a column name
or other SQL expression.
Add column WHERE condition