public function addControl($control) { if ($control instanceof MBaseGroup) { $div = new MContainerControl('accordion_' . $control->getId()); $div->addControl($control); $div->property->title = $control->getCaption(); parent::addControl($div); } }
public function init($id = '', $content = '', $class = '', $attributes = array()) { parent::init($id); $this->setAttributes($attributes); $this->setInner($content); $this->setClass($class); }
public function init($id = '', $controls = array(), $disposition = MContainer::DISPOSITION_VERTICAL, $labelMode = MFieldLabel::LABEL_ABOVE, $showLabel = true) { parent::init($id); $this->setLabelMode($labelMode); $this->setShowLabel($showLabel); $this->setDisposition($disposition); $this->setControls($controls); }
public function generateInner() { parent::generateInner(); if ($this->property->subscribe) { $this->page->onLoad("dojo.subscribe('{$this->property->subscribe}',function(id) {manager.byId('{$this->getId()}').selectChild('stack_'+id);} );"); } $this->page->addDojoRequire('dijit.layout.StackContainer'); $this->setDojoType("dijit.layout.StackContainer"); }
public function __set($name, $value) { $property = strtolower($name); if ($property == 'colspan') { $this->setAttribute('colspan', $value); } else { parent::__set($name, $value); } }
public function onCreate() { parent::onCreate(); $this->useStore = false; }
public function onCreate() { parent::onCreate(); $this->setText('OptionGroup'); $this->setRender('optiongroup'); }
public function onCreate() { parent::onCreate(); $this->setRender('box'); }
public function onCreate() { parent::onCreate(); $this->setClass('mTable'); $this->setRender('table'); }
public function __set($name, $value) { $property = strtolower($name); //mtrace('mgrid property = ' . $name . ' value = ' . $value); if (!$value) { return; } if ($property == 'actionupdate') { $this->addActionUpdate($value); } elseif ($property == 'actiondelete') { $this->addActionDelete($value); } elseif ($property == 'actiontext') { $this->addActionText('', $value); } elseif ($property == 'actionicon') { $this->addActionIcon('', $value); } elseif ($property == 'actionselect') { $this->addActionSelect($value); } else { parent::__set($name, $value); } }
public function onCreate() { parent::onCreate(); $this->showValues = false; $this->type = 'filter'; }
public function onCreate() { parent::onCreate(); $this->setRender('contentpane'); }