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


PHP oxUBase::_addPageNrParam方法代码示例

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


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

示例1: _addPageNrParam

 /**
  * Adds page number parameter to current Url and returns formatted url
  *
  * @param string $sUrl  url to append page numbers
  * @param int    $iPage current page number
  * @param int    $iLang requested language
  *
  * @return string
  */
 protected function _addPageNrParam($sUrl, $iPage, $iLang = null)
 {
     if (oxUtils::getInstance()->seoIsActive() && ($oRecomm = $this->getActiveRecommList())) {
         if ($iPage) {
             // only if page number > 0
             $sUrl = $oRecomm->getBaseSeoLink($iLang, $iPage);
         }
     } else {
         $sUrl = oxUBase::_addPageNrParam($sUrl, $iPage, $iLang);
     }
     return $sUrl;
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:21,代码来源:recommlist.php

示例2: _addPageNrParam

 /**
  * Modifies url by adding page parameters. When seo is on, url is additionally
  * formatted by SEO engine
  *
  * @param string $sUrl  current url
  * @param int    $iPage page number
  * @param int    $iLang active language id
  *
  * @return string
  */
 protected function _addPageNrParam($sUrl, $iPage, $iLang = null)
 {
     if (oxRegistry::getUtils()->seoIsActive() && ($oVendor = $this->getActVendor())) {
         if ($iPage) {
             // only if page number > 0
             $sUrl = $oVendor->getBaseSeoLink($iLang, $iPage);
         }
     } else {
         $sUrl = oxUBase::_addPageNrParam($sUrl, $iPage, $iLang);
     }
     return $sUrl;
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:22,代码来源:vendorlist.php

示例3: _addPageNrParam

 /**
  * Adds page number parameter to current Url and returns formatted url
  *
  * @param string $sUrl  url to append page numbers
  * @param int    $iPage current page number
  * @param int    $iLang requested language
  *
  * @return string
  */
 protected function _addPageNrParam($sUrl, $iPage, $iLang = null)
 {
     $sSeoUrl = $blSeo = oxRegistry::getUtils()->seoIsActive();
     if ($blSeo && ($sTag = $this->getTag())) {
         if ($iPage && ($sSeoUrl = oxRegistry::get("oxSeoEncoderTag")->getTagPageUrl($sTag, $iPage, $iLang))) {
             // only if page number > 0
             $sUrl = $sSeoUrl;
         }
     }
     return !$blSeo || !$sSeoUrl ? oxUBase::_addPageNrParam($sUrl, $iPage, $iLang) : $sUrl;
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:20,代码来源:tag.php

示例4: _addPageNrParam

 /**
  * Adds page number parameter to current Url and returns formatted url
  *
  * @param string $url         Url to append page numbers
  * @param int    $currentPage Current page number
  * @param int    $languageId  Requested language
  *
  * @return string
  */
 protected function _addPageNrParam($url, $currentPage, $languageId = null)
 {
     if (oxRegistry::getUtils()->seoIsActive() && ($category = $this->getActiveCategory())) {
         if ($currentPage) {
             // only if page number > 0
             $url = $category->getBaseSeoLink($languageId, $currentPage);
         }
     } else {
         $url = parent::_addPageNrParam($url, $currentPage, $languageId);
     }
     return $url;
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:21,代码来源:ArticleListController.php

示例5: _addPageNrParam

 /**
  * Adds page number parameter to current Url and returns formatted url
  *
  * @param string $sUrl  url to append page numbers
  * @param int    $iPage current page number
  * @param int    $iLang requested language
  *
  * @return string
  */
 protected function _addPageNrParam($sUrl, $iPage, $iLang = null)
 {
     if (oxRegistry::getUtils()->seoIsActive() && ($oCategory = $this->getActiveCategory())) {
         if ($iPage) {
             // only if page number > 0
             $sUrl = $oCategory->getBaseSeoLink($iLang, $iPage);
         }
     } else {
         $sUrl = parent::_addPageNrParam($sUrl, $iPage, $iLang);
     }
     return $sUrl;
 }
开发者ID:ioanok,项目名称:symfoxid,代码行数:21,代码来源:alist.php


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