TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage Class Reference
Inheritance diagram for TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage:
TYPO3\CMS\Core\Messaging\AbstractMessage TYPO3\CMS\Core\Messaging\ErrorpageMessage

Public Member Functions

 __construct ($message='', $title='', $severity=AbstractMessage::ERROR)
 
 setMarkers (array $markers)
 
 getHtmlTemplate ()
 
 setHtmlTemplate ($htmlTemplate)
 
 render ()
 
 output ()
 
- Public Member Functions inherited from TYPO3\CMS\Core\Messaging\AbstractMessage
 getTitle ()
 
 setTitle ($title)
 
 getMessage ()
 
 setMessage ($message)
 
 getSeverity ()
 
 setSeverity ($severity=self::OK)
 
 __toString ()
 

Protected Member Functions

 getDefaultMarkers ()
 

Protected Attributes

 $htmlTemplate
 
 $defaultMarkers = []
 
 $markers = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Messaging\AbstractMessage
 $title = ''
 
 $message = ''
 
 $severity = self::OK
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Core\Messaging\AbstractMessage
const NOTICE = -2
 
const INFO = -1
 
const OK = 0
 
const WARNING = 1
 
const ERROR = 2
 

Detailed Description

Abstract class as base for standalone messages (error pages etc.)

Definition at line 23 of file AbstractStandaloneMessage.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage::__construct (   $message = '',
  $title = '',
  $severity = AbstractMessage::ERROR 
)

Member Function Documentation

◆ getDefaultMarkers()

TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage::getDefaultMarkers ( )
protected

◆ getHtmlTemplate()

TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage::getHtmlTemplate ( )

Gets the filename of the HTML template.

Returns
string The filename of the HTML template.

Definition at line 107 of file AbstractStandaloneMessage.php.

References TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage\$htmlTemplate.

◆ output()

TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage::output ( )

Renders the message and echoes it.

Returns
void

Definition at line 148 of file AbstractStandaloneMessage.php.

References TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage\render().

◆ render()

◆ setHtmlTemplate()

TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage::setHtmlTemplate (   $htmlTemplate)

Sets the filename to the HTML template

Parameters
string$htmlTemplateThe filename of the HTML template, relative to PATH_site
Returns
void

Definition at line 121 of file AbstractStandaloneMessage.php.

References TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage\$htmlTemplate.

Referenced by TYPO3\CMS\Core\Messaging\ErrorpageMessage\__construct().

◆ setMarkers()

TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage::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.

Parameters
array$markersArray containing the markers and values (e.g. ###MARKERNAME### => value)
Returns
void

Definition at line 69 of file AbstractStandaloneMessage.php.

Member Data Documentation

◆ $defaultMarkers

TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage::$defaultMarkers = []
protected

◆ $htmlTemplate

TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage::$htmlTemplate
protected

◆ $markers

TYPO3\CMS\Core\Messaging\AbstractStandaloneMessage::$markers = []
protected