TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Message Class Reference
Inheritance diagram for Message:
Error Notice Warning 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 extbase/Classes/Error/Message.php.

Constructor & Destructor Documentation

__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 extbase/Classes/Error/Message.php.

References Message\$arguments, Message\$code, Message\$message, and Message\$title.

Member Function Documentation

__toString ( )

Converts this error into a string

Returns
string

Definition at line 141 of file extbase/Classes/Error/Message.php.

References Message\render().

getArguments ( )

Get arguments

Returns
array

Definition at line 104 of file extbase/Classes/Error/Message.php.

References Message\$arguments.

getCode ( )

Returns the error code

Returns
string The error code

Definition at line 93 of file extbase/Classes/Error/Message.php.

References Message\$code.

getMessage ( )

Returns the error message

Returns
string The error message

Definition at line 82 of file extbase/Classes/Error/Message.php.

References Message\$message.

getTitle ( )

Get title

Returns
string

Definition at line 115 of file extbase/Classes/Error/Message.php.

References Message\$title.

render ( )

Return the rendered message

Returns
string

Definition at line 126 of file extbase/Classes/Error/Message.php.

References Message\$message.

Referenced by Message\__toString().

Member Data Documentation

$arguments = []
protected

Definition at line 50 of file extbase/Classes/Error/Message.php.

Referenced by Message\__construct(), and Message\getArguments().

$code
protected

Definition at line 43 of file extbase/Classes/Error/Message.php.

Referenced by Message\__construct(), and Message\getCode().

$message = 'Unknown message'
protected
$title = ''
protected

Definition at line 57 of file extbase/Classes/Error/Message.php.

Referenced by Message\__construct(), and Message\getTitle().