Ejemplo n.º 1
0
 function __toString()
 {
     if ($this->element instanceof CheckBox) {
         $this->element->html_override(null);
         $inner = $this->inner;
         if ($this->before) {
             $this->inner = (string) $this->element . $this->inner;
         } else {
             $this->inner .= (string) $this->element;
         }
         $this->element->html_override('');
         $ret = parent::__toString();
         $this->inner = $inner;
         return $ret;
     }
     return parent::__toString();
 }