Ejemplo n.º 1
0
 public function generate()
 {
     parent::generateAction();
     $div = new MDiv($this->id, ' ', 'toolIcon toolIcon' . ucfirst($this->icon));
     $div->setAjax($this->getAjax());
     $div->setEvent($this->getEvent());
     $div->setHTMLTitle($this->title);
     return $div->generate();
 }
Ejemplo n.º 2
0
 public function generateButton()
 {
     if ($this->value == '') {
         $this->value = $this->text;
     }
     $action = $this->action;
     $this->type = strtoupper($action) == 'RESET' ? 'reset' : 'button';
     // if it has a event registered, it's not necessary calculate $onclick
     if ($this->hasEvent('click') || $this->getAjax() != null) {
         return;
     }
     if ($this->type == 'reset') {
         return;
     }
     parent::generateAction();
 }