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