public function __construct($baseControl) { parent::__construct($baseControl); $this->fields = $baseControl->getControls()->get('fields'); $this->buttons = $baseControl->getControls()->get('buttons'); $this->helps = $baseControl->getControls()->get('helps'); }
public function __construct($baseControl, $title = '', $close = '') { parent::__construct($baseControl); $this->tag = $this->tag = 'mdialog'; $this->property->title = $title; $this->property->close = $close; $this->buttons = NULL; $this->help = NULL; $this->toolbar = NULL; $this->tools = NULL; foreach ($baseControl->getControls() as $control) { if ($control->tag == 'buttons') { $this->buttons = $control; } elseif ($control->tag == 'help') { $this->help = $control; } elseif ($control->tag == 'tools') { $this->tools = $control; } elseif ($control->tag == 'toolbar') { $this->toolbar = $control; } } }
public function __construct($args = []) { parent::__construct('mdatagrid', $args); }