/**
  * Returns array of params => values which are used in hidden forms and as additional url params.
  * NOTICE: this method SHOULD return raw (non encoded into entities) parameters, because values
  * are processed by htmlentities() to avoid security and broken templates problems
  * This exact fix is added for article details to parse variant selection properly for widgets.
  *
  * @return array
  */
 public function getNavigationParams()
 {
     $parameters = parent::getNavigationParams();
     $variantSelectionListId = oxRegistry::getConfig()->getRequestParameter('varselid');
     $selectListParameters = oxRegistry::getConfig()->getRequestParameter('sel');
     if (!$variantSelectionListId && !$selectListParameters) {
         return $parameters;
     }
     if ($variantSelectionListId) {
         foreach ($variantSelectionListId as $key => $value) {
             $parameters["varselid[{$key}]"] = $value;
         }
     }
     if ($selectListParameters) {
         foreach ($selectListParameters as $key => $value) {
             $parameters["sel[{$key}]"] = $value;
         }
     }
     return $parameters;
 }
Exemplo n.º 2
0
 /**
  * Returns array of params => values which are used in hidden forms and as additional url params
  *
  * @return array
  */
 public function getNavigationParams()
 {
     $aParams = oxUBase::getNavigationParams();
     $aParams['recommid'] = oxConfig::getParameter('recommid');
     return $aParams;
 }
Exemplo n.º 3
0
 /**
  * Returns array from parent::getNavigationParams(). If current request
  * contains "sourcecl" and "anid" parameters - appends array with this
  * data. Array is used to fill forms and append shop urls with actual
  * state parameters
  *
  * @return array
  */
 public function getNavigationParams()
 {
     $aParams = parent::getNavigationParams();
     // source class name
     if ($sSource = oxRegistry::getConfig()->getRequestParameter("sourcecl")) {
         $aParams['sourcecl'] = $sSource;
     }
     if ($sSource = oxRegistry::getConfig()->getRequestParameter("anid")) {
         $aParams['anid'] = $sSource;
     }
     return $aParams;
 }
Exemplo n.º 4
0
 /**
  * Returns array of params => values which are used in hidden forms and as additional url params.
  * NOTICE: this method SHOULD return raw (non encoded into entities) parameters, because values
  * are processed by htmlentities() to avoid security and broken templates problems
  * This exact fix is added for article details to parse variant selection properly for widgets.
  *
  * @return array
  */
 public function getNavigationParams()
 {
     $aParams = parent::getNavigationParams();
     $aVarSelParams = oxRegistry::getConfig()->getRequestParameter('varselid');
     $aSelectListParams = oxRegistry::getConfig()->getRequestParameter('sel');
     if (!$aVarSelParams && !$aSelectListParams) {
         return $aParams;
     }
     if ($aVarSelParams) {
         foreach ($aVarSelParams as $iKey => $sValue) {
             $aParams["varselid[{$iKey}]"] = $sValue;
         }
     }
     if ($aSelectListParams) {
         foreach ($aSelectListParams as $iKey => $sValue) {
             $aParams["sel[{$iKey}]"] = $sValue;
         }
     }
     return $aParams;
 }
Exemplo n.º 5
0
 /**
  * Returns array of params => values which are used in hidden forms and as additional url params
  *
  * @return array
  */
 public function getNavigationParams()
 {
     $aParams = oxUBase::getNavigationParams();
     $aParams['recommid'] = oxRegistry::getConfig()->getRequestParameter('recommid');
     return $aParams;
 }
Exemplo n.º 6
0
 /**
  * Returns array from parent::getNavigationParams(). If current request
  * contains "sourcecl" and "anid" parameters - appends array with this
  * data. Array is used to fill forms and append shop urls with actual
  * state parameters
  *
  * @return array
  */
 public function getNavigationParams()
 {
     $parameters = parent::getNavigationParams();
     if ($sourceClass = oxRegistry::getConfig()->getRequestParameter("sourcecl")) {
         $parameters['sourcecl'] = $sourceClass;
     }
     if ($articleId = oxRegistry::getConfig()->getRequestParameter("anid")) {
         $parameters['anid'] = $articleId;
     }
     return $parameters;
 }