public function init($id = '', $value = '', $label = '', $hint = '') { parent::init($id); $this->setHint($hint); $this->setValue($value); $this->setLabel($label); }
public function init($body = NULL, $tableAttr = NULL, $attr = NULL, $head = NULL, $foot = NULL, $colgroup = NULL) { parent::init(); $this->body = $body; $this->head = $head; $this->foot = $foot; $this->colgroup = $colgroup; $this->setAttributes($tableAttr); $this->attr = $attr; }
public function onCreate() { parent::onCreate(); $this->value = ''; $this->index = -1; $this->footer = null; $this->control = array(); $this->render = ''; $this->type = 'label'; }
public function init($id, $url, $text = '', $options = array()) { parent::init($id); $this->url = $url; $this->text = $text; if (count($options)) { foreach ($options as $option => $value) { $this->{$option} = $value; } } }
public function init($grid, $type, $alt, $value, $action, $enabled = true) { parent::init(); $this->grid = $grid; $this->type = $type; $this->alt = $alt; $this->value = $value; $this->action = $action; $this->enabled = $enabled; $this->controls = array(); }
public function __construct($length = 20, $total = 0, $action = '?', $grid = NULL) { // The grid which contains this component ) parent::__construct(); $this->pageLength = $length; $this->gridCount = $length; $this->setRowCount($total); $this->grid = $grid; $this->setPageNumber($this->grid->pageNumber); $this->action = $action; $this->linktype = 'hyperlink'; }
public function onCreate() { parent::onCreate(); $this->jsId = 'tree' . ucfirst($this->getId()); $this->items = NULL; $this->page->addDojoRequire("dojo.data.ItemFileReadStore"); $this->page->addDojoRequire("dijit.tree.ForestStoreModel"); $this->page->addDojoRequire("dijit.Tree"); $this->selectEvent = ''; $this->nOrder = MTree::$order++; $this->property->items = array(); $this->property->key = '3'; $this->property->data = '0,1,2'; }
public function __construct($name = null) { parent::__construct($name); }
public function getControl($className) { return MControl::instance($className); }
public function __construct($module = false, $name = false, $home = false) { parent::__construct(); $this->path = $this->manager->getModulePath($module, $name); $this->home = $home; }
public function init($id = '', $text = NULL) { parent::init($id); $this->setText($text); $this->setMode(MFieldLabel::LABEL_SIDE); }
public function onCreate() { parent::onCreate(); $this->setRender('div'); }
public function init($code = '') { parent::init(); $this->addCode($code); }
public function __construct($object, $target) { parent::__construct(); $this->object = $object; $this->target = $target; }