本文整理汇总了PHP中oxUBase::getViewId方法的典型用法代码示例。如果您正苦于以下问题:PHP oxUBase::getViewId方法的具体用法?PHP oxUBase::getViewId怎么用?PHP oxUBase::getViewId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oxUBase
的用法示例。
在下文中一共展示了oxUBase::getViewId方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getViewId
/**
* Returns prefix ID used by template engine.
*
* @return string $this->_sViewId
*/
public function getViewId()
{
if (!isset($this->_sViewId)) {
$this->_sViewId = parent::getViewId() . '|' . oxConfig::getParameter('oxcid');
}
return $this->_sViewId;
}
示例2: getViewId
/**
* Returns prefix ID used by template engine.
*
* @return string $this->_sViewId
*/
public function getViewId()
{
if (!isset($this->_sViewId)) {
$this->_sViewId = parent::getViewId() . '|' . oxRegistry::getConfig()->getRequestParameter('oxcid');
}
return $this->_sViewId;
}
示例3: getViewId
/**
* Returns prefix ID used by template engine.
*
* @return string $this->_sViewID view id
*/
public function getViewId()
{
return oxUBase::getViewId();
}
示例4: getViewId
/**
* Returns prefix ID used by template engine.
*
* @return string $this->_sViewID view id
*/
public function getViewId()
{
if (isset($this->_sViewId)) {
return $this->_sViewId;
}
$sViewId = parent::getViewId() . '|' . $this->getConfig()->getRequestParameter('anid') . '|';
return $this->_sViewId = $sViewId;
}
示例5: getViewId
/**
* Generates (if not generated yet) and returns view ID (for
* template engine caching).
*
* @return string $this->_sViewId view id
*/
public function getViewId()
{
if (!isset($this->_sViewId)) {
$sCatId = oxRegistry::getConfig()->getRequestParameter('cnid');
$iActPage = $this->getActPage();
$iArtPerPage = oxRegistry::getSession()->getVariable('_artperpage');
$sListDisplayType = $this->_getListDisplayType();
$sParentViewId = parent::getViewId();
// shorten it
$this->_sViewId = md5($sParentViewId . '|' . $sCatId . '|' . $iActPage . '|' . $iArtPerPage . '|' . $sListDisplayType);
}
return $this->_sViewId;
}
示例6: getViewId
/**
* Generates (if not generated yet) and returns view ID (for
* template engine caching).
*
* @return string $this->_sViewId view id
*/
public function getViewId()
{
if (!isset($this->_sViewId)) {
$sCatId = oxConfig::getParameter('cnid');
$iActPage = $this->getActPage();
$iArtPerPage = oxSession::getVar('_artperpage');
$sListDisplayType = oxSession::getVar('ldtype');
$sParentViewId = parent::getViewId();
// shorten it
$this->_sViewId = md5($sParentViewId . '|' . $sCatId . '|' . $iActPage . '|' . $iArtPerPage . '|' . $sListDisplayType);
}
return $this->_sViewId;
}