AbstractMessage
abstract class \
- Implements
- JsonSerializable
A class used for any kind of messages.
Table of Contents
Interfaces
- JsonSerializable
Constants
Properties
- $message : string
- $severity : ContextualFeedbackSeverity
- $title : string
Methods
- __toString() : string
- Creates a string representation of the message. Useful for command line use.
- getMessage() : string
- getSeverity() : ContextualFeedbackSeverity
- getTitle() : string
- jsonSerialize() : array
- setMessage() : void
- setSeverity() : void
- Sets the message' severity
- setTitle() : void
Constants
ERROR
Deprecated
Use \TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::ERROR instead
public
mixed
ERROR
= 2
INFO
Deprecated
Use \TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::INFO instead
public
mixed
INFO
= -1
NOTICE
Deprecated
Use \TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::NOTICE instead
public
mixed
NOTICE
= -2
OK
Deprecated
Use \TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::OK instead
public
mixed
OK
= 0
WARNING
Deprecated
Use \TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::WARNING instead
public
mixed
WARNING
= 1
Properties
$message
protected
string
$message
= ''
$severity
protected
ContextualFeedbackSeverity
$severity
= \TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::OK
$title
protected
string
$title
= ''
Methods
__toString()
Creates a string representation of the message. Useful for command line use.
public
__toString() : string
Return values
string —A string representation of the message.
getMessage()
public
getMessage() : string
Return values
stringgetSeverity()
public
getSeverity() : ContextualFeedbackSeverity
Internal
Return values
ContextualFeedbackSeveritygetTitle()
public
getTitle() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : array
Return values
array —Data which can be serialized by json_encode()
setMessage()
public
setMessage(string $message) : void
Parameters
- $message : string
setSeverity()
Sets the message' severity
public
setSeverity([value-of |ContextualFeedbackSeverity $severity = ContextualFeedbackSeverity::OK ]) : void
Parameters
-
$severity
: value-of
|ContextualFeedbackSeverity = ContextualFeedbackSeverity::OK
Tags
setTitle()
public
setTitle(string $title) : void
Parameters
- $title : string