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


PHP oxUBase::getAddUrlParams方法代码示例

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


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

示例1: getAddUrlParams

 /**
  * Returns additional URL parameters which must be added to list products urls
  *
  * @return string
  */
 public function getAddUrlParams()
 {
     $sAddParams = parent::getAddUrlParams();
     $sAddParams .= ($sAddParams ? '&' : '') . "listtype={$this->_sListType}";
     $oConfig = $this->getConfig();
     if ($sParam = $oConfig->getRequestParameter('searchparam', true)) {
         $sAddParams .= "&searchparam=" . rawurlencode($sParam);
     }
     if ($sParam = $oConfig->getRequestParameter('searchcnid')) {
         $sAddParams .= "&searchcnid={$sParam}";
     }
     if ($sParam = rawurldecode($oConfig->getRequestParameter('searchvendor'))) {
         $sAddParams .= "&searchvendor={$sParam}";
     }
     if ($sParam = rawurldecode($oConfig->getRequestParameter('searchmanufacturer'))) {
         $sAddParams .= "&searchmanufacturer={$sParam}";
     }
     return $sAddParams;
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:24,代码来源:search.php

示例2: getAddUrlParams

 /**
  * Returns additional URL parameters which must be added to list products dynamic urls
  *
  * @return string
  */
 public function getAddUrlParams()
 {
     $sParams = parent::getAddUrlParams();
     if (!oxRegistry::getUtils()->seoIsActive()) {
         $iPgNr = (int) oxRegistry::getConfig()->getRequestParameter('pgNr');
         if ($iPgNr > 0) {
             $sParams .= ($sParams ? '&' : '') . "pgNr={$iPgNr}";
         }
     }
     return $sParams;
 }
开发者ID:ioanok,项目名称:symfoxid,代码行数:16,代码来源:alist.php

示例3: getAddUrlParams

 /**
  * Returns additional URL parameters which must be added to list products dynamic urls
  *
  * @return string
  */
 public function getAddUrlParams()
 {
     $dynamicParameters = parent::getAddUrlParams();
     if (!oxRegistry::getUtils()->seoIsActive()) {
         $pageNumber = (int) oxRegistry::getConfig()->getRequestParameter('pgNr');
         if ($pageNumber > 0) {
             $dynamicParameters .= ($dynamicParameters ? '&' : '') . "pgNr={$pageNumber}";
         }
     }
     return $dynamicParameters;
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:16,代码来源:ArticleListController.php

示例4: getAddUrlParams

 /**
  * Returns additional URL parameters which must be added to list products dynamic urls
  *
  * @return string
  */
 public function getAddUrlParams()
 {
     $sParams = parent::getAddUrlParams();
     if (!oxUtils::getInstance()->seoIsActive()) {
         $iPgNr = (int) oxConfig::getParameter('pgNr');
         if ($iPgNr > 0) {
             $sParams .= ($sParams ? '&' : '') . "pgNr={$iPgNr}";
         }
     }
     return $sParams;
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:16,代码来源:alist.php


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