/** * Returns the parameters used by the html client. * * @param array $params Associative list of all parameters * @param string[] $prefixes List of prefixes the parameters must start with * @return array Associative list of parameters used by the html client */ protected function getClientParams(array $params, array $prefixes = array('f', 'l', 'd', 'a')) { if (isset($params['d_pos']) && isset($params['d_prodid'])) { $context = $this->getContext(); $site = $context->getLocale()->getSite()->getCode(); $params += (array) $context->getSession()->get('aimeos/catalog/lists/params/last/' . $site, array()); } return parent::getClientParams($params, $prefixes); }
/** * Returns the parameters used by the html client. * * @param array $params Associative list of all parameters * @param array $prefixes List of prefixes the parameters must start with * @return array Associative list of parameters used by the html client */ protected function getClientParams(array $params, array $prefixes = array('f', 'l', 'd', 'a')) { $list = parent::getClientParams($params, array_merge($prefixes, array('d'))); if (isset($list['d_prodid'])) { $context = $this->getContext(); $site = $context->getLocale()->getSite()->getCode(); $list += (array) $context->getSession()->get('aimeos/catalog/list/params/last/' . $site, array()); } return $list; }