![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct ($message= '', $title= '', $severity=AbstractMessage::ERROR) | |
setMarkers (array $markers) | |
getHtmlTemplate () | |
setHtmlTemplate ($htmlTemplate) | |
render () | |
output () | |
Protected Member Functions | |
getDefaultMarkers () | |
Protected Attributes | |
$htmlTemplate | |
$defaultMarkers = array() | |
$markers = array() | |
Additional Inherited Members |
Abstract class as base for standalone messages (error pages etc.)
Definition at line 23 of file AbstractStandaloneMessage.php.
__construct | ( | $message = '' , |
|
$title = '' , |
|||
$severity = AbstractMessage::ERROR |
|||
) |
Constructor
string | $message | Message |
string | $title | Title |
int | $severity | Severity, see class constants of AbstractMessage |
Definition at line 53 of file AbstractStandaloneMessage.php.
References AbstractMessage\$message, AbstractMessage\$severity, AbstractMessage\$title, AbstractMessage\setMessage(), AbstractMessage\setSeverity(), and AbstractMessage\setTitle().
|
protected |
Returns the default markers like title and message, which exist for every standalone message
Definition at line 79 of file AbstractStandaloneMessage.php.
References AbstractStandaloneMessage\$defaultMarkers, and GeneralUtility\getIndpEnv().
Referenced by AbstractStandaloneMessage\render().
getHtmlTemplate | ( | ) |
Gets the filename of the HTML template.
Definition at line 107 of file AbstractStandaloneMessage.php.
References AbstractStandaloneMessage\$htmlTemplate.
output | ( | ) |
Renders the message and echoes it.
Definition at line 148 of file AbstractStandaloneMessage.php.
References AbstractStandaloneMessage\render().
render | ( | ) |
Renders the message.
Definition at line 134 of file AbstractStandaloneMessage.php.
References AbstractStandaloneMessage\$markers, AbstractStandaloneMessage\getDefaultMarkers(), GeneralUtility\getUrl(), and GeneralUtility\makeInstance().
Referenced by AbstractStandaloneMessage\output().
setHtmlTemplate | ( | $htmlTemplate | ) |
Sets the filename to the HTML template
string | $htmlTemplate | The filename of the HTML template, relative to PATH_site |
Definition at line 121 of file AbstractStandaloneMessage.php.
References AbstractStandaloneMessage\$htmlTemplate.
Referenced by ErrorpageMessage\__construct().
setMarkers | ( | array | $markers | ) |
Sets the markers of the templates, which have to be replaced with the specified contents. The marker array passed, will be merged with already present markers.
array | $markers | Array containing the markers and values (e.g. ###MARKERNAME### => value) |
Definition at line 69 of file AbstractStandaloneMessage.php.
|
protected |
Definition at line 37 of file AbstractStandaloneMessage.php.
Referenced by AbstractStandaloneMessage\getDefaultMarkers().
|
protected |
Definition at line 30 of file AbstractStandaloneMessage.php.
Referenced by AbstractStandaloneMessage\getHtmlTemplate(), and AbstractStandaloneMessage\setHtmlTemplate().
|
protected |
Definition at line 44 of file AbstractStandaloneMessage.php.
Referenced by AbstractStandaloneMessage\render().