/** * If no channel is set, try to fill it from configuration data. * * @param FACTFinder\Util\Parameters $parameters The parameters object to * check. */ protected function ensureChannelParameter($parameters) { if ((!isset($parameters['channel']) || $parameters['channel'] == '') && $this->configuration->getChannel() != '') { $parameters['channel'] = $this->configuration->getChannel(); } }
/** * Ensures that the passed parameters object has a "channel" parameter by * adding one if necessary. * @param Parameters $parameters Parameters to be modifier. */ protected function ensureChannelParameter($parameters) { if (!isset($parameters['channel']) || strlen($parameters['channel']) == 0) { $parameters['channel'] = $this->configuration->getChannel(); } }