Example #1
0
 public function init($id = '', $value = '', $label = '', $hint = '')
 {
     parent::init($id);
     $this->setHint($hint);
     $this->setValue($value);
     $this->setLabel($label);
 }
Example #2
0
 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;
 }
Example #3
0
 public function onCreate()
 {
     parent::onCreate();
     $this->value = '';
     $this->index = -1;
     $this->footer = null;
     $this->control = array();
     $this->render = '';
     $this->type = 'label';
 }
Example #4
0
 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;
         }
     }
 }
Example #5
0
 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();
 }
Example #6
0
 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';
 }
Example #7
0
 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';
 }
Example #8
0
 public function __construct($name = null)
 {
     parent::__construct($name);
 }
Example #9
0
 public function getControl($className)
 {
     return MControl::instance($className);
 }
Example #10
0
 public function __construct($module = false, $name = false, $home = false)
 {
     parent::__construct();
     $this->path = $this->manager->getModulePath($module, $name);
     $this->home = $home;
 }
Example #11
0
 public function init($id = '', $text = NULL)
 {
     parent::init($id);
     $this->setText($text);
     $this->setMode(MFieldLabel::LABEL_SIDE);
 }
Example #12
0
 public function onCreate()
 {
     parent::onCreate();
     $this->setRender('div');
 }
Example #13
0
 public function init($code = '')
 {
     parent::init();
     $this->addCode($code);
 }
Example #14
0
 public function __construct($object, $target)
 {
     parent::__construct();
     $this->object = $object;
     $this->target = $target;
 }