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