ILIAS  release_8 Revision v8.23
ilPRGMessageCollection Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilPRGMessageCollection:

Public Member Functions

 withNewTopic (string $description)
 
 getSuccess ()
 
 getErrors ()
 
 hasSuccess ()
 
 hasErrors ()
 
 hasAnyMessages ()
 
 getDescription ()
 
 add (bool $success, string $message, string $record_identitifer)
 

Protected Attributes

array $success = []
 
array $error = []
 
string $description = ''
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Holds information about multi-actions, mainly in context of member-assignemnts and status changes

Definition at line 25 of file ilPRGMessageCollection.php.

Member Function Documentation

◆ add()

ilPRGMessageCollection::add ( bool  $success,
string  $message,
string  $record_identitifer 
)

◆ getDescription()

ilPRGMessageCollection::getDescription ( )

Definition at line 71 of file ilPRGMessageCollection.php.

References $description.

Referenced by ilPRGMessagePrinter\showMessages().

71  : string
72  {
73  return $this->description;
74  }
+ Here is the caller graph for this function:

◆ getErrors()

ilPRGMessageCollection::getErrors ( )
Returns
string[]

Definition at line 51 of file ilPRGMessageCollection.php.

References $error.

Referenced by ilPRGMessagePrinter\showMessages().

51  : array
52  {
53  return $this->error;
54  }
+ Here is the caller graph for this function:

◆ getSuccess()

ilPRGMessageCollection::getSuccess ( )
Returns
string[]

Definition at line 43 of file ilPRGMessageCollection.php.

References $success.

Referenced by ilPRGMessagePrinter\showMessages().

43  : array
44  {
45  return $this->success;
46  }
+ Here is the caller graph for this function:

◆ hasAnyMessages()

ilPRGMessageCollection::hasAnyMessages ( )

Definition at line 66 of file ilPRGMessageCollection.php.

References ILIAS\UI\examples\MessageBox\Success\success().

66  : bool
67  {
68  return count($this->error) > 0 || count($this->success) > 0;
69  }
+ Here is the call graph for this function:

◆ hasErrors()

ilPRGMessageCollection::hasErrors ( )

Definition at line 61 of file ilPRGMessageCollection.php.

Referenced by ilPRGMessagePrinter\showMessages().

61  : bool
62  {
63  return count($this->error) > 0;
64  }
+ Here is the caller graph for this function:

◆ hasSuccess()

ilPRGMessageCollection::hasSuccess ( )

Definition at line 56 of file ilPRGMessageCollection.php.

References ILIAS\UI\examples\MessageBox\Success\success().

Referenced by ilPRGMessagePrinter\showMessages().

56  : bool
57  {
58  return count($this->success) > 0;
59  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withNewTopic()

ilPRGMessageCollection::withNewTopic ( string  $description)

Definition at line 31 of file ilPRGMessageCollection.php.

References $description.

Referenced by ilPRGMessagePrinter\getMessageCollection().

32  {
33  $clone = clone $this;
34  $clone->success = [];
35  $clone->error = [];
36  $clone->description = $description;
37  return $clone;
38  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

Field Documentation

◆ $description

string ilPRGMessageCollection::$description = ''
protected

Definition at line 29 of file ilPRGMessageCollection.php.

Referenced by getDescription(), and withNewTopic().

◆ $error

array ilPRGMessageCollection::$error = []
protected

Definition at line 28 of file ilPRGMessageCollection.php.

Referenced by getErrors().

◆ $success

array ilPRGMessageCollection::$success = []
protected

Definition at line 27 of file ilPRGMessageCollection.php.

Referenced by getSuccess().


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