ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
|
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.
the caching should be moved into this repo instead
Definition at line 352 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, $q, ILIAS\Notes\Note\PRIVATE, and ILIAS\Notes\Note\PUBLIC.
ILIAS\Notes\NoteDBRepository::createNote | ( | Note | $note | ) |
Definition at line 39 of file class.NoteDBRepository.php.
References $context, ILIAS\Notes\NoteDBRepository\$db, $id, ILIAS\Notes\Note\getAuthor(), ILIAS\Notes\NoteDBRepository\getById(), ILIAS\Notes\Note\getContext(), ILIAS\Notes\Note\getCreationDate(), ILIAS\Notes\Note\getRecipient(), ILIAS\Notes\Note\getText(), and ILIAS\Notes\Note\getType().
ILIAS\Notes\NoteDBRepository::deleteNote | ( | int | $id | ) |
Definition at line 62 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, and $q.
ILIAS\Notes\NoteDBRepository::filterObjectsWithNotes | ( | array | $obj_ids, |
int | $type | ||
) |
int[] | $obj_ids |
Definition at line 310 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, $q, and ILIAS\Repository\int().
ILIAS\Notes\NoteDBRepository::getById | ( | int | $id | ) |
Get note by id.
NoteNotFoundException |
Definition at line 89 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, ILIAS\Notes\NoteDBRepository\getNoteFromRecord(), and ilDBInterface\queryF().
Referenced by ILIAS\Notes\NoteDBRepository\createNote().
|
protected |
Definition at line 106 of file class.NoteDBRepository.php.
References ILIAS\Repository\int().
Referenced by ILIAS\Notes\NoteDBRepository\getById(), ILIAS\Notes\NoteDBRepository\getNotesForContext(), and ILIAS\Notes\NoteDBRepository\getNotesForObjIds().
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 196 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, ILIAS\Notes\NoteDBRepository\getNoteFromRecord(), and ILIAS\Notes\NoteDBRepository\getQuery().
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 231 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, ILIAS\Notes\NoteDBRepository\getNoteFromRecord(), ILIAS\Notes\NoteDBRepository\getQuery(), and null.
ILIAS\Notes\NoteDBRepository::getNrOfNotesForContext | ( | Context | $context, |
int | $type = Note::PRIVATE , |
||
bool | $incl_sub = false , |
||
int | $author = 0 |
||
) |
Definition at line 262 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, and ILIAS\Notes\NoteDBRepository\getQuery().
|
protected |
Get query.
Definition at line 130 of file class.NoteDBRepository.php.
References $context, ILIAS\Notes\NoteDBRepository\$db, ILIAS\Notes\Context\getInRepository(), ILIAS\Notes\Context\getNewsId(), ILIAS\Notes\Context\getObjId(), ILIAS\Notes\Context\getSubObjId(), ILIAS\Notes\Context\getType(), and ilDBInterface\quote().
Referenced by ILIAS\Notes\NoteDBRepository\getNotesForContext(), ILIAS\Notes\NoteDBRepository\getNotesForObjIds(), and ILIAS\Notes\NoteDBRepository\getNrOfNotesForContext().
ILIAS\Notes\NoteDBRepository::getRelatedObjIdsOfUser | ( | int | $user_id, |
int | $type | ||
) |
Definition at line 287 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, $q, and ILIAS\Repository\int().
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 330 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, and ilDBInterface\queryF().
ILIAS\Notes\NoteDBRepository::updateNoteText | ( | int | $id, |
string | $text | ||
) |
Definition at line 70 of file class.NoteDBRepository.php.
References ILIAS\Notes\NoteDBRepository\$db, and ilUtil\now().
|
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(), ILIAS\Notes\NoteDBRepository\countNotesAndCommentsMultipleObjects(), ILIAS\Notes\NoteDBRepository\createNote(), ILIAS\Notes\NoteDBRepository\deleteNote(), ILIAS\Notes\NoteDBRepository\filterObjectsWithNotes(), ILIAS\Notes\NoteDBRepository\getById(), ILIAS\Notes\NoteDBRepository\getNotesForContext(), ILIAS\Notes\NoteDBRepository\getNotesForObjIds(), ILIAS\Notes\NoteDBRepository\getNrOfNotesForContext(), ILIAS\Notes\NoteDBRepository\getQuery(), ILIAS\Notes\NoteDBRepository\getRelatedObjIdsOfUser(), ILIAS\Notes\NoteDBRepository\getUserCount(), and ILIAS\Notes\NoteDBRepository\updateNoteText().