‪TYPO3CMS  10.4
TYPO3\CMS\Reports\Status Class Reference

Public Member Functions

 __construct ($title, $value, $message='', $severity=self::OK)
 
string getTitle ()
 
string getValue ()
 
string getMessage ()
 
int getSeverity ()
 
string __toString ()
 

Public Attributes

const NOTICE = -2
 
const INFO = -1
 
const OK = 0
 
const WARNING = 1
 
const ERROR = 2
 

Protected Attributes

string $title
 
string $value
 
string $message
 
int $severity
 

Detailed Description

A class representing a certain status

Definition at line 23 of file Status.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Reports\Status::__construct (   $title,
  $value,
  $message = '',
  $severity = self::OK 
)

Construct a status

All values must be given as constructor arguments. All strings should be localized.

Parameters
string$titleStatus title, eg. "Deprecation log"
string$valueStatus 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 59 of file Status.php.

References TYPO3\CMS\Reports\Status\$message, TYPO3\CMS\Reports\Status\$severity, TYPO3\CMS\Reports\Status\$title, TYPO3\CMS\Reports\Status\$value, and TYPO3\CMS\Core\Utility\MathUtility\forceIntegerInRange().

Member Function Documentation

◆ __toString()

string TYPO3\CMS\Reports\Status::__toString ( )

Creates a string representation of a status.

Returns
‪string String representation of this status.

Definition at line 112 of file Status.php.

References TYPO3\CMS\Reports\Status\$severity.

◆ getMessage()

string TYPO3\CMS\Reports\Status::getMessage ( )

Gets the status' message (if any)

Returns
‪string

Definition at line 92 of file Status.php.

References TYPO3\CMS\Reports\Status\$message.

◆ getSeverity()

int TYPO3\CMS\Reports\Status::getSeverity ( )

Gets the status' severity

Returns
‪int

Definition at line 102 of file Status.php.

References TYPO3\CMS\Reports\Status\$severity.

◆ getTitle()

string TYPO3\CMS\Reports\Status::getTitle ( )

Gets the status' title

Returns
‪string

Definition at line 72 of file Status.php.

References TYPO3\CMS\Reports\Status\$title.

◆ getValue()

string TYPO3\CMS\Reports\Status::getValue ( )

Gets the status' value

Returns
‪string

Definition at line 82 of file Status.php.

References TYPO3\CMS\Reports\Status\$value.

Member Data Documentation

◆ $message

string TYPO3\CMS\Reports\Status::$message
protected

◆ $severity

int TYPO3\CMS\Reports\Status::$severity
protected

◆ $title

string TYPO3\CMS\Reports\Status::$title
protected

◆ $value

string TYPO3\CMS\Reports\Status::$value
protected

◆ ERROR

◆ INFO

const TYPO3\CMS\Reports\Status::INFO = -1

Definition at line 26 of file Status.php.

◆ NOTICE

◆ OK

◆ WARNING