本文整理汇总了PHP中Mage_Adminhtml_Controller_Action::_title方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Controller_Action::_title方法的具体用法?PHP Mage_Adminhtml_Controller_Action::_title怎么用?PHP Mage_Adminhtml_Controller_Action::_title使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Controller_Action
的用法示例。
在下文中一共展示了Mage_Adminhtml_Controller_Action::_title方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _title
protected function _title($text = null, $resetIfExists = true)
{
if (Mage::helper('ambase')->isVersionLessThan(1, 4)) {
return $this;
}
return parent::_title($text, $resetIfExists);
}
示例2: _title
protected function _title($text = null, $resetIfExists = true)
{
if (!Mage::helper('sarp')->checkVersion('1.4.0.0')) {
return $this;
}
return parent::_title($text, $resetIfExists);
}
示例3: _title
protected function _title($text = null, $resetIfExists = true)
{
$helper = Mage::helper('massimporterpro');
if ($helper->checkVersion('1.3.2.4', '<=')) {
return $this;
} else {
return parent::_title($text, $resetIfExists);
}
}
示例4: _title
/**
* Add an extra title to the end or one from the end, or remove all
*
* Usage examples:
* $this->_title('foo')->_title('bar');
* => bar / foo / <default title>
*
* $this->_title()->_title('foo')->_title('bar');
* => bar / foo
*
* $this->_title('foo')->_title(false)->_title('bar');
* bar / <default title>
*
* @see self::_renderTitles()
*
* @param null $text
* @param bool $resetIfExists
*
* @return $this|Mage_Core_Controller_Varien_Action
*/
protected function _title($text = null, $resetIfExists = true)
{
if (method_exists('Mage_Adminhtml_Controller_Action', '_title')) {
return parent::_title($text, $resetIfExists);
}
if (is_string($text)) {
$this->_titles[] = $text;
} elseif (-1 === $text) {
if (empty($this->_titles)) {
$this->_removeDefaultTitle = true;
} else {
array_pop($this->_titles);
}
} elseif (empty($this->_titles) || $resetIfExists) {
if (false === $text) {
$this->_removeDefaultTitle = false;
$this->_titles = array();
} elseif (null === $text) {
$this->_removeDefaultTitle = true;
$this->_titles = array();
}
}
return $this;
}
示例5: _title
protected function _title($text = null, $resetIfExists = true)
{
if (version_compare(Mage::getVersion(), '1.4.2') < 0) {
return $this;
}
return parent::_title($text, $resetIfExists);
}
示例6: _title
protected function _title($text = null, $resetIfExists = true)
{
if (Mage::helper('xtcore/utils')->mageVersionCompare(Mage::getVersion(), '1.4.0.0', '>=')) {
return parent::_title($text, $resetIfExists);
}
return $this;
}