private function buildCondition($condition) 
    {
        $where = '';
        
        foreach($condition as $filter) {
            switch(count($filter)) {
                case 1:
                $where .= ' ' . $this->validateLogicalOperator(($filter[0])) . ' ';
                break;
                case 3:
                $where .= $this->quoteColumnName($filter[1]) .' '. $this->validateComparisonOperators($filter[0]) .' '. $this->handleThridParameter($filter[2]);
                break;
                case 4:
                $where .= $this->quoteColumnName($filter[1]) .' '. $this->validateComparisonOperators($filter[0]) .' '. $this->quoteValue($filter[2]) . ' AND ' . $this->quoteValue($filter[3]);
                break;
            }
        }
        
        return $where;
    }
private function buildCondition($condition) 
    {
        $where = '';
        
        foreach($condition as $filter) {
            switch(count($filter)) {
                case 1:
                $where .= ' ' . $this->validateLogicalOperator(($filter[0])) . ' ';
                break;
                case 3:
                $where .= $this->quoteColumnName($filter[1]) .' '. $this->validateComparisonOperators($filter[0]) .' '. $this->handleThridParameter($filter[2]);
                break;
                case 4:
                $where .= $this->quoteColumnName($filter[1]) .' '. $this->validateComparisonOperators($filter[0]) .' '. $this->quoteValue($filter[2]) . ' AND ' . $this->quoteValue($filter[3]);
                break;
            }
        }
        
        return $where;
    }
private function buildCondition ( $ condition ) { $ where = '' ; foreach ( $ condition as $ filter ) { switch ( count ( $ filter ) ) { case 1 : $ where .= ' ' . $ this -> validateLogicalOperator ( ( $ filter [ 0 ] ) ) . ' ' ; break ; case 3 : $ where .= $ this -> quoteColumnName ( $ filter [ 1 ] ) . ' ' . $ this -> validateComparisonOperators ( $ filter [ 0 ] ) . ' ' . $ this -> handleThridParameter ( $ filter [ 2 ] ) ; break ; case 4 : $ where .= $ this -> quoteColumnName ( $ filter [ 1 ] ) . ' ' . $ this -> validateComparisonOperators ( $ filter [ 0 ] ) . ' ' . $ this -> quoteValue ( $ filter [ 2 ] ) . ' AND ' . $ this -> quoteValue ( $ filter [ 3 ] ) ; break ; } } return $ where ; }
Builds a where condition from the array parameter.

Example
$condition = [
['=', 'id', '1'],
['and'],
['!=', 'status', '0']
];

@param array $condition is an array

@return string $where
Builds a where condition from the array parameter .