public function __construct($name) { parent::__construct(); $this->name = $name; if (!$this->hasData('template')) { $this->setTemplate('mgt_developertoolbar/tabcontainer.phtml'); } }
protected function _toHtml() { $isActive = $this->isActive(); $isIpAllowed = $this->isIpAllowed(); if ($isActive && $isIpAllowed) { return parent::_toHtml(); } }
public function __construct($name, $label = '') { parent::__construct(); $this->_name = $name; if ($label) { $this->_label = $label; } if (!$this->hasData('template')) { $this->setTemplate('mgt_developertoolbar/item.phtml'); } }
public function __construct($name, $label) { parent::__construct(); $this->_name = $name; $this->_label = $label; }