| @@ 10-17 (lines=8) @@ | ||
| 7 | ||
| 8 | class HtmlTextarea extends HtmlDoubleElement { |
|
| 9 | ||
| 10 | public function __construct($identifier,$value=NULL,$placeholder=NULL,$rows=NULL) { |
|
| 11 | parent::__construct($identifier, "textarea"); |
|
| 12 | $this->setProperty("name", $identifier); |
|
| 13 | $this->setValue($value); |
|
| 14 | $this->setPlaceholder($placeholder); |
|
| 15 | if(isset($rows)) |
|
| 16 | $this->setRows($rows); |
|
| 17 | } |
|
| 18 | public function setValue($value) { |
|
| 19 | if(isset($value)) |
|
| 20 | $this->setContent($value); |
|
| @@ 11-17 (lines=7) @@ | ||
| 8 | ||
| 9 | class HtmlInput extends HtmlSingleElement { |
|
| 10 | protected $_placeholder; |
|
| 11 | public function __construct($identifier,$type="text",$value=NULL,$placeholder=NULL) { |
|
| 12 | parent::__construct($identifier, "input"); |
|
| 13 | $this->setProperty("name", $identifier); |
|
| 14 | $this->setValue($value); |
|
| 15 | $this->setPlaceholder($placeholder); |
|
| 16 | $this->setProperty("type", $type); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function setValue($value) { |
|
| 20 | if(isset($value)) |
|