public function generateFilterConditions($filter = null) {
		$retval = [];
		if ($filter) {
			foreach ($this->searchFields as $field) {
				$retval['OR']["$field LIKE"] = '%' . $filter . '%';
			}
		}
		return $retval;
	}
public function generateFilterConditions($filter = null) {
		$retval = [];
		if ($filter) {
			foreach ($this->searchFields as $field) {
				$retval['OR']["$field LIKE"] = '%' . $filter . '%';
			}
		}
		return $retval;
	}
public function generateFilterConditions ( $ filter = null ) { $ retval = [ ] ; if ( $ filter ) { foreach ( $ this -> searchFields as $ field ) { $ retval [ 'OR' ] [ "$field LIKE" ] = '%' . $ filter . '%' ; } } return $ retval ; }
Return conditions based on searchable fields and filter

@param string|null $filter The filter string.
@return array The generated filter conditions array.
Return conditions based on searchable fields and filter