Example #1
0
 public function init($caption = '', $message = '')
 {
     parent::init();
     $this->setCaption($caption ?: 'Help');
     $this->setMessage($message ?: '');
     $this->setId('help' . uniqid());
 }
Example #2
0
 public function onCreate()
 {
     parent::onCreate();
     $this->checked = false;
     $this->setText('');
     $this->setRender('inputcheck');
 }
Example #3
0
 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);
         }
     }
 }
Example #4
0
 public function onCreate()
 {
     parent::onCreate();
     $this->setRender('iframe');
 }
Example #5
0
 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();
 }
Example #6
0
 public function __set($name, $value)
 {
     parent::__set($name, $value);
     $this->set->{$name} = $value;
 }
Example #7
0
 public function addEvent($event, $handler, $preventDefault = false)
 {
     parent::addEvent($event, $handler, $preventDefault, true);
 }
Example #8
0
 public function init($name, $label = '', $rows = 0)
 {
     $this->numRows = $rows;
     $this->numCols = 0;
     parent::init($name, array(), $label);
 }
Example #9
0
 public function __set($name, $value)
 {
     $property = strtolower($name);
     if ($property == 'type') {
         $this->setType($value);
     } else {
         parent::__set($name, $value);
     }
 }