ILIAS  release_8 Revision v8.24
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)
 
 withCreationDate (string $creation_date)
 
 getId ()
 
 getContext ()
 
 getText ()
 
 getAuthor ()
 
 getType ()
 
 getCreationDate ()
 
 getUpdateDate ()
 

Data Fields

const PRIVATE = 1
 
const PUBLIC = 2
 

Protected Attributes

int $id = 0
 
string $update_date
 
string $creation_date
 
int $author = 0
 
int $type = 0
 
string $text = ""
 
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 
)

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

47 {
48 $this->id = $id;
49 $this->context = $context;
50 $this->text = $text;
51 $this->author = $author;
52 $this->type = $type;
53 $this->update_date = $update_date;
54 $this->creation_date = $creation_date;
55 }
Context $context
Definition: class.Note.php:37
string $update_date
Definition: class.Note.php:32
string $creation_date
Definition: class.Note.php:33

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

Member Function Documentation

◆ getAuthor()

ILIAS\Notes\Note::getAuthor ( )

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

79 : int
80 {
81 return $this->author;
82 }

References ILIAS\Notes\Note\$author.

Referenced by ilNoteGUI\exportNotesHTML().

+ Here is the caller graph for this function:

◆ getContext()

ILIAS\Notes\Note::getContext ( )

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

69 : Context
70 {
71 return $this->context;
72 }

References ILIAS\Notes\Note\$context.

Referenced by ilNoteGUI\deleteNote(), and ILIAS\Notes\NotificationsManager\notifyObserver().

+ Here is the caller graph for this function:

◆ getCreationDate()

ILIAS\Notes\Note::getCreationDate ( )

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

89 : ?string
90 {
92 }

References ILIAS\Notes\Note\$creation_date.

◆ getId()

ILIAS\Notes\Note::getId ( )

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

64 : int
65 {
66 return $this->id;
67 }

References ILIAS\Notes\Note\$id.

Referenced by ilNoteGUI\confirmDelete(), ILIAS\Notes\NotesManager\deleteNote(), ilNoteGUI\getItemForNote(), ilNoteGUI\getNoteTextPlaceholder(), and ILIAS\Notes\NotificationsManager\notifyObserver().

+ Here is the caller graph for this function:

◆ getText()

ILIAS\Notes\Note::getText ( )

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

74 : string
75 {
76 return $this->text;
77 }

References ILIAS\Notes\Note\$text.

Referenced by ilNoteGUI\getNoteText().

+ Here is the caller graph for this function:

◆ getType()

ILIAS\Notes\Note::getType ( )

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

84 : int
85 {
86 return $this->type;
87 }

References ILIAS\Notes\Note\$type.

◆ getUpdateDate()

ILIAS\Notes\Note::getUpdateDate ( )

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

94 : ?string
95 {
96 return $this->update_date;
97 }

References ILIAS\Notes\Note\$update_date.

◆ withCreationDate()

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

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

57 : self
58 {
59 $note = clone $this;
60 $note->creation_date = $creation_date;
61 return $note;
62 }

References ILIAS\Notes\Note\$creation_date.

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

+ Here is the caller graph for this function:

Field Documentation

◆ $author

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

Definition at line 34 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 37 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 31 of file class.Note.php.

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

◆ $text

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

Definition at line 36 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 35 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 32 of file class.Note.php.

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

◆ PRIVATE

const ILIAS\Notes\Note::PRIVATE = 1

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

◆ PUBLIC

const ILIAS\Notes\Note::PUBLIC = 2

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


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