Exemple #1
0
 public function __construct($name, $default = '', array $attributes = array())
 {
     parent::__construct('textarea');
     $this->setName($name);
     $this->appendText($default);
     $this->setAttributes($attributes);
 }
Exemple #2
0
 public function __construct($value, $text, array $attributes = array())
 {
     parent::__construct('option', $value);
     $this->setAttribute('value', $value);
     $this->appendText($text);
     $this->inline = true;
     $this->setAttributes($attributes);
 }
Exemple #3
0
 public function __construct($for, $text, array $attributes = array())
 {
     parent::__construct('label', $text);
     $this->inline = true;
     $this->setAttribute('for', $for);
     $this->appendText($text);
     $this->setAttributes($attributes);
 }
Exemple #4
0
 /**
  * Creates new form
  * 
  * @param string $target    Form target, as URI
  * @param string $method    Form method, post or get
  */
 public function __construct($target, $method = 'get', array $attributes = array())
 {
     parent::__construct('form');
     $this->setTarget($target);
     $this->setMethod($method);
 }
Exemple #5
0
 public function __construct($name, array $attributes = array())
 {
     parent::__construct('select');
     $this->setName($name);
     $this->setAttributes($attributes);
 }