phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlTextarea.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Ajax\common\html\html5;
4 
7 
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);
21  return $this;
22  }
23 
24  public function setPlaceholder($value){
25  if(JString::isNotNull($value))
26  $this->setProperty("placeholder", $value);
27  return $this;
28  }
29 
30  public function setRows($count){
31  $this->setProperty("rows", $count);
32  }
33 }
static isNotNull($s)
Definition: JString.php:22
__construct($identifier, $value=NULL, $placeholder=NULL, $rows=NULL)