TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractMessage Class Reference
Inheritance diagram for AbstractMessage:
AbstractStandaloneMessage FlashMessage ErrorpageMessage

Public Member Functions

 getTitle ()
 
 setTitle ($title)
 
 getMessage ()
 
 setMessage ($message)
 
 getSeverity ()
 
 setSeverity ($severity=self::OK)
 
 __toString ()
 

Public Attributes

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

Protected Attributes

 $title = ''
 
 $message = ''
 
 $severity = self::OK
 

Detailed Description

A class used for any kind of messages.

Definition at line 20 of file AbstractMessage.php.

Member Function Documentation

__toString ( )

Creates a string representation of the message. Useful for command line use.

Returns
string A string representation of the message.

Definition at line 118 of file AbstractMessage.php.

References AbstractMessage\$message, AbstractMessage\$severity, and AbstractMessage\$title.

getMessage ( )

Gets the message.

Returns
string The message.

Definition at line 75 of file AbstractMessage.php.

References AbstractMessage\$message.

Referenced by FlashMessage\getMessageAsMarkup().

getSeverity ( )

Gets the message' severity.

Returns
int The message' severity, must be one of AbstractMessage::INFO or similar contstants

Definition at line 96 of file AbstractMessage.php.

References AbstractMessage\$severity.

getTitle ( )

Gets the message's title.

Returns
string The message's title.

Definition at line 54 of file AbstractMessage.php.

References AbstractMessage\$title.

Referenced by FlashMessage\getMessageAsMarkup().

setMessage (   $message)

Sets the message

Parameters
string$messageThe message
Returns
void

Definition at line 86 of file AbstractMessage.php.

References AbstractMessage\$message.

Referenced by AbstractStandaloneMessage\__construct(), and FlashMessage\__construct().

setSeverity (   $severity = self::OK)

Sets the message' severity

Parameters
int$severityThe severity, must be one of AbstractMessage::INFO or similar constants
Returns
void

Definition at line 107 of file AbstractMessage.php.

References AbstractMessage\$severity, and MathUtility\forceIntegerInRange().

Referenced by AbstractStandaloneMessage\__construct(), and FlashMessage\__construct().

setTitle (   $title)

Sets the message's title

Parameters
string$titleThe message's title
Returns
void

Definition at line 65 of file AbstractMessage.php.

References AbstractMessage\$title.

Referenced by AbstractStandaloneMessage\__construct(), and FlashMessage\__construct().

Member Data Documentation

const ERROR = 2

Definition at line 26 of file AbstractMessage.php.

Referenced by ActionController\addErrorFlashMessage(), AbstractControllerTest\addFlashMessageDataProvider(), SetupModuleController\addFlashMessages(), CleanerFieldProvider\checkTcaIsNotEmpty(), CleanerFieldProvider\checkTcaIsValid(), FormManagerController\deleteAction(), SchedulerModuleController\deleteTask(), ProductionExceptionHandler\echoExceptionWeb(), ErrorPageController\errorAction(), FlashMessageFinisher\executeInternal(), SchedulerModuleController\executeTasks(), UploadExtensionFileController\extractAction(), DocumentController\fetchAction(), SchedulerModuleController\getModuleContent(), ActionTask\getTask(), TypoScriptTemplateObjectBrowserModuleFunctionController\main(), OnlineMediaController\mainAction(), FileListController\missingFolderAction(), QueryView\procesStoreControl(), ExtendedFileUtility\pushErrorMessagesToFlashMessageQueue(), ActionController\removeExtensionAction(), ExtensionManagerConfigurationUtility\renderMessage(), ExtensionManagerConfigurationUtility\setErrorLevel(), SchedulerModuleController\stopTask(), ActionController\toggleExtensionInstallationStateAction(), DownloadController\updateExtensionAction(), CleanerFieldProvider\validateAdditionalFieldPeriod(), CachingFrameworkGarbageCollectionAdditionalFieldProvider\validateAdditionalFields(), RecyclerGarbageCollectionAdditionalFieldProvider\validateAdditionalFields(), OptimizeDatabaseTableAdditionalFieldProvider\validateAdditionalFields(), SystemStatusUpdateTaskNotificationEmailField\validateAdditionalFields(), ValidatorTaskAdditionalFieldProvider\validateAdditionalFields(), CleanerFieldProviderTest\validateAdditionalFieldsLogsPeriodError(), TableGarbageCollectionAdditionalFieldProvider\validateNumberOfDaysAdditionalField(), ActionTask\viewNewBackendUser(), ActionTask\viewRecordList(), and ActionTask\viewSqlQuery().