public function preRenderWrapLabel() { if ($this->labelWrap) { $label = new Label(); return (string) $label->attribs($this->labelWrapAttributes); } return ""; }
public function preRenderWithLabel() { if ($this->withLabel) { if ($this->autoID and !isset($this->attributes['id']) and isset($this->attributes['name'])) { $this->attributes['id'] = 'input' . ucfirst($this->attributes['name']); } $label = new Label($this->withLabel); if (isset($this->attributes['id'])) { $label->for($this->attributes['id']); } return (string) $label; } return ""; }