public function morph() { if (($this->flags & Form::OPTIONAL) == Form::OPTIONAL && isset($this->tag->templateContent->label->content)) { //@TODO geht hier für komplexere inputs nicht (z. B. combobox) => interface $this->tag->templateContent->label->content .= ' (optional)'; } if (isset($this->hint)) { $this->tag->templateContent->hint = Form::hint($this->hint); if ($this->tag->getTag() != 'div') { $this->tag->templateAppend('<br />'); } $this->tag->templateAppend('%hint%'); } /* das muss hinter hint in hint machen wir selber immer einen umbruch */ if (($this->flags & Form::BR) == Form::BR) { $this->tag->templateAppend('<br />'); } }
public function setHint($message) { $this->hint = Form::hint($message)->templatePrepend('<br />'); if ($this->init) { $this->html->after($this->hint); } return $this; }