Stud.IP
5.4
|
Public Member Functions | |
setText (string $text, bool $text_is_html=true) | |
getText () | |
isHtmlText () | |
render () | |
renderWithCondition () | |
![]() | |
__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 | |
![]() | |
$parent = null | |
$contextobject = null | |
$parts = [] | |
Additional Inherited Members | |
![]() | |
$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 | ( | ) |
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).