lib/db/cortex.php
protected function mergeWithRelFilter($key, $crit) {
		if (array_key_exists($key, $this->relFilter) &&
			!empty($this->relFilter[$key][0]))
			$crit=$this->mergeFilter(array($this->relFilter[$key][0],$crit));
		return $crit;
	}
protected function mergeWithRelFilter($key, $crit) {
		if (array_key_exists($key, $this->relFilter) &&
			!empty($this->relFilter[$key][0]))
			$crit=$this->mergeFilter(array($this->relFilter[$key][0],$crit));
		return $crit;
	}
protected function mergeWithRelFilter ( $ key , $ crit ) { if ( array_key_exists ( $ key , $ this -> relFilter ) && ! empty ( $ this -> relFilter [ $ key ] [ 0 ] ) ) $ crit = $ this -> mergeFilter ( array ( $ this -> relFilter [ $ key ] [ 0 ] , $ crit ) ) ; return $ crit ; }
merge the relation filter to the query criteria if it exists
@param string $key
@param array $crit
@return array
merge the relation filter to the query criteria if it exists