TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Reports\Status Class Reference
Inheritance diagram for TYPO3\CMS\Reports\Status:
tx_reports_reports_status_Status

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
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! A class representing a certain status

Author
Ingo Renner ingo@.nosp@m.typo.nosp@m.3.org

Definition at line 21 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$messageOptional message further describing the title/value combination Example:, eg "The deprecation log is important and does foo, to disable it do bar"
integer$severityA severity level. Use one of the constants above!

Definition at line 60 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()

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

Creates a string representation of a status.

Returns
string String representation of this status.

Definition at line 108 of file Status.php.

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

◆ getMessage()

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

Gets the status' message (if any)

Returns
string

Definition at line 90 of file Status.php.

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

◆ getSeverity()

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

Gets the status' severity

Returns
integer

Definition at line 99 of file Status.php.

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

◆ getTitle()

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()

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

Gets the status' value

Returns
string

Definition at line 81 of file Status.php.

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

Member Data Documentation

◆ $message

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

◆ $severity

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

◆ $title

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

◆ $value

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

◆ ERROR

◆ INFO

◆ NOTICE

◆ OK

const TYPO3\CMS\Reports\Status::OK = 0

Definition at line 25 of file Status.php.

Referenced by TYPO3\CMS\Extbase\Utility\ExtbaseRequirementsCheckUtility\checkIfDbalExtensionIsInstalled(), TYPO3\CMS\Rtehtmlarea\Hook\StatusReportConflictsCheckHook\checkIfNoConflictingExtensionIsInstalled(), TYPO3\CMS\Reports\Report\Status\WarningMessagePostProcessor\displayWarningMessages_postProcess(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getCacheFloodingProtectionStatus(), TYPO3\CMS\Reports\Report\Status\FalStatus\getContentAdapterStatus(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getCreatedDirectoriesWorldWritableStatus(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getCreatedFilesWorldWritableStatus(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getDeprecationLogStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getEncryptionKeyStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getFileDenyPatternStatus(), TYPO3\CMS\Install\Report\InstallStatusReport\getFileSystemStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getHtaccessUploadStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getInstallToolPasswordStatus(), TYPO3\CMS\Reports\Report\Status\SecurityStatus\getInstallToolProtectionStatus(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getMemcachedConnectionStatus(), TYPO3\CMS\Reports\Report\Status\SystemStatus\getMissingPhpModulesOfExtensions(), TYPO3\CMS\Reports\Report\Status\Typo3Status\getOldXclassUsageStatus(), TYPO3\CMS\Reports\Report\Status\ConfigurationStatus\getReferenceIndexStatus(), TYPO3\CMS\Reports\Report\Status\Typo3Status\getRegisteredXclassStatus(), TYPO3\CMS\Install\Report\InstallStatusReport\getRemainingUpdatesStatus(), TYPO3\CMS\Reports\Report\Status\SystemStatus\getStatus(), TYPO3\CMS\Reports\Report\Status\FalStatus\getStatus(), TYPO3\CMS\Extensionmanager\Report\ExtensionStatus\getStatus(), TYPO3\CMS\Reports\Tests\Unit\Report\Status\Typo3StatusTest\getStatusReturnsOldXclassStatusObjectWithSeverityOkIfNoOldXclassExists(), TYPO3\CMS\Reports\Tests\Unit\Report\Status\Typo3StatusTest\getStatusReturnsXclassStatusObjectWithSeverityOkIfNoXclassExists(), TYPO3\CMS\Reports\Report\Status\Status\getSystemStatus(), and TYPO3\CMS\Reports\Task\SystemStatusUpdateTask\setNotificationEmail().

◆ WARNING