ILIAS  trunk Revision v11.0_alpha-1851-ga8564da6fed
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Notes\Note Class Reference
+ Collaboration diagram for ILIAS\Notes\Note:

Public Member Functions

 __construct (int $id, Context $context, string $text, int $author, int $type=self::PRIVATE, ?string $creation_date=null, ?string $update_date=null, ?int $recipient=0)
 
 withCreationDate (string $creation_date)
 
 getId ()
 
 getContext ()
 
 getText ()
 
 getAuthor ()
 
 getType ()
 
 getCreationDate ()
 
 getUpdateDate ()
 
 getRecipient ()
 

Data Fields

const PRIVATE = 1
 
const PUBLIC = 2
 
const MESSAGE = 3
 

Protected Attributes

int $id = 0
 
string $update_date
 
string $creation_date
 
int $author = 0
 
int $type = 0
 
string $text = ""
 
int $recipient = 0
 
Context $context
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file class.Note.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Notes\Note::__construct ( int  $id,
Context  $context,
string  $text,
int  $author,
int  $type = self::PRIVATE,
?string  $creation_date = null,
?string  $update_date = null,
?int  $recipient = 0 
)

Definition at line 41 of file class.Note.php.

References ILIAS\Notes\Note\$author, ILIAS\Notes\Note\$context, ILIAS\Notes\Note\$creation_date, ILIAS\Notes\Note\$id, ILIAS\Notes\Note\$recipient, ILIAS\Notes\Note\$text, ILIAS\Notes\Note\$type, and ILIAS\Notes\Note\$update_date.

50  {
51  $this->id = $id;
52  $this->context = $context;
53  $this->text = $text;
54  $this->author = $author;
55  $this->type = $type;
56  $this->update_date = $update_date;
57  $this->creation_date = $creation_date;
58  $this->recipient = $recipient;
59  }
Context $context
Definition: class.Note.php:39
string $creation_date
Definition: class.Note.php:34
string $update_date
Definition: class.Note.php:33

Member Function Documentation

◆ getAuthor()

◆ getContext()

ILIAS\Notes\Note::getContext ( )

Definition at line 73 of file class.Note.php.

References ILIAS\Notes\Note\$context.

Referenced by ILIAS\Notes\AccessManager\canDelete(), ILIAS\Notes\NoteDBRepository\createNote(), and ilNoteGUI\getTarget().

73  : Context
74  {
75  return $this->context;
76  }
Context $context
Definition: class.Note.php:39
+ Here is the caller graph for this function:

◆ getCreationDate()

ILIAS\Notes\Note::getCreationDate ( )

◆ getId()

ILIAS\Notes\Note::getId ( )

Definition at line 68 of file class.Note.php.

References ILIAS\Notes\Note\$id.

Referenced by ILIAS\Notes\NotesManager\deleteNote(), ilNoteGUI\getItemForNote(), ilNoteGUI\getNoteTextPlaceholder(), and ilNoteGUI\getTarget().

68  : int
69  {
70  return $this->id;
71  }
+ Here is the caller graph for this function:

◆ getRecipient()

ILIAS\Notes\Note::getRecipient ( )

Definition at line 103 of file class.Note.php.

References ILIAS\Notes\Note\$recipient.

Referenced by ILIAS\Notes\NoteDBRepository\createNote().

103  : int
104  {
105  return $this->recipient;
106  }
+ Here is the caller graph for this function:

◆ getText()

ILIAS\Notes\Note::getText ( )

Definition at line 78 of file class.Note.php.

References ILIAS\Notes\Note\$text.

Referenced by ILIAS\Notes\NoteDBRepository\createNote(), and ilNoteGUI\getNoteText().

78  : string
79  {
80  return $this->text;
81  }
+ Here is the caller graph for this function:

◆ getType()

ILIAS\Notes\Note::getType ( )

Definition at line 88 of file class.Note.php.

References ILIAS\Notes\Note\$type.

Referenced by ilNoteGUI\addItemProperties(), ILIAS\Notes\AccessManager\canDelete(), ILIAS\Notes\NoteDBRepository\createNote(), ilNoteGUI\getItemForNote(), and ilNoteGUI\getItemTitle().

88  : int
89  {
90  return $this->type;
91  }
+ Here is the caller graph for this function:

◆ getUpdateDate()

ILIAS\Notes\Note::getUpdateDate ( )

Definition at line 98 of file class.Note.php.

References ILIAS\Notes\Note\$update_date.

Referenced by ilNoteGUI\getItemForNote().

98  : ?string
99  {
100  return $this->update_date;
101  }
string $update_date
Definition: class.Note.php:33
+ Here is the caller graph for this function:

◆ withCreationDate()

ILIAS\Notes\Note::withCreationDate ( string  $creation_date)

Definition at line 61 of file class.Note.php.

References ILIAS\Notes\Note\$creation_date.

Referenced by ILIAS\Notes\NotesManager\createNote().

61  : self
62  {
63  $note = clone $this;
64  $note->creation_date = $creation_date;
65  return $note;
66  }
string $creation_date
Definition: class.Note.php:34
+ Here is the caller graph for this function:

Field Documentation

◆ $author

int ILIAS\Notes\Note::$author = 0
protected

Definition at line 35 of file class.Note.php.

Referenced by ILIAS\Notes\Note\__construct(), and ILIAS\Notes\Note\getAuthor().

◆ $context

Context ILIAS\Notes\Note::$context
protected

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

Referenced by ILIAS\Notes\Note\__construct(), and ILIAS\Notes\Note\getContext().

◆ $creation_date

string ILIAS\Notes\Note::$creation_date
protected

◆ $id

int ILIAS\Notes\Note::$id = 0
protected

Definition at line 32 of file class.Note.php.

Referenced by ILIAS\Notes\Note\__construct(), and ILIAS\Notes\Note\getId().

◆ $recipient

int ILIAS\Notes\Note::$recipient = 0
protected

Definition at line 38 of file class.Note.php.

Referenced by ILIAS\Notes\Note\__construct(), and ILIAS\Notes\Note\getRecipient().

◆ $text

string ILIAS\Notes\Note::$text = ""
protected

Definition at line 37 of file class.Note.php.

Referenced by ILIAS\Notes\Note\__construct(), and ILIAS\Notes\Note\getText().

◆ $type

int ILIAS\Notes\Note::$type = 0
protected

Definition at line 36 of file class.Note.php.

Referenced by ILIAS\Notes\Note\__construct(), and ILIAS\Notes\Note\getType().

◆ $update_date

string ILIAS\Notes\Note::$update_date
protected

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

Referenced by ILIAS\Notes\Note\__construct(), and ILIAS\Notes\Note\getUpdateDate().

◆ MESSAGE

const ILIAS\Notes\Note::MESSAGE = 3

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

◆ PRIVATE

◆ PUBLIC


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