| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function RenderHtml(): string |
||
| 28 | { |
||
| 29 | if (!$this->Attributes()->has('id')) |
||
| 30 | $this->Attributes()->createElementID($this->Attributes()->get('name', $this->label()->getItemID())); |
||
| 31 | $this->label()->Attribute()->set('fieldtype', $this->Attributes()->get('type')); |
||
| 32 | $this->label()->Attribute()->set('for', $this->Attributes()->get('id')); |
||
| 33 | |||
| 34 | $html = $this->Label()->RenderHtml(); |
||
| 35 | $html .= '<textarea'. $this->Attributes()->RenderHtml().'>'; |
||
| 36 | $html .= $this->Attributes()->get('value',''); |
||
| 37 | $html .= '</textarea>'; |
||
| 38 | return $html; |
||
| 39 | } |
||
| 41 | } |