public function init($caption = '', $message = '') { parent::init(); $this->setCaption($caption ?: 'Help'); $this->setMessage($message ?: ''); $this->setId('help' . uniqid()); }
public function onCreate() { parent::onCreate(); $this->checked = false; $this->setText(''); $this->setRender('inputcheck'); }
public function __construct($name = '', $label = '', $controls = NULL) { $this->container = new MVContainer($name); parent::__construct($name, '', $label); $this->index = 0; if ($controls != NULL) { foreach ($controls as $c) { $this->addControl($c); } } }
public function onCreate() { parent::onCreate(); $this->setRender('iframe'); }
public function generateInner() { if ($this->autoPostBack) { $this->addEvent('blur', "manager.doPostBack('{$this->getId()}');"); } if ($this->getReadOnly()) { $this->setClass('mReadOnly'); $this->addAttribute('readonly'); } if ($this->getPlaceHolder()) { $this->addAttribute('placeholder', $this->getPlaceHolder()); } if ($this->required) { $this->setValidator(new MRequiredValidator($this->id, "Informar o valor do campo")); } $this->generateValidator(); $this->inner = $this->render(); parent::generateInner(); }
public function __set($name, $value) { parent::__set($name, $value); $this->set->{$name} = $value; }
public function addEvent($event, $handler, $preventDefault = false) { parent::addEvent($event, $handler, $preventDefault, true); }
public function init($name, $label = '', $rows = 0) { $this->numRows = $rows; $this->numCols = 0; parent::init($name, array(), $label); }
public function __set($name, $value) { $property = strtolower($name); if ($property == 'type') { $this->setType($value); } else { parent::__set($name, $value); } }