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