public function __construct($name)
 {
     parent::__construct();
     $this->name = $name;
     if (!$this->hasData('template')) {
         $this->setTemplate('mgt_developertoolbar/tabcontainer.phtml');
     }
 }
Example #2
0
 protected function _toHtml()
 {
     $isActive = $this->isActive();
     $isIpAllowed = $this->isIpAllowed();
     if ($isActive && $isIpAllowed) {
         return parent::_toHtml();
     }
 }
Example #3
0
 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');
     }
 }
Example #4
0
 public function __construct($name, $label)
 {
     parent::__construct();
     $this->_name = $name;
     $this->_label = $label;
 }