TYPO3CMS
9.5
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
Message.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extbase\Error
;
3
4
/*
5
* This file is part of the TYPO3 CMS project.
6
*
7
* It is free software; you can redistribute it and/or modify it under
8
* the terms of the GNU General Public License, either version 2
9
* of the License, or any later version.
10
*
11
* For the full copyright and license information, please read the
12
* LICENSE.txt file that was distributed with this source code.
13
*
14
* The TYPO3 project - inspiring people to share!
15
*/
16
20
class
Message
21
{
27
protected
$message
=
'Unknown message'
;
28
34
protected
$code
;
35
41
protected
$arguments
= [];
42
48
protected
$title
=
''
;
49
58
public
function
__construct
(
$message
,
$code
, array
$arguments
= [],
$title
=
''
)
59
{
60
$this->message =
$message
;
61
$this->code =
$code
;
62
$this->arguments =
$arguments
;
63
$this->title =
$title
;
64
}
65
71
public
function
getMessage
()
72
{
73
return
$this->message
;
74
}
75
81
public
function
getCode
()
82
{
83
return
$this->code
;
84
}
85
91
public
function
getArguments
()
92
{
93
return
$this->arguments
;
94
}
95
101
public
function
getTitle
()
102
{
103
return
$this->title
;
104
}
105
111
public
function
render
()
112
{
113
if
(!empty($this->arguments)) {
114
return
vsprintf($this->message, $this->arguments);
115
}
116
return
$this->message
;
117
}
118
124
public
function
__toString
()
125
{
126
return
$this->
render
();
127
}
128
}
TYPO3\CMS\Extbase\Error\Message\$code
string $code
Definition:
Message.php:32
TYPO3\CMS\Extbase\Error\Message\__toString
string __toString()
Definition:
Message.php:120
TYPO3\CMS\Extbase\Error\Message\getCode
string getCode()
Definition:
Message.php:77
TYPO3\CMS\Extbase\Error\Message\render
string render()
Definition:
Message.php:107
TYPO3\CMS\Extbase\Error\Message\getTitle
string getTitle()
Definition:
Message.php:97
TYPO3\CMS\Extbase\Error
Definition:
Error.php:2
TYPO3\CMS\Extbase\Error\Message
Definition:
Message.php:21
TYPO3\CMS\Extbase\Error\Message\getArguments
array getArguments()
Definition:
Message.php:87
TYPO3\CMS\Extbase\Error\Message\$arguments
array $arguments
Definition:
Message.php:38
TYPO3\CMS\Extbase\Error\Message\getMessage
string getMessage()
Definition:
Message.php:67
TYPO3\CMS\Extbase\Error\Message\$message
string $message
Definition:
Message.php:26
TYPO3\CMS\Extbase\Error\Message\$title
string $title
Definition:
Message.php:44
TYPO3\CMS\Extbase\Error\Message\__construct
__construct($message, $code, array $arguments=[], $title='')
Definition:
Message.php:54
doxygen
typo3
sysext
extbase
Classes
Error
Message.php
Generated on Tue Oct 5 2021 01:57:08 for TYPO3CMS by
1.8.18