コード例 #1
0
ファイル: MDialog.php プロジェクト: elymatos/expressive
 public function addControl($control)
 {
     $tag = $control->tag == 'mhtml' ? $control->tag : $control->tag;
     if ($tag == 'buttons' || $tag == 'help' || $tag == 'tools' || $tag == 'toolbar') {
         $this->{$tag} = $control;
     } else {
         if ($control->tag == 'mform') {
             $control->style->border = false;
         }
         parent::addControl($control);
     }
 }
コード例 #2
0
ファイル: MForm.php プロジェクト: elymatos/expressive
 public function addControl($control)
 {
     parent::addControl($control);
     $control->setForm($this);
     $tag = $control->tag == 'mhtml' ? $control->tag : $control->tag;
     if ($tag == 'fields' || $tag == 'buttons' || $tag == 'help' || $tag == 'tools' || $tag == 'toolbar') {
         mdump('form = ' . $tag);
         $this->{$tag} = $control;
     } else {
         if ($this->fields == NULL) {
             $this->fields = new MControl();
         }
         $this->fields->addControl($control);
     }
 }