protected function _getFieldsFromConfig($fields = null) {
		$result = [];
		if (empty($fields)) {
			return $result;
		}

		if (!is_array($fields)) {
			$result = [$fields];
		} else {
			$result = array_keys($fields);
		}

		return $result;
	}
protected function _getFieldsFromConfig($fields = null) {
		$result = [];
		if (empty($fields)) {
			return $result;
		}

		if (!is_array($fields)) {
			$result = [$fields];
		} else {
			$result = array_keys($fields);
		}

		return $result;
	}
protected function _getFieldsFromConfig ( $ fields = null ) { $ result = [ ] ; if ( empty ( $ fields ) ) { return $ result ; } if ( ! is_array ( $ fields ) ) { $ result = [ $ fields ] ; } else { $ result = array_keys ( $ fields ) ; } return $ result ; }
Get list of fields from query config fields

@param array $fields Query config fields.
@return array List of fields.
@see Search::getQueryConfig()
Get list of fields from query config fields