ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
Public Member Functions | |
__construct (InternalDataService $data, InternalRepoService $repo, InternalDomainService $domain) | |
setSortAscending (bool $asc) | |
getSortAscending () | |
createNote (Note $note, array $observer, bool $use_provided_creation_date=false) | |
deleteNote (Note $note, int $user_id, $public_deletion_enabled=false) | |
updateNoteText (int $id, string $text, array $observer) | |
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 context. More... | |
getNotesForRepositoryObjId (int $obj_id, int $type=Note::PRIVATE, bool $incl_sub=false, int $author=0, bool $ascending=false, string $since="") | |
Get all notes related to a specific repository object. More... | |
getNotesForRepositoryObjIds (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 repository object. More... | |
getNrOfNotesForContext (Context $context, int $type=Note::PRIVATE, bool $incl_sub=false, int $author=0) | |
getRelatedObjectsOfUser (int $type) | |
Get all untrashed objects that have either notes/comments of the user attached, or are favourites of the user and have at least one comment (of any user) More... | |
getById (int $id) | |
commentsActive (int $obj_id) | |
Are comments activated for object? More... | |
commentsActiveMultiple (array $obj_ids) | |
activateComments (int $obj_id, bool $a_activate=true) | |
Activate notes feature. More... | |
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, bool $no_sub_objs=false) | |
Get all notes related to multiple repository objects (current user) More... | |
Protected Attributes | |
NotificationsManager | $notification |
AccessManager | $note_access |
NoteSettingsDBRepository | $db_settings_repo |
NoteDBRepository | $db_repo |
InternalDomainService | $domain |
InternalRepoService | $repo |
InternalDataService | $data |
NotesSessionRepository | $sess_repo |
Definition at line 26 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::__construct | ( | InternalDataService | $data, |
InternalRepoService | $repo, | ||
InternalDomainService | $domain | ||
) |
Definition at line 37 of file class.NotesManager.php.
References ILIAS\Notes\NotesManager\$data, ILIAS\Notes\NotesManager\$domain, ILIAS\Notes\NotesManager\$repo, and ILIAS\UI\examples\Symbol\Glyph\Notification\notification().
ILIAS\Notes\NotesManager::activateComments | ( | int | $obj_id, |
bool | $a_activate = true |
||
) |
Activate notes feature.
Definition at line 261 of file class.NotesManager.php.
References ilObject\_lookupType().
ILIAS\Notes\NotesManager::commentsActive | ( | int | $obj_id | ) |
Are comments activated for object?
Definition at line 246 of file class.NotesManager.php.
Referenced by ILIAS\Notes\NotesManager\getRelatedObjectsOfUser().
ILIAS\Notes\NotesManager::commentsActiveMultiple | ( | array | $obj_ids | ) |
Definition at line 252 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::countNotesAndCommentsMultipleObjects | ( | array | $obj_ids, |
bool | $no_sub_objs = false |
||
) |
Get all notes related to multiple repository objects (current user)
Definition at line 288 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::createNote | ( | Note | $note, |
array | $observer, | ||
bool | $use_provided_creation_date = false |
||
) |
Definition at line 62 of file class.NotesManager.php.
References ILIAS\UI\examples\Symbol\Glyph\Notification\notification(), ilUtil\now(), and ILIAS\Notes\Note\withCreationDate().
ILIAS\Notes\NotesManager::deleteNote | ( | Note | $note, |
int | $user_id, | ||
$public_deletion_enabled = false |
|||
) |
Definition at line 75 of file class.NotesManager.php.
References ILIAS\Notes\Note\getId().
ILIAS\Notes\NotesManager::getById | ( | int | $id | ) |
NoteNotFoundException |
Definition at line 238 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::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 context.
Definition at line 100 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::getNotesForRepositoryObjId | ( | int | $obj_id, |
int | $type = Note::PRIVATE , |
||
bool | $incl_sub = false , |
||
int | $author = 0 , |
||
bool | $ascending = false , |
||
string | $since = "" |
||
) |
Get all notes related to a specific repository object.
Definition at line 124 of file class.NotesManager.php.
References $context.
ILIAS\Notes\NotesManager::getNotesForRepositoryObjIds | ( | 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 repository object.
array | $obj_ids |
Definition at line 152 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::getNrOfNotesForContext | ( | Context | $context, |
int | $type = Note::PRIVATE , |
||
bool | $incl_sub = false , |
||
int | $author = 0 |
||
) |
Definition at line 173 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::getRelatedObjectsOfUser | ( | int | $type | ) |
Get all untrashed objects that have either notes/comments of the user attached, or are favourites of the user and have at least one comment (of any user)
int | $type | Note::PRIVATE | Note::PUBLIC |
Definition at line 193 of file class.NotesManager.php.
References $id, $user_id, ilObject\_hasUntrashedReference(), ILIAS\Notes\NotesManager\commentsActive(), and ILIAS\Notes\Note\PUBLIC.
ILIAS\Notes\NotesManager::getSortAscending | ( | ) |
Definition at line 57 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::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 276 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::setSortAscending | ( | bool | $asc | ) |
Definition at line 52 of file class.NotesManager.php.
ILIAS\Notes\NotesManager::updateNoteText | ( | int | $id, |
string | $text, | ||
array | $observer | ||
) |
Definition at line 82 of file class.NotesManager.php.
References ILIAS\UI\examples\Symbol\Glyph\Notification\notification().
|
protected |
Definition at line 34 of file class.NotesManager.php.
Referenced by ILIAS\Notes\NotesManager\__construct().
|
protected |
Definition at line 31 of file class.NotesManager.php.
|
protected |
Definition at line 30 of file class.NotesManager.php.
|
protected |
Definition at line 32 of file class.NotesManager.php.
Referenced by ILIAS\Notes\NotesManager\__construct().
|
protected |
Definition at line 29 of file class.NotesManager.php.
|
protected |
Definition at line 28 of file class.NotesManager.php.
|
protected |
Definition at line 33 of file class.NotesManager.php.
Referenced by ILIAS\Notes\NotesManager\__construct().
|
protected |
Definition at line 35 of file class.NotesManager.php.