/**
  * 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 user id...
     $argMap["userID"] = $this->parameter->GetUserId();
     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();
     //add user id...
     $this->addParameterToMap($argMap, "userID", $this->parameter->getUserId());
     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();
     //add click parameter
     $this->addParameterToMap($argMap, "clickparameters", $this->parameter->getNotificationId());
     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();
     //add category and profile id
     $argMap["category"] = $this->parameter->getCategory();
     $argMap["classID"] = $this->parameter->getProfileMapId();
     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();
     //add category and profile id
     $this->addParameterToMap($argMap, "category", $this->parameter->getCategory());
     $this->addParameterToMap($argMap, "classID", $this->parameter->getProfileMapId());
     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();
     //autocomplete parameters
     $this->addParameterToMap($argMap, "languageCode", $this->parameter->getLanguageCode());
     $this->addParameterToMap($argMap, "classID", $this->parameter->getProfileMapId());
     $this->addParameterToMap($argMap, "queryString", $this->parameter->getInputQuery());
     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();
     //BeginProductImport parameters
     $this->addParameterToMap($argMap, "classID", $this->parameter->getProfileMapId());
     $this->addParameterToMap($argMap, "job", "DATA_UPDATE");
     $this->addParameterToMap($argMap, "action", "START");
     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();
     //UserProfileImport parameters
     $this->addParameterToMap($argMap, "classID", $this->parameter->getProfileMapId());
     $this->addParameterToMap($argMap, "job", "USER_PROFILE_UPDATE");
     $this->addParameterToMap($argMap, "action", "START");
     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();
     //autocomplete parameters
     $argMap["languageCode"] = $this->parameter->getLanguageCode();
     $argMap["classID"] = $this->parameter->getProfileMapId();
     $argMap["queryString"] = $this->parameter->getInputQuery();
     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();
     //EndProductImport parameters
     //$this->addParameterToMap($argMap, "classID", $this->parameter->getProfileMapId() );
     $this->addParameterToMap($argMap, "job", "DATA_UPDATE");
     $this->addParameterToMap($argMap, "action", $this->parameter->getCommitMode());
     $this->addParameterToMap($argMap, "tokenid", $this->parameter->getTransactionId());
     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();
     //ProductImport parameters
     //$this->addParameterToMap($argMap, "classID", $this->parameter->getProfileMapId() );
     $this->addParameterToMap($argMap, "job", "DATA_UPDATE");
     $this->addParameterToMap($argMap, "tokenid", $this->parameter->getTransactionId());
     foreach ($this->parameter->getUpdates() as $entry) {
         $this->addParameterToMap($argMap, "idandattributes", implode("_/_", $entry));
     }
     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();
     //common paramters for all getXXXRecommendation style queries...
     $this->addParameterToMap($argMap, "nbRec", $this->parameter->getNbRecommendation());
     $this->addParameterToMap($argMap, "showAds", $this->parameter->getShowAds() ? "true" : "false");
     $this->addParameterToMap($argMap, "userID", $this->parameter->getUserId());
     $this->addParameterToMap($argMap, "classID", $this->parameter->getProfileMapId());
     $this->addParameterToMap($argMap, "languageCode", $this->parameter->getLanguageCode());
     $this->addParameterToMap($argMap, "referURL", $this->parameter->getRefererUrl());
     $bufferKeys = "";
     $bufferValues = "";
     //implode the key values pairs into separate strings
     Utils::implodeKeyValuePairsToSeparatedString($this->parameter->getConditions(), "_/_", $bufferKeys, $bufferValues);
     //add parameters
     $this->addParameterToMap($argMap, "attributeNames", $bufferKeys);
     $this->addParameterToMap($argMap, "attributeValues", $bufferValues);
     return $argMap;
 }
Пример #13
0
 /**
  * Executes a servlet call.
  * @param RequestTemplate $request the request to execute.
  */
 private static function executeCall(RequestTemplate $request)
 {
     //execute request
     $request->doWebRequest();
     //check response status
     self::checkStatus($request->getResultObject());
 }