コード例 #1
0
ファイル: mtoolbutton.php プロジェクト: joshuacoddingyou/php
 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();
 }
コード例 #2
0
ファイル: mbutton.php プロジェクト: joshuacoddingyou/php
 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();
 }