TYPO3
7.6
|
Public Member Functions | |
__construct ($title, $value, $message= '', $severity=self::OK) | |
getTitle () | |
getValue () | |
getMessage () | |
getSeverity () | |
__toString () | |
Public Attributes | |
const | NOTICE = -2 |
const | INFO = -1 |
const | OK = 0 |
const | WARNING = 1 |
const | ERROR = 2 |
Protected Attributes | |
$title | |
$value | |
$message | |
$severity | |
A class representing a certain status
Definition at line 20 of file Status.php.
__construct | ( | $title, | |
$value, | |||
$message = '' , |
|||
$severity = self::OK |
|||
) |
Construct a status
All values must be given as constructor arguments. All strings should be localized.
string | $title | Status title, eg. "Deprecation log" |
string | $value | Status value, eg. "Disabled" |
string | $message | Optional message further describing the title/value combination Example:, eg "The deprecation log is important and does foo, to disable it do bar" |
int | $severity | A severity level. Use one of the constants above! |
Definition at line 60 of file Status.php.
References Status\$message, Status\$severity, Status\$title, and Status\$value.
__toString | ( | ) |
Creates a string representation of a status.
Definition at line 113 of file Status.php.
References Status\$severity.
getMessage | ( | ) |
Gets the status' message (if any)
Definition at line 93 of file Status.php.
References Status\$message.
getSeverity | ( | ) |
Gets the status' severity
Definition at line 103 of file Status.php.
References Status\$severity.
getTitle | ( | ) |
Gets the status' title
Definition at line 73 of file Status.php.
References Status\$title.
getValue | ( | ) |
Gets the status' value
Definition at line 83 of file Status.php.
References Status\$value.
|
protected |
Definition at line 41 of file Status.php.
Referenced by Status\__construct(), and Status\getMessage().
|
protected |
Definition at line 46 of file Status.php.
Referenced by Status\__construct(), Status\__toString(), and Status\getSeverity().
|
protected |
Definition at line 31 of file Status.php.
Referenced by Status\__construct(), and Status\getTitle().
|
protected |
Definition at line 36 of file Status.php.
Referenced by Status\__construct(), and Status\getValue().
const ERROR = 2 |
Definition at line 26 of file Status.php.
Referenced by StatusReportConflictsCheckHook\checkIfNoConflictingExtensionIsInstalled(), InstallStatusReport\getFileSystemStatus(), and SecurityStatusReport\getInstallToolPasswordStatus().
const INFO = -1 |
Definition at line 23 of file Status.php.
const NOTICE = -2 |
const OK = 0 |
Definition at line 24 of file Status.php.
Referenced by StatusReportConflictsCheckHook\checkIfNoConflictingExtensionIsInstalled(), WarningMessagePostProcessor\displayWarningMessages_postProcess(), InstallStatusReport\getFileSystemStatus(), SecurityStatusReport\getInstallToolPasswordStatus(), SecurityStatusReport\getInstallToolProtectionStatus(), InstallStatusReport\getRemainingUpdatesStatus(), Typo3StatusTest\getStatusReturnsOldXclassStatusObjectWithSeverityOkIfNoOldXclassExists(), and Typo3StatusTest\getStatusReturnsXclassStatusObjectWithSeverityOkIfNoXclassExists().
const WARNING = 1 |
Definition at line 25 of file Status.php.
Referenced by InstallStatusReport\getFileSystemStatus(), SecurityStatusReport\getInstallToolProtectionStatus(), and InstallStatusReport\getRemainingUpdatesStatus().