TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Error\Message Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Error\Message:
TYPO3\CMS\Extbase\Error\Error TYPO3\CMS\Extbase\Error\Notice TYPO3\CMS\Extbase\Error\Warning TYPO3\CMS\Extbase\Validation\Error

Public Member Functions

 __construct ($message, $code, array $arguments=[], $title='')
 
 getMessage ()
 
 getCode ()
 
 getArguments ()
 
 getTitle ()
 
 render ()
 
 __toString ()
 

Protected Attributes

 $message = 'Unknown message'
 
 $code
 
 $arguments = []
 
 $title = ''
 

Detailed Description

An object representation of a generic message. Usually, you will use Error, Warning or Notice instead of this one.

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later

Definition at line 29 of file Message.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Error\Message::__construct (   $message,
  $code,
array  $arguments = [],
  $title = '' 
)

Constructs this error

Parameters
string$messageAn english error message which is used if no other error message can be resolved
int$codeA unique error code
array$argumentsArray of arguments to be replaced in message
string$titleoptional title for the message

Definition at line 68 of file Message.php.

References TYPO3\CMS\Extbase\Error\Message\$arguments, TYPO3\CMS\Extbase\Error\Message\$code, TYPO3\CMS\Extbase\Error\Message\$message, and TYPO3\CMS\Extbase\Error\Message\$title.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Extbase\Error\Message::__toString ( )

Converts this error into a string

Returns
string

Definition at line 141 of file Message.php.

References TYPO3\CMS\Extbase\Error\Message\render().

◆ getArguments()

TYPO3\CMS\Extbase\Error\Message::getArguments ( )

Get arguments

Returns
array

Definition at line 104 of file Message.php.

References TYPO3\CMS\Extbase\Error\Message\$arguments.

◆ getCode()

TYPO3\CMS\Extbase\Error\Message::getCode ( )

Returns the error code

Returns
string The error code

Definition at line 93 of file Message.php.

References TYPO3\CMS\Extbase\Error\Message\$code.

◆ getMessage()

TYPO3\CMS\Extbase\Error\Message::getMessage ( )

Returns the error message

Returns
string The error message

Definition at line 82 of file Message.php.

References TYPO3\CMS\Extbase\Error\Message\$message.

◆ getTitle()

TYPO3\CMS\Extbase\Error\Message::getTitle ( )

Get title

Returns
string

Definition at line 115 of file Message.php.

References TYPO3\CMS\Extbase\Error\Message\$title.

◆ render()

TYPO3\CMS\Extbase\Error\Message::render ( )

Return the rendered message

Returns
string

Definition at line 126 of file Message.php.

References TYPO3\CMS\Extbase\Error\Message\$message.

Referenced by TYPO3\CMS\Extbase\Error\Message\__toString().

Member Data Documentation

◆ $arguments

TYPO3\CMS\Extbase\Error\Message::$arguments = []
protected

◆ $code

TYPO3\CMS\Extbase\Error\Message::$code
protected

◆ $message

TYPO3\CMS\Extbase\Error\Message::$message = 'Unknown message'
protected

◆ $title

TYPO3\CMS\Extbase\Error\Message::$title = ''
protected