protected function processConditions(array $conditions) {
		foreach($cp=$conditions as $k=>$v) {
			if(is_numeric($k) || in_array(strtolower($k), ['and', 'or', 'xor', 'not'])) {
				$newK = $k;
				if(is_array($v))
					$v = $this->processConditions($v);
				else
					$v = $this->replaceTable($v);
			}
			else
				$newK = $this->replaceTable($k);

			if($newK != $k)
				unset($conditions[$k]);
			$conditions[$newK] = $v;
		}

		return $conditions;
	}
protected function processConditions(array $conditions) {
		foreach($cp=$conditions as $k=>$v) {
			if(is_numeric($k) || in_array(strtolower($k), ['and', 'or', 'xor', 'not'])) {
				$newK = $k;
				if(is_array($v))
					$v = $this->processConditions($v);
				else
					$v = $this->replaceTable($v);
			}
			else
				$newK = $this->replaceTable($k);

			if($newK != $k)
				unset($conditions[$k]);
			$conditions[$newK] = $v;
		}

		return $conditions;
	}
protected function processConditions ( array $ conditions ) { foreach ( $ cp = $ conditions as $ k => $ v ) { if ( is_numeric ( $ k ) || in_array ( strtolower ( $ k ) , [ 'and' , 'or' , 'xor' , 'not' ] ) ) { $ newK = $ k ; if ( is_array ( $ v ) ) $ v = $ this -> processConditions ( $ v ) ; else $ v = $ this -> replaceTable ( $ v ) ; } else $ newK = $ this -> replaceTable ( $ k ) ; if ( $ newK != $ k ) unset ( $ conditions [ $ k ] ) ; $ conditions [ $ newK ] = $ v ; } return $ conditions ; }
Format the conditions before being used in SQL.

@param array $conditions

@return array FormInterfaceatted conditions.
Format the conditions before being used in SQL .