当前位置: 首页>>代码示例>>PHP>>正文


PHP oxUBase::getNavigationParams方法代码示例

本文整理汇总了PHP中oxUBase::getNavigationParams方法的典型用法代码示例。如果您正苦于以下问题:PHP oxUBase::getNavigationParams方法的具体用法?PHP oxUBase::getNavigationParams怎么用?PHP oxUBase::getNavigationParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在oxUBase的用法示例。


在下文中一共展示了oxUBase::getNavigationParams方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getNavigationParams

 /**
  * 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;
 }
开发者ID:Crease29,项目名称:oxideshop_ce,代码行数:28,代码来源:ArticleDetailsController.php

示例2: getNavigationParams

 /**
  * 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;
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:11,代码来源:recommlist.php

示例3: getNavigationParams

 /**
  * 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;
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:20,代码来源:account.php

示例4: getNavigationParams

 /**
  * 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;
 }
开发者ID:ioanok,项目名称:symfoxid,代码行数:28,代码来源:details.php

示例5: getNavigationParams

 /**
  * 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;
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:11,代码来源:recommlist.php

示例6: getNavigationParams

 /**
  * 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;
 }
开发者ID:Crease29,项目名称:oxideshop_ce,代码行数:19,代码来源:AccountController.php


注:本文中的oxUBase::getNavigationParams方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。