phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlFormTextarea.php
Go to the documentation of this file.
1<?php
2
4
8
10
11 public function __construct($identifier, $label=NULL,$value=NULL,$placeholder=NULL,$rows=NULL) {
12 if(!isset($placeholder))
13 $placeholder=$label;
14 parent::__construct("field-".$identifier, new HtmlTextarea($identifier,$value,$placeholder,$rows), $label);
15 $this->_identifier=$identifier;
16 }
17
22 public function setRows($count){
23 $this->getField()->setRows($count);
24 }
25
26 public function getDataField() {
27 return $this->content["field"];
28 }
29
30 public function setName($name){
31 $this->getDataField()->setProperty("name",$name);
32 }
33}
setRows($count)
Defines the textarea row count.
__construct($identifier, $label=NULL, $value=NULL, $placeholder=NULL, $rows=NULL)