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
3
namespace
Ajax\semantic\html\collections\form
;
4
5
use
Ajax\semantic\html\collections\form\HtmlFormField
;
6
use
Ajax\common\html\html5\HtmlTextarea
;
7
use
Ajax\semantic\html\collections\form\traits\TextFieldsTrait
;
8
9
class
HtmlFormTextarea
extends
HtmlFormField
,
TextFieldsTrait
{
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
}
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\html5\HtmlTextarea
Definition
HtmlTextarea.php:8
Ajax\semantic\html\collections\form\HtmlFormField
Definition
HtmlFormField.php:15
Ajax\semantic\html\collections\form\HtmlFormField\getField
getField()
Return the field.
Definition
HtmlFormField.php:70
Ajax\semantic\html\collections\form\HtmlFormTextarea
Definition
HtmlFormTextarea.php:9
Ajax\semantic\html\collections\form\HtmlFormTextarea\setName
setName($name)
Definition
HtmlFormTextarea.php:30
Ajax\semantic\html\collections\form\HtmlFormTextarea\getDataField
getDataField()
Return the field with data.
Definition
HtmlFormTextarea.php:26
Ajax\semantic\html\collections\form\HtmlFormTextarea\setRows
setRows($count)
Defines the textarea row count.
Definition
HtmlFormTextarea.php:22
Ajax\semantic\html\collections\form\HtmlFormTextarea\__construct
__construct($identifier, $label=NULL, $value=NULL, $placeholder=NULL, $rows=NULL)
Definition
HtmlFormTextarea.php:11
Ajax\semantic\html\collections\form\traits\TextFieldsTrait
Definition
TextFieldsTrait.php:5
Ajax\semantic\html\collections\form
Definition
HtmlForm.php:3
Ajax
semantic
html
collections
form
HtmlFormTextarea.php
Generated on Sun Dec 10 2023 16:16:05 for
phpMv-UI
by
doxygen
1.9.8