src/xPDO/Om/xPDOQuery.php
public function condition(& $target, $conditions= '1', $conjunction= xPDOQuery::SQL_AND, $binding= null, $condGroup= 0) {
        $condGroup= intval($condGroup);
        if (!isset ($target[$condGroup])) $target[$condGroup]= array ();
        try {
            $target[$condGroup][] = $this->parseConditions($conditions, $conjunction);
        } catch (xPDOException $e) {
            $this->xpdo->log(xPDO::LOG_LEVEL_ERROR, $e->getMessage());
            $this->where("2=1");
        }
        return $this;
    }
public function condition(& $target, $conditions= '1', $conjunction= xPDOQuery::SQL_AND, $binding= null, $condGroup= 0) {
        $condGroup= intval($condGroup);
        if (!isset ($target[$condGroup])) $target[$condGroup]= array ();
        try {
            $target[$condGroup][] = $this->parseConditions($conditions, $conjunction);
        } catch (xPDOException $e) {
            $this->xpdo->log(xPDO::LOG_LEVEL_ERROR, $e->getMessage());
            $this->where("2=1");
        }
        return $this;
    }
public function condition ( & $ target , $ conditions = '1' , $ conjunction = xPDOQuery :: SQL_AND , $ binding = null , $ condGroup = 0 ) { $ condGroup = intval ( $ condGroup ) ; if ( ! isset ( $ target [ $ condGroup ] ) ) $ target [ $ condGroup ] = array ( ) ; try { $ target [ $ condGroup ] [ ] = $ this -> parseConditions ( $ conditions , $ conjunction ) ; } catch ( xPDOException $ e ) { $ this -> xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , $ e -> getMessage ( ) ) ; $ this -> where ( "2=1" ) ; } return $ this ; }
Add a condition to the query.

@param string $target The target clause for the condition.
@param mixed $conditions A valid xPDO criteria expression.
@param string $conjunction The conjunction to use when appending this condition, i.e., AND or OR.
@param mixed $binding A value or PDO binding representation of a value for the condition.
@param integer $condGroup A numeric identifier for associating conditions into groups.
@return xPDOQuery Returns the instance.
Add a condition to the query .