public function replaceTableInConditions($conditions, $oldTable, $newTable) {
		foreach($conditions as $k=>$v) {
			if(is_array($v))
				$v = $this->replaceTableInConditions($v, $oldTable, $newTable);
			else
				$v = preg_replace('/(?<![a-zA-Z0-9_])'.$oldTable.'\./', $newTable.'.', $v);

			if(is_string($k)) {
				$newK = preg_replace('/(?<![a-zA-Z0-9_])'.$oldTable.'\./', $newTable.'.', $k);
				unset($conditions[$k]);
				$conditions[$newK] = $v;
			}
			else
				$conditions[$k] = $v;
		}
		return $conditions;
	}
public function replaceTableInConditions($conditions, $oldTable, $newTable) {
		foreach($conditions as $k=>$v) {
			if(is_array($v))
				$v = $this->replaceTableInConditions($v, $oldTable, $newTable);
			else
				$v = preg_replace('/(?<![a-zA-Z0-9_])'.$oldTable.'\./', $newTable.'.', $v);

			if(is_string($k)) {
				$newK = preg_replace('/(?<![a-zA-Z0-9_])'.$oldTable.'\./', $newTable.'.', $k);
				unset($conditions[$k]);
				$conditions[$newK] = $v;
			}
			else
				$conditions[$k] = $v;
		}
		return $conditions;
	}
public function replaceTableInConditions ( $ conditions , $ oldTable , $ newTable ) { foreach ( $ conditions as $ k => $ v ) { if ( is_array ( $ v ) ) $ v = $ this -> replaceTableInConditions ( $ v , $ oldTable , $ newTable ) ; else $ v = preg_replace ( '/(?<![a-zA-Z0-9_])' . $ oldTable . '\./' , $ newTable . '.' , $ v ) ; if ( is_string ( $ k ) ) { $ newK = preg_replace ( '/(?<![a-zA-Z0-9_])' . $ oldTable . '\./' , $ newTable . '.' , $ k ) ; unset ( $ conditions [ $ k ] ) ; $ conditions [ $ newK ] = $ v ; } else $ conditions [ $ k ] = $ v ; } return $ conditions ; }
Replace an alias in conditions.
@param  array  $conditions
@param  string $oldTable
@param  string $newTable
@return array  new conditions
@api
Replace an alias in conditions .