|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ILIAS\Notes\NoteDBRepository:Public Member Functions | |
| __construct (InternalDataService $data, \ilDBInterface $db) | |
| createNote (Note $note) | |
| deleteNote (int $id) | |
| updateNoteText (int $id, string $text) | |
| getById (int $id) | |
| Get note by id. More... | |
| getNotesForContext (Context $context, int $type=Note::PRIVATE, bool $incl_sub=false, int $author=0, bool $ascending=false, string $since="", string $search_text="") | |
| Get all notes related to a specific object. More... | |
| getNotesForObjIds (array $obj_ids, int $type=Note::PRIVATE, bool $incl_sub=false, int $author=0, bool $ascending=false, string $since="", string $search_text="") | |
| Get all notes related to a specific object. More... | |
| getNrOfNotesForContext (Context $context, int $type=Note::PRIVATE, bool $incl_sub=false, int $author=0) | |
| getRelatedObjIdsOfUser (int $user_id, int $type) | |
| filterObjectsWithNotes (array $obj_ids, int $type) | |
| getUserCount (int $obj_id, int $sub_obj_id, string $obj_type) | |
| How many users have attached a note/comment to a given object? More... | |
| countNotesAndCommentsMultipleObjects (array $obj_ids, int $user_id, bool $no_sub_objs=false) | |
| Get all notes related to multiple repository objects. More... | |
Protected Member Functions | |
| getNoteFromRecord (array $rec) | |
| getQuery (?Context $context, int $type=Note::PRIVATE, bool $incl_sub=false, int $author=0, bool $ascending=false, bool $count=false, string $since="", array $obj_ids=[], string $search_text="") | |
| Get query. More... | |
Protected Attributes | |
| ilDBInterface | $db |
| InternalDataService | $data |
Definition at line 26 of file class.NoteDBRepository.php.
| ILIAS\Notes\NoteDBRepository::__construct | ( | InternalDataService | $data, |
| \ilDBInterface | $db | ||
| ) |
Definition at line 31 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$data, and ILIAS\Notes\NoteDBRepository\$db.
| ILIAS\Notes\NoteDBRepository::countNotesAndCommentsMultipleObjects | ( | array | $obj_ids, |
| int | $user_id, | ||
| bool | $no_sub_objs = false |
||
| ) |
Get all notes related to multiple repository objects.
Definition at line 350 of file class.NoteDBRepository.php.
| ILIAS\Notes\NoteDBRepository::createNote | ( | Note | $note | ) |
Definition at line 39 of file class.NoteDBRepository.php.
| ILIAS\Notes\NoteDBRepository::deleteNote | ( | int | $id | ) |
Definition at line 61 of file class.NoteDBRepository.php.
| ILIAS\Notes\NoteDBRepository::filterObjectsWithNotes | ( | array | $obj_ids, |
| int | $type | ||
| ) |
| int[] | $obj_ids |
Definition at line 308 of file class.NoteDBRepository.php.
References $type, and ILIAS\Repository\int().
Here is the call graph for this function:| ILIAS\Notes\NoteDBRepository::getById | ( | int | $id | ) |
Get note by id.
| NoteNotFoundException |
Definition at line 88 of file class.NoteDBRepository.php.
|
protected |
Definition at line 105 of file class.NoteDBRepository.php.
| ILIAS\Notes\NoteDBRepository::getNotesForContext | ( | Context | $context, |
| int | $type = Note::PRIVATE, |
||
| bool | $incl_sub = false, |
||
| int | $author = 0, |
||
| bool | $ascending = false, |
||
| string | $since = "", |
||
| string | $search_text = "" |
||
| ) |
Get all notes related to a specific object.
Definition at line 194 of file class.NoteDBRepository.php.
| ILIAS\Notes\NoteDBRepository::getNotesForObjIds | ( | array | $obj_ids, |
| int | $type = Note::PRIVATE, |
||
| bool | $incl_sub = false, |
||
| int | $author = 0, |
||
| bool | $ascending = false, |
||
| string | $since = "", |
||
| string | $search_text = "" |
||
| ) |
Get all notes related to a specific object.
Definition at line 229 of file class.NoteDBRepository.php.
| ILIAS\Notes\NoteDBRepository::getNrOfNotesForContext | ( | Context | $context, |
| int | $type = Note::PRIVATE, |
||
| bool | $incl_sub = false, |
||
| int | $author = 0 |
||
| ) |
Definition at line 260 of file class.NoteDBRepository.php.
|
protected |
Get query.
Definition at line 128 of file class.NoteDBRepository.php.
| ILIAS\Notes\NoteDBRepository::getRelatedObjIdsOfUser | ( | int | $user_id, |
| int | $type | ||
| ) |
Definition at line 285 of file class.NoteDBRepository.php.
References ILIAS\Repository\int().
Here is the call graph for this function:| ILIAS\Notes\NoteDBRepository::getUserCount | ( | int | $obj_id, |
| int | $sub_obj_id, | ||
| string | $obj_type | ||
| ) |
How many users have attached a note/comment to a given object?
Definition at line 328 of file class.NoteDBRepository.php.
| ILIAS\Notes\NoteDBRepository::updateNoteText | ( | int | $id, |
| string | $text | ||
| ) |
Definition at line 69 of file class.NoteDBRepository.php.
|
protected |
Definition at line 29 of file class.NoteDBRepository.php.
Referenced by ILIAS\Notes\NoteDBRepository\__construct().
|
protected |
Definition at line 28 of file class.NoteDBRepository.php.
Referenced by ILIAS\Notes\NoteDBRepository\__construct().