Orion PHP  0.11.12
The PHP5.3 framework
message.php
Go to the documentation of this file.
00001 <?php
00002 namespace Orion\Core\Form;
00003 
00004 
00005 class Message extends Field
00006 {
00007     public function __construct($bind='message', $label='Message', $value='')
00008     {
00009         $this->type = 'message';
00010         $this->bind = $bind;
00011         $this->label = $label;
00012         $this->value = $value;
00013     }
00014 
00015     public function toHtml($XHTML=true)
00016     {
00017         if($XHTML)
00018             $tag = ' /';
00019         else
00020             $tag = '';
00021 
00022         return '<div class="form-row"><div class="form-label">'.$this->label.'</div><div class="form-container"><div class="form-message">'.$this->value.'</div></div></div>';
00023     }
00024 }
00025 
00026 ?>