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