Go to the documentation of this file.00001 <?php
00010 class form_text extends form_abstract {
00011
00012 public function toHtml() {
00013 if ($this->cfg->mode == 'view')
00014 return $this->cfg->value;
00015 return utils::htmlTag($this->htmlTagName,
00016 array_merge($this->html, array(
00017 'name'=>$this->name,
00018 'id'=>$this->id,
00019 'value'=>$this->getRawValue(),
00020 )));
00021 }
00022
00023 public function toXul() {
00024 if ($this->cfg->mode == 'view')
00025 return $this->getValue();
00026 return utils::htmlTag($this->xulTagName,
00027 array_merge($this->xul, array(
00028 'id'=>$this->id,
00029 'value'=>$this->getRawValue(),
00030 )));
00031 }
00032
00033 }