TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractStandaloneMessage Class Reference
Inheritance diagram for AbstractStandaloneMessage:
AbstractMessage ErrorpageMessage

Public Member Functions

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

Protected Member Functions

 getDefaultMarkers ()
 

Protected Attributes

 $htmlTemplate
 
 $defaultMarkers = array()
 
 $markers = array()
 
- Protected Attributes inherited from AbstractMessage
 $title = ''
 
 $message = ''
 
 $severity = self::OK
 

Additional Inherited Members

- Public Attributes inherited from 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 (   $message = '',
  $title = '',
  $severity = AbstractMessage::ERROR 
)

Constructor

Parameters
string$messageMessage
string$titleTitle
int$severitySeverity, 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().

Member Function Documentation

getDefaultMarkers ( )
protected

Returns the default markers like title and message, which exist for every standalone message

Returns
array

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.

Returns
string The filename of the HTML template.

Definition at line 107 of file AbstractStandaloneMessage.php.

References AbstractStandaloneMessage\$htmlTemplate.

output ( )

Renders the message and echoes it.

Returns
void

Definition at line 148 of file AbstractStandaloneMessage.php.

References AbstractStandaloneMessage\render().

render ( )
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 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.

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 = array()
protected
$htmlTemplate
protected
$markers = array()
protected

Definition at line 44 of file AbstractStandaloneMessage.php.

Referenced by AbstractStandaloneMessage\render().