Exemplo n.º 1
0
 /**
  * Render the FormObject and set its id
  *
  * @return string
  */
 public function render()
 {
     // Set the proper ID according to the label
     $this->setId();
     // Encode HTML value
     $isButton = $this instanceof Field ? $this->isButton() : false;
     if (!$isButton and is_string($this->value)) {
         $this->value = Helpers::encode($this->value);
     }
     return parent::render();
 }