public function __construct($name, $default = '', array $attributes = array()) { parent::__construct('textarea'); $this->setName($name); $this->appendText($default); $this->setAttributes($attributes); }
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); }
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); }
/** * 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); }
public function __construct($name, array $attributes = array()) { parent::__construct('select'); $this->setName($name); $this->setAttributes($attributes); }