|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Note class. More...
Collaboration diagram for ilNote:Public Member Functions | |
| __construct ($a_id=0) | |
| constructor More... | |
| setId ($a_id) | |
| set id More... | |
| getId () | |
| get id More... | |
| setObject ($a_obj_type, $a_rep_obj_id, $a_obj_id=0) | |
| set assigned object More... | |
| getObject () | |
| setType ($a_type) | |
| set type More... | |
| getType () | |
| get type More... | |
| setAuthor ($a_user_id) | |
| set author More... | |
| getAuthor () | |
| get author More... | |
| setText ($a_text) | |
| set text More... | |
| getText () | |
| get text More... | |
| setSubject ($a_subject) | |
| set subject More... | |
| getSubject () | |
| get subject More... | |
| setCreationDate ($a_date) | |
| set creation date More... | |
| getCreationDate () | |
| get creation date More... | |
| setUpdateDate ($a_date) | |
| set update date More... | |
| getUpdateDate () | |
| get update date More... | |
| setLabel ($a_label) | |
| set label More... | |
| getLabel () | |
| get label More... | |
| setInRepository ($a_value) | |
| set repository object status More... | |
| isInRepository () | |
| belongs note to repository object? More... | |
| create ($a_use_provided_creation_date=false) | |
| update () | |
| read () | |
| delete () | |
| delete note More... | |
| setAllData ($a_note_rec) | |
| set all note data by record array More... | |
| sendNotifications ($a_changed=false) | |
| Send notifications. More... | |
Static Public Member Functions | |
| static | _lookupCreationDate ($a_id) |
| lookup creation date of note More... | |
| static | _lookupUpdateDate ($a_id) |
| lookup update date of note More... | |
| static | _getNotesOfObject ( $a_rep_obj_id, $a_obj_id, $a_obj_type, $a_type=IL_NOTE_PRIVATE, $a_incl_sub=false, $a_filter="", $a_all_public="y", $a_repository_mode=true, $a_sort_ascending=false) |
| get all notes related to a specific object More... | |
| static | _getLastNotesOfUser () |
| get last notes of current user More... | |
| static | _getRelatedObjectsOfUser ($a_mode) |
| get all related objects for user More... | |
| static | getUserCount ($a_rep_obj_id, $a_obj_id, $a_type) |
| How many users have attached a note/comment to a given object? More... | |
| static | _countNotesAndCommentsMultiple ($a_rep_obj_ids, $a_no_sub_objs=false) |
| Get all notes related to multiple objcts. More... | |
| static | _countNotesAndComments ($a_rep_obj_id, $a_sub_obj_id=null) |
| Get all notes related to a specific object. More... | |
| static | activateComments ($a_rep_obj_id, $a_obj_id, $a_obj_type, $a_activate=true) |
| Activate notes feature. More... | |
| static | commentsActivated ($a_rep_obj_id, $a_obj_id, $a_obj_type) |
| Are comments activated for object? More... | |
| static | getRepObjActivation ($a_rep_obj_ids) |
| Get activation for repository objects. More... | |
Protected Attributes | |
| $db | |
| $settings | |
| $access | |
| ilNote::__construct | ( | $a_id = 0 | ) |
constructor
Definition at line 45 of file class.ilNote.php.
References $DIC, read(), and settings().
Here is the call graph for this function:
|
static |
Get all notes related to a specific object.
| array | $a_rep_obj_ids | repository object IDs array |
| int | $a_sub_obj_id | sub objects (if null, all comments are counted) |
Definition at line 684 of file class.ilNote.php.
References $DIC, $ilDB, $ilUser, IL_NOTE_PRIVATE, and IL_NOTE_PUBLIC.
Referenced by ilObjectListGUI\getHeaderAction(), and ilPollBlockGUI\getNumberOfComments().
Here is the caller graph for this function:
|
static |
Get all notes related to multiple objcts.
| array | $a_rep_obj_ids | repository object IDs array |
| boolean | $a_no_sub_objs | include subobjects true/false |
Definition at line 650 of file class.ilNote.php.
References $DIC, $ilDB, $ilUser, IL_NOTE_PRIVATE, and IL_NOTE_PUBLIC.
Referenced by ilObjectListGUI\preloadCommonProperties().
Here is the caller graph for this function:
|
static |
get last notes of current user
Definition at line 480 of file class.ilNote.php.
References $DIC, $ilDB, $ilUser, and IL_NOTE_PRIVATE.
Referenced by ilPDNotesBlockGUI\fillDataSection().
Here is the caller graph for this function:
|
static |
get all notes related to a specific object
Definition at line 420 of file class.ilNote.php.
References $a_type, $DIC, $ilDB, $ilUser, and IL_NOTE_PRIVATE.
Referenced by ilDclBaseRecordModel\getComments(), ilNoteGUI\getNoteListHTML(), ilDclBaseRecordModel\getStandardFieldPlainText(), and ilObjBlogGUI\renderList().
Here is the caller graph for this function:
|
static |
get all related objects for user
Definition at line 508 of file class.ilNote.php.
References $DIC, $ilDB, $ilUser, $r, $type, ilObject\_getAllReferences(), ilObjUser\_lookupDesktopItems(), ilObject\_lookupType(), commentsActivated(), IL_NOTE_PRIVATE, IL_NOTE_PUBLIC, and ilPDNotesGUI\PRIVATE_NOTES.
Referenced by ilPDNotesGUI\view().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
lookup creation date of note
Definition at line 386 of file class.ilNote.php.
Referenced by create().
Here is the caller graph for this function:
|
static |
lookup update date of note
Definition at line 403 of file class.ilNote.php.
Referenced by update().
Here is the caller graph for this function:
|
static |
Activate notes feature.
return
Definition at line 718 of file class.ilNote.php.
Referenced by ilNoteGUI\activateComments(), ilObjContentObject\createProperties(), ilNoteGUI\deactivateComments(), ilObjBlog\doCreate(), ilObjBlog\doUpdate(), ilObjPoll\doUpdate(), ilObjPortfolioBase\doUpdate(), ilLearningModuleDataSet\importRecord(), and ilObjContentObject\updateProperties().
Here is the caller graph for this function:
|
static |
Are comments activated for object?
return
Definition at line 764 of file class.ilNote.php.
Referenced by ilNoteGUI\__construct(), _getRelatedObjectsOfUser(), ilObjBlog\doRead(), ilObjPoll\doRead(), ilObjPortfolioBase\doRead(), ilNoteGUI\getNotesHTML(), ilBlogDataSet\getXmlRecord(), ilPollDataSet\getXmlRecord(), ilPortfolioDataSet\getXmlRecord(), ilObjectGUI\initHeaderAction(), ilObjectListGUI\isCommentsActivated(), ilLearningModuleDataSet\readData(), and ilObjContentObject\readProperties().
Here is the caller graph for this function:| ilNote::create | ( | $a_use_provided_creation_date = false | ) |
Definition at line 265 of file class.ilNote.php.
References $db, $ilDB, _lookupCreationDate(), getCreationDate(), getId(), ilUtil\now(), and sendNotifications().
Here is the call graph for this function:| ilNote::delete | ( | ) |
| ilNote::getAuthor | ( | ) |
get author
Definition at line 138 of file class.ilNote.php.
| ilNote::getCreationDate | ( | ) |
get creation date
Definition at line 198 of file class.ilNote.php.
Referenced by create().
Here is the caller graph for this function:| ilNote::getId | ( | ) |
| ilNote::getLabel | ( | ) |
get label
Definition at line 240 of file class.ilNote.php.
| ilNote::getObject | ( | ) |
Definition at line 95 of file class.ilNote.php.
Referenced by sendNotifications().
Here is the caller graph for this function:
|
static |
Get activation for repository objects.
return
Definition at line 789 of file class.ilNote.php.
Referenced by ilObjectListGUI\preloadCommonProperties().
Here is the caller graph for this function:| ilNote::getSubject | ( | ) |
get subject
Definition at line 178 of file class.ilNote.php.
| ilNote::getText | ( | ) |
get text
Definition at line 158 of file class.ilNote.php.
References $text.
Referenced by sendNotifications().
Here is the caller graph for this function:| ilNote::getType | ( | ) |
get type
Definition at line 118 of file class.ilNote.php.
References $type.
Referenced by sendNotifications().
Here is the caller graph for this function:| ilNote::getUpdateDate | ( | ) |
get update date
Definition at line 218 of file class.ilNote.php.
|
static |
How many users have attached a note/comment to a given object?
| int | $a_rep_obj_id | object id (as in object data) |
| int | $a_obj_id | (sub) object id |
| string | $a_type | (sub) object type |
Definition at line 628 of file class.ilNote.php.
References $a_type, $DIC, and $ilDB.
Referenced by ilBlogPostingGUI\deleteBlogPostingConfirmationScreen(), and ilWikiPageGUI\deleteWikiPageConfirmationScreen().
Here is the caller graph for this function:| ilNote::isInRepository | ( | ) |
belongs note to repository object?
Definition at line 260 of file class.ilNote.php.
| ilNote::read | ( | ) |
Definition at line 343 of file class.ilNote.php.
References $db, $ilDB, getId(), and setAllData().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNote::sendNotifications | ( | $a_changed = false | ) |
Send notifications.
Definition at line 812 of file class.ilNote.php.
References $access, $ilSetting, $message, $r, $settings, $title, $type, ilObject\_getAllReferences(), ilLanguageFactory\_getLanguageOfUser(), ilLink\_getLink(), ilLink\_getStaticLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupId(), ilObjUser\_lookupLogin(), ilObject\_lookupTitle(), ilUserUtil\getNamePresentation(), getObject(), getText(), getType(), IL_NOTE_PRIVATE, ilWikiPage\lookupTitle(), ilWikiUtil\makeUrlTitle(), and sprintf.
Referenced by create(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNote::setAllData | ( | $a_note_rec | ) |
set all note data by record array
Definition at line 369 of file class.ilNote.php.
References setAuthor(), setCreationDate(), setId(), setInRepository(), setLabel(), setObject(), setSubject(), setText(), setType(), and setUpdateDate().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNote::setAuthor | ( | $a_user_id | ) |
set author
| int | author user id |
Definition at line 128 of file class.ilNote.php.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::setCreationDate | ( | $a_date | ) |
set creation date
| string | creation date |
Definition at line 188 of file class.ilNote.php.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::setId | ( | $a_id | ) |
set id
| int | note id |
Definition at line 63 of file class.ilNote.php.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::setInRepository | ( | $a_value | ) |
set repository object status
| bool |
Definition at line 250 of file class.ilNote.php.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::setLabel | ( | $a_label | ) |
set label
| int | IL_NOTE_UNLABELED | IL_NOTE_IMPORTANT | IL_NOTE_QUESTION | IL_NOTE_PRO | IL_NOTE_CONTRA |
Definition at line 229 of file class.ilNote.php.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::setObject | ( | $a_obj_type, | |
| $a_rep_obj_id, | |||
$a_obj_id = 0 |
|||
| ) |
set assigned object
| $a_type | string type of the object (e.g st,pg,crs ...) |
| $a_rep_obj_id | int object id (NOT ref_id!) of repository object (e.g for page objects the obj_id of the learning module; for personal desktop this is set to 0) |
| $a_obj_id | int object id (e.g for page objects the obj_id of the page object) for, this is set to 0 for normal repository objects like forums ... |
Definition at line 88 of file class.ilNote.php.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::setSubject | ( | $a_subject | ) |
set subject
| string | text |
Definition at line 168 of file class.ilNote.php.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::setText | ( | $a_text | ) |
set text
| string | text |
Definition at line 148 of file class.ilNote.php.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::setType | ( | $a_type | ) |
set type
| int | IL_NOTE_PUBLIC | IL_NOTE_PRIVATE |
Definition at line 108 of file class.ilNote.php.
References $a_type.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::setUpdateDate | ( | $a_date | ) |
set update date
| string | update date |
Definition at line 208 of file class.ilNote.php.
Referenced by setAllData().
Here is the caller graph for this function:| ilNote::update | ( | ) |
Definition at line 307 of file class.ilNote.php.
References $db, $ilDB, _lookupUpdateDate(), getId(), ilUtil\now(), and sendNotifications().
Here is the call graph for this function:
|
protected |
Definition at line 39 of file class.ilNote.php.
Referenced by sendNotifications().
|
protected |
|
protected |
Definition at line 34 of file class.ilNote.php.
Referenced by sendNotifications().