本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}