ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Note class. More...
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, $a_news_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... | |
setNewsId ($a_val) | |
Set news id. More... | |
getNewsId () | |
Get news id. 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, $a_news_id=0) |
get all notes related to a specific object More... | |
static | _getAllNotesOfSingleRepObject ( $a_rep_obj_id, $a_type=IL_NOTE_PRIVATE, $a_incl_sub=false, $a_sort_ascending=false, $a_since="") |
get all notes related to a single repository 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, $a_obj_type="", $a_news_id=0) |
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, $a_news_id=0) |
Are comments activated for object? More... | |
static | getRepObjActivation ($a_rep_obj_ids) |
Get activation for repository objects. More... | |
Protected Attributes | |
$db | |
$settings | |
$access | |
$rep_obj_id = 0 | |
$obj_id | |
$obj_type | |
$news_id | |
ilNote::__construct | ( | $a_id = 0 | ) |
constructor
Definition at line 74 of file class.ilNote.php.
References $DIC, read(), and settings().
|
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 761 of file class.ilNote.php.
References $DIC, $ilDB, $ilUser, IL_NOTE_PRIVATE, and IL_NOTE_PUBLIC.
Referenced by ilNoteGUI\getCommentsWidget(), ilObjectListGUI\getHeaderAction(), and ilPollBlockGUI\getNumberOfComments().
|
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 727 of file class.ilNote.php.
References $DIC, $ilDB, $ilUser, IL_NOTE_PRIVATE, and IL_NOTE_PUBLIC.
Referenced by ilObjectListGUI\preloadCommonProperties().
|
static |
get all notes related to a single repository object
Definition at line 517 of file class.ilNote.php.
References $a_type, $DIC, and $ilDB.
Referenced by ilMembershipCronNotificationsData\load().
|
static |
get last notes of current user
Definition at line 557 of file class.ilNote.php.
References $DIC, $ilDB, $ilUser, and IL_NOTE_PRIVATE.
Referenced by ilPDNotesBlockGUI\fillDataSection().
|
static |
get all notes related to a specific object
Definition at line 453 of file class.ilNote.php.
References $a_type, $DIC, $ilDB, $ilUser, and IL_NOTE_PRIVATE.
Referenced by ilDclBaseRecordModel\getComments(), ilNoteGUI\getNoteListHTML(), ilDclBaseRecordModel\getStandardFieldPlainText(), ilObjBlogGUI\renderList(), and ilQuestionBrowserTableGUI\setQuestionData().
|
static |
get all related objects for user
Definition at line 585 of file class.ilNote.php.
References $DIC, $ilDB, $ilUser, $r, $tree, $type, ilObject\_getAllReferences(), ilObjUser\_lookupDesktopItems(), ilObject\_lookupType(), commentsActivated(), IL_NOTE_PRIVATE, IL_NOTE_PUBLIC, ilWorkspaceTree\lookupNodeId(), and ilPDNotesGUI\PRIVATE_NOTES.
Referenced by ilPDNotesGUI\view().
|
static |
lookup creation date of note
Definition at line 419 of file class.ilNote.php.
Referenced by create().
|
static |
lookup update date of note
Definition at line 436 of file class.ilNote.php.
Referenced by update().
|
static |
Activate notes feature.
Definition at line 802 of file class.ilNote.php.
Referenced by ilNoteGUI\activateComments(), ilObjContentObject\createProperties(), ilNoteGUI\deactivateComments(), ilObjBlog\doCreate(), ilObjBlog\doUpdate(), ilObjPortfolioBase\doUpdate(), ilObjPoll\doUpdate(), ilLearningModuleDataSet\importRecord(), and ilObjContentObject\updateProperties().
|
static |
Are comments activated for object?
Definition at line 848 of file class.ilNote.php.
Referenced by ilNoteGUI\__construct(), _getRelatedObjectsOfUser(), ilObjBlog\doRead(), ilObjPortfolioBase\doRead(), ilObjPoll\doRead(), ilNoteGUI\getNotesHTML(), ilPortfolioDataSet\getXmlRecord(), ilPollDataSet\getXmlRecord(), ilBlogDataSet\getXmlRecord(), ilObjectGUI\initHeaderAction(), ilObjectListGUI\isCommentsActivated(), ilLearningModuleDataSet\readData(), and ilObjContentObject\readProperties().
ilNote::create | ( | $a_use_provided_creation_date = false | ) |
Definition at line 316 of file class.ilNote.php.
References $db, $ilDB, _lookupCreationDate(), getCreationDate(), getId(), ilUtil\now(), and sendNotifications().
ilNote::delete | ( | ) |
delete note
Definition at line 385 of file class.ilNote.php.
References $db, $ilDB, and getId().
ilNote::getAuthor | ( | ) |
get author
Definition at line 169 of file class.ilNote.php.
Referenced by sendNotifications().
ilNote::getCreationDate | ( | ) |
get creation date
Definition at line 229 of file class.ilNote.php.
Referenced by create().
ilNote::getId | ( | ) |
ilNote::getLabel | ( | ) |
get label
Definition at line 271 of file class.ilNote.php.
ilNote::getNewsId | ( | ) |
Get news id.
Definition at line 291 of file class.ilNote.php.
References $news_id.
ilNote::getObject | ( | ) |
Definition at line 123 of file class.ilNote.php.
Referenced by sendNotifications().
|
static |
Get activation for repository objects.
Definition at line 877 of file class.ilNote.php.
Referenced by ilObjectListGUI\preloadCommonProperties().
ilNote::getSubject | ( | ) |
ilNote::getText | ( | ) |
get text
Definition at line 189 of file class.ilNote.php.
References $text.
Referenced by sendNotifications().
ilNote::getType | ( | ) |
get type
Definition at line 149 of file class.ilNote.php.
References $type.
Referenced by sendNotifications().
ilNote::getUpdateDate | ( | ) |
|
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 705 of file class.ilNote.php.
References $a_type, $DIC, and $ilDB.
Referenced by ilBlogPostingGUI\deleteBlogPostingConfirmationScreen(), and ilWikiPageGUI\deleteWikiPageConfirmationScreen().
ilNote::isInRepository | ( | ) |
ilNote::read | ( | ) |
Definition at line 371 of file class.ilNote.php.
References $db, $ilDB, getId(), and setAllData().
Referenced by __construct().
ilNote::sendNotifications | ( | $a_changed = false | ) |
Send notifications.
Definition at line 900 of file class.ilNote.php.
References $access, $ilSetting, $login, $message, $r, $rep_obj_id, $settings, $title, $type, ilObject\_getAllReferences(), ilLanguageFactory\_getLanguageOfUser(), ilLink\_getLink(), ilLink\_getStaticLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupId(), ilObjUser\_lookupLogin(), ilObject\_lookupTitle(), getAuthor(), ilUserUtil\getNamePresentation(), getObject(), getText(), getType(), IL_NOTE_PRIVATE, ilWikiPage\lookupTitle(), and ilWikiUtil\makeUrlTitle().
Referenced by create(), and update().
ilNote::setAllData | ( | $a_note_rec | ) |
set all note data by record array
Definition at line 397 of file class.ilNote.php.
References setAuthor(), setCreationDate(), setId(), setInRepository(), setLabel(), setObject(), setSubject(), setText(), setType(), and setUpdateDate().
Referenced by read().
ilNote::setAuthor | ( | $a_user_id | ) |
set author
int | author user id |
Definition at line 159 of file class.ilNote.php.
Referenced by setAllData().
ilNote::setCreationDate | ( | $a_date | ) |
set creation date
string | creation date |
Definition at line 219 of file class.ilNote.php.
Referenced by setAllData().
ilNote::setId | ( | $a_id | ) |
set id
int | note id |
Definition at line 92 of file class.ilNote.php.
Referenced by setAllData().
ilNote::setInRepository | ( | $a_value | ) |
set repository object status
bool |
Definition at line 301 of file class.ilNote.php.
Referenced by setAllData().
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 260 of file class.ilNote.php.
Referenced by setAllData().
ilNote::setNewsId | ( | $a_val | ) |
ilNote::setObject | ( | $a_obj_type, | |
$a_rep_obj_id, | |||
$a_obj_id = 0 , |
|||
$a_news_id = 0 |
|||
) |
set assigned object
string | $a_obj_type | |
int | $a_rep_obj_id | |
int | $a_obj_id | |
int | $a_news_id |
Definition at line 115 of file class.ilNote.php.
Referenced by setAllData().
ilNote::setSubject | ( | $a_subject | ) |
set subject
string | text |
Definition at line 199 of file class.ilNote.php.
Referenced by setAllData().
ilNote::setText | ( | $a_text | ) |
set text
string | text |
Definition at line 179 of file class.ilNote.php.
Referenced by setAllData().
ilNote::setType | ( | $a_type | ) |
set type
int | IL_NOTE_PUBLIC | IL_NOTE_PRIVATE |
Definition at line 139 of file class.ilNote.php.
References $a_type.
Referenced by setAllData().
ilNote::setUpdateDate | ( | $a_date | ) |
set update date
string | update date |
Definition at line 239 of file class.ilNote.php.
Referenced by setAllData().
ilNote::update | ( | ) |
Definition at line 346 of file class.ilNote.php.
References $db, $ilDB, _lookupUpdateDate(), getId(), ilUtil\now(), and sendNotifications().
|
protected |
Definition at line 40 of file class.ilNote.php.
Referenced by sendNotifications().
|
protected |
|
protected |
Definition at line 68 of file class.ilNote.php.
Referenced by getNewsId().
|
protected |
Definition at line 56 of file class.ilNote.php.
|
protected |
Definition at line 63 of file class.ilNote.php.
|
protected |
Definition at line 48 of file class.ilNote.php.
Referenced by sendNotifications().
|
protected |
Definition at line 35 of file class.ilNote.php.
Referenced by sendNotifications().