public function __construct($label, $type)
 {
     parent::__construct('button');
     $this->label = $label;
     $this->isContainer = false;
     $this->addAttribute('type', $type);
 }
 public function __construct($url, $label)
 {
     parent::__construct('a');
     $this->isContainer = false;
     $this->label = $label;
     $this->addAttribute('href', $url);
 }
 public function __construct($label, $for)
 {
     parent::__construct('label');
     $this->isContainer = true;
     $this->labelText = $label;
     $this->addAttribute('for', $for);
 }
 public function __construct($value, $label)
 {
     parent::__construct('input');
     $this->addAttribute('type', 'radio');
     $this->addAttribute('value', $value);
     $this->isContainer = false;
     $this->label = $label;
 }
 public function __construct($id, $multiple = false)
 {
     parent::__construct('select');
     $this->isContainer = true;
     $this->addAttribute('nome', $id);
     $this->addAttribute('id', $id);
     $this->isMultiple = $multiple;
 }
 public function __construct($optionValue, $optionLabel, $selected = false)
 {
     parent::__construct('option');
     $this->isContainer = false;
     $this->isSelected = $selected;
     $this->label = $optionLabel;
     $this->value = $optionValue;
     $this->addAttribute('value', $this->value);
 }
 public function __construct($id, $cols, $rows)
 {
     parent::__construct('textarea');
     $this->isContainer = false;
     $this->addAttribute('cols', $cols);
     $this->addAttribute('rows', $rows);
     $this->addAttribute('id', $id);
     $this->addAttribute('name', $id);
 }
Exemple #8
0
 public function __construct($id)
 {
     parent::__construct('div');
     $this->addAttribute('id', $id);
     $this->isContainer = true;
 }
 public function __construct($type, $id)
 {
     parent::__construct('input');
     $this->addAttribute('name', $id);
     $this->isContainer = false;
 }