ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSystemStyleMessage Class Reference

Message for the user. More...

+ Collaboration diagram for ilSystemStyleMessage:

Public Member Functions

 __construct (string $message, int $type_id=self::TYPE_SUCCESS)
 
 getMessageOutput ()
 
 getMessage ()
 
 setMessage (string $message)
 
 getTypeId ()
 
 setTypeId (int $type_id)
 

Data Fields

const TYPE_INFO = 0
 
const TYPE_SUCCESS = 1
 
const TYPE_ERROR = 2
 

Protected Member Functions

 isValidTypeId (int $type_id)
 

Protected Attributes

string $message = ''
 
int $type_id = self::TYPE_SUCCESS
 

Detailed Description

Message for the user.

Mostly they are stacked, to be shown on rendering to the user all at once.

Definition at line 24 of file class.ilSystemStyleMessage.php.

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleMessage::__construct ( string  $message,
int  $type_id = self::TYPE_SUCCESS 
)

Definition at line 33 of file class.ilSystemStyleMessage.php.

References setMessage(), and setTypeId().

+ Here is the call graph for this function:

Member Function Documentation

◆ getMessage()

ilSystemStyleMessage::getMessage ( )

Definition at line 44 of file class.ilSystemStyleMessage.php.

References $message.

Referenced by ilSystemStyleMessageTest\testConstructor(), and ilSystemStyleMessageTest\testGetAndSetMessage().

44  : string
45  {
46  return $this->message;
47  }
+ Here is the caller graph for this function:

◆ getMessageOutput()

ilSystemStyleMessage::getMessageOutput ( )

Definition at line 39 of file class.ilSystemStyleMessage.php.

Referenced by ilSystemStyleMessageTest\testGetMessageOutput().

39  : string
40  {
41  return $this->message . '</br>';
42  }
+ Here is the caller graph for this function:

◆ getTypeId()

ilSystemStyleMessage::getTypeId ( )

Definition at line 54 of file class.ilSystemStyleMessage.php.

References $type_id.

Referenced by ilSystemStyleMessageTest\testConstructor(), and ilSystemStyleMessageTest\testGetAndSetTypeID().

54  : int
55  {
56  return $this->type_id;
57  }
+ Here is the caller graph for this function:

◆ isValidTypeId()

ilSystemStyleMessage::isValidTypeId ( int  $type_id)
protected

Definition at line 71 of file class.ilSystemStyleMessage.php.

Referenced by setTypeId().

71  : bool
72  {
73  switch ($type_id) {
74  case self::TYPE_ERROR:
75  case self::TYPE_INFO:
76  case self::TYPE_SUCCESS:
77  return true;
78  default:
79  return false;
80  }
81  }
+ Here is the caller graph for this function:

◆ setMessage()

ilSystemStyleMessage::setMessage ( string  $message)

Definition at line 49 of file class.ilSystemStyleMessage.php.

References $message.

Referenced by __construct(), and ilSystemStyleMessageTest\testGetAndSetMessage().

49  : void
50  {
51  $this->message = $message;
52  }
+ Here is the caller graph for this function:

◆ setTypeId()

ilSystemStyleMessage::setTypeId ( int  $type_id)
Exceptions
ilSystemStyleMessageStackException

Definition at line 62 of file class.ilSystemStyleMessage.php.

References $type_id, isValidTypeId(), and ilSystemStyleMessageStackException\MESSAGE_STACK_TYPE_ID_DOES_NOT_EXIST.

Referenced by __construct(), and ilSystemStyleMessageTest\testGetAndSetTypeID().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $message

string ilSystemStyleMessage::$message = ''
protected

Definition at line 30 of file class.ilSystemStyleMessage.php.

Referenced by getMessage(), and setMessage().

◆ $type_id

int ilSystemStyleMessage::$type_id = self::TYPE_SUCCESS
protected

Definition at line 31 of file class.ilSystemStyleMessage.php.

Referenced by getTypeId(), and setTypeId().

◆ TYPE_ERROR

const ilSystemStyleMessage::TYPE_ERROR = 2

Definition at line 28 of file class.ilSystemStyleMessage.php.

Referenced by ilSystemStyleIconsGUI\addSelectIconToolbar(), ilSystemStyleOverviewGUI\checkDeletable(), ilSystemStyleLessGUI\checkLessInstallation(), ilSystemStyleMainGUI\checkPermission(), ilSystemStyleLessGUI\checkRequirements(), ilSystemStyleOverviewGUI\checkStyleSettings(), ilSystemStyleOverviewGUI\confirmDelete(), ilSystemStyleOverviewGUI\copyStyle(), ilSkinStyleContainer\create(), ilSubStyleAssignmentGUI\deleteAssignments(), ilSystemStyleOverviewGUI\deleteStyle(), ilSystemStyleOverviewGUI\deleteStyles(), ilSystemStyleLessGUI\edit(), ilSystemStyleIconsGUI\executeCommand(), ilSystemStyleMainGUI\executeCommand(), ilSystemStyleOverviewGUI\export(), ilStyleDefinition\getCurrentSkin(), ilStyleDefinition\getCurrentStyle(), ilSystemStyleMessageStack\getUIComponentsMessages(), ilSystemStyleIconsGUI\preview(), ilSystemStyleLessGUI\reset(), ilSystemStyleSettingsGUI\save(), ilSubStyleAssignmentGUI\saveAssignment(), ilSystemStyleOverviewGUI\saveNewSubStyle(), ilSystemStyleOverviewGUI\saveNewSystemStyle(), ilSystemStyleMessageStack\sendMessages(), ilSystemStyleMessageStackTest\testAddMessage(), ilSystemStyleMessageTest\testConstructor(), ilSystemStyleMessageTest\testGetAndSetTypeID(), ilSystemStyleMessageStackTest\testGetUIComponentsMessages(), ilSystemStyleMessageStackTest\testJoinedMessages(), ilSystemStyleMessageStackTest\testPrependMessage(), ilSystemStyleLessGUI\update(), ilSystemStyleIconsGUI\update(), and ilSkinStyleContainer\updateStyle().

◆ TYPE_INFO

◆ TYPE_SUCCESS


The documentation for this class was generated from the following file: