/** * Creates a key value array of the parameters that need to be passed by url. * @return array A key value map. */ protected function getArgumentMap() { $argMap = parent::getArgumentMap(); //add method id... $argMap["methodID"] = $this->parameter->GetRecommendationMethodToUse(); return $argMap; }
/** * {@inheritdoc} */ protected function getArgumentMap() { $argMap = parent::getArgumentMap(); //add query specific.. $this->addParameterToMap($argMap, "queryString", $this->parameter->getSearchString()); $this->addParameterToMap($argMap, "searchRefiningOptions", $this->parameter->getSearchRefiningOption()); $this->addParameterToMap($argMap, "pageNb", $this->parameter->getPageNumber()); $this->addParameterToMap($argMap, "nbResultsPerPage", $this->parameter->getMaxNbResultsPerPage()); $this->addParameterToMap($argMap, "methodID", $this->parameter->getSortingOrder()); return $argMap; }
/** * {@inheritdoc} */ protected function getArgumentMap() { $argMap = parent::getArgumentMap(); $bufferKeys = ""; $bufferValues = ""; //implode the key values pairs into separate strings Utils::implodeKeyValuePairsToSeparatedString($this->parameter->getBasketItems(), "_/_", $bufferKeys, $bufferValues); //add parameters $argMap["classIDs"] = $bufferKeys; $argMap["itemIDs"] = $bufferValues; return $argMap; }
/** * Creates a key value array of the parameters that need to be passed by url. * @return array A key value map. */ protected function getArgumentMap() { $argMap = parent::getArgumentMap(); //item infos $argMap["itemID"] = $this->parameter->getItemInfo()->getItemId(); $argMap["name"] = $this->parameter->getItemInfo()->getItemName(); $bufferKeys = ""; $bufferValues = ""; //implode the key values pairs into separate strings Utils::implodeKeyValuePairsToSeparatedString($this->parameter->getItemInfo()->getAttributes(), "_/_", $bufferKeys, $bufferValues); //add parameters $argMap["itemInfoAttributeNames"] = $bufferKeys; $argMap["itemInfoAttributeValues"] = $bufferValues; return $argMap; }
/** ** Constructs a new request * @param GetTopNSalesParam $param this query parameter object */ function __construct(GetTopNSalesParam $param) { parent::__construct($param); }
/** * Constructs a new request * @param GetCategoryRecommendationParam $param this query parameter object */ function __construct(GetCategoryRecommendationParam $param) { parent::__construct($param); }
/** ** Constructs a new request * @param GetTopNViewedParam $param this query parameter object */ function __construct(GetTopNViewedParam $param) { parent::__construct($param); }
/** * {@inheritdoc} */ protected function getArgumentMap() { $argMap = parent::getArgumentMap(); //no change. return $argMap; }