nyroFwk
0.2
var
www
users
nyrofwk
src
nyro
form
multiline.class.php
Go to the documentation of this file.
1
<?php
10
class
form_multiline
extends
form_text
{
11
12
public
function
toHtml
() {
13
if
($this->cfg->mode ==
'view'
)
14
return
'<p>'
.nl2br($this->cfg->value).
'</p>'
;
15
return
utils::htmlTag
($this->htmlTagName,
16
array_merge($this->html, array(
17
'name'
=>$this->name,
18
'id'
=>$this->
id
,
19
)), $this->cfg->value);
20
}
21
22
public
function
toXul
() {
23
return
utils::htmlTag
($this->xulTagName,
24
array_merge($this->xul, array(
25
'id'
=>$this->
id
,
26
'value'
=>$this->
getRawValue
(),
27
)));
28
}
29
30
}
form_multiline
Definition:
multiline.class.php:10
utils\htmlTag
static htmlTag($tag, array $attributes, $content=null)
Definition:
utils.class.php:46
form_abstract\getRawValue
& getRawValue()
Definition:
form/abstract.class.php:84
form_text
Definition:
text.class.php:10
form_multiline\toXul
toXul()
Definition:
multiline.class.php:22
form_multiline\toHtml
toHtml()
Definition:
multiline.class.php:12
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by
1.8.13