nyroFwk  0.2
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 }
static htmlTag($tag, array $attributes, $content=null)
Definition: utils.class.php:46
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by doxygen 1.8.13