|
Stud.IP
6.1
|
Public Member Functions | |
| setText (string $text, bool $text_is_html=true) | |
| getText () | |
| isHtmlText () | |
| render () | |
| renderWithCondition () | |
Public Member Functions inherited from Part | |
| __construct (... $parts) | |
| setContextObject ($object) | |
| getContextObject () | |
| addPart (Part $part) | |
| addInput (Input $input) | |
| addText (string $text, bool $text_is_html=true) | |
| addLink (string $title, string $url, ?\Icon $icon=null, array $attributes=[]) | |
| render () | |
| renderWithCondition () | |
| getAllInputs () | |
| setParent (Part $parent) | |
| setIfCondition ($if) | |
| getInputFromArray (array $data) | |
Protected Attributes | |
| $text = '' | |
| $text_is_html = true | |
Protected Attributes inherited from Part | |
| $parent = null | |
| $contextobject = null | |
| $parts = [] | |
Additional Inherited Members | |
Data Fields inherited from Part | |
| $if = null | |
The Text class represents a part of a form that just displays text. The text can either be HTML or unformatted text.
| getText | ( | ) |
| isHtmlText | ( | ) |
| render | ( | ) |
"Renders" the text: Either return it directly, if it is HTML or call htmlReady first before returning it.
| renderWithCondition | ( | ) |
| setText | ( | string | $text, |
| bool | $text_is_html = true |
||
| ) |
Sets the text that shall be displayed in this form part.
| string | $text | The text to be displayed. |
| bool | $text_is_html | Whether the text is HTML (true) or plain text. Defaults to true. |
|
protected |
The text to be displayed.
|
protected |
This attribute defines whether to interpret the text as HTML (true) or as plain text (false).