| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Notes GUI class. More...
 Collaboration diagram for ilNoteGUI:
 Collaboration diagram for ilNoteGUI:| Public Member Functions | |
| ilNoteGUI ($a_rep_obj_id="", $a_obj_id="", $a_obj_type="", $a_include_subobjects=false) | |
| constructor, specifies notes set | |
| & | executeCommand () | 
| execute command | |
| enablePrivateNotes ($a_enable=true) | |
| enable private notes | |
| enablePublicNotes ($a_enable=true) | |
| enable public notes | |
| enableCommentsSettings ($a_enable=true) | |
| enable private notes | |
| enablePublicNotesDeletion ($a_enable=true) | |
| enable public notes | |
| enableHiding ($a_enable=true) | |
| enable hiding | |
| enableTargets ($a_enable=true) | |
| enable target objects | |
| enableMultiSelection ($a_enable=true) | |
| enable multi selection (checkboxes and commands) | |
| enableAnchorJump ($a_enable=true) | |
| enable anchor for form jump | |
| setRepositoryMode ($a_value) | |
| Set repository mode. | |
| getOnlyNotesHTML () | |
| Get only notes html. | |
| getOnlyCommentsHTML () | |
| Get only comments html. | |
| getNotesHTML ($a_init_form=true) | |
| activateComments () | |
| Activate Comments. | |
| deactivateComments () | |
| Deactivate Comments. | |
| getNoteListHTML ($a_type=IL_NOTE_PRIVATE, $a_init_form=true) | |
| get notes/comments list as html code | |
| checkDeletion ($a_note) | |
| Check whether deletion is allowed. | |
| checkEdit ($a_note) | |
| Check edit. | |
| initNoteForm ($a_mode="edit", $a_type, $a_note=null) | |
| Init note form. | |
| getPDNoteHTML ($note_id) | |
| Note display for personal desktop. | |
| showTargets (&$tpl, $a_rep_obj_id, $a_note_id, $a_obj_type, $a_obj_id) | |
| show related objects as links | |
| addNoteForm ($a_init_form=true) | |
| get notes list including add note area | |
| cancelAddNote () | |
| cancel add note | |
| cancelUpdateNote () | |
| cancel edit note | |
| addNote () | |
| add note | |
| updateNote () | |
| update note | |
| editNoteForm ($a_init_form=true) | |
| get notes list including add note area | |
| deleteNote () | |
| delete note confirmation | |
| deleteNotes () | |
| delete notes confirmation | |
| cancelDelete () | |
| cancel deletion of note | |
| confirmDelete () | |
| cancel deletion of note | |
| exportNotesHTML () | |
| export selected notes to html | |
| printNotes () | |
| notes print view screen | |
| showNotes () | |
| show notes | |
| hideNotes () | |
| hide notes | |
| showAllPublicNotes () | |
| show all public notes to user | |
| showMyPublicNotes () | |
| show only public notes of user | |
| initJavascript ($a_ajax_url) | |
| Init javascript. | |
| getListNotesJSCall ($a_hash, $a_update_code=null) | |
| Get list notes js call. | |
| getListCommentsJSCall ($a_hash, $a_update_code=null) | |
| Get list comments js call. | |
| renderLink ($a_tpl, $a_var, $a_txt, $a_cmd, $a_anchor="") | |
| Render a link. | |
| addObserver ($a_callback) | |
| Add observer. | |
| Data Fields | |
| $public_deletion_enabled = false | |
| $repository_mode = false | |
| Protected Member Functions | |
| getSubObjectTitle ($parent_obj_id, $sub_obj_id) | |
| Get sub object title if available with callback. | |
| notifyObserver ($a_action, $a_note) | |
| Notify observers on update/create. | |
| Static Protected Member Functions | |
| static | buildAjaxHash ($a_node_type, $a_node_id, $a_sub_id, $a_sub_type) | 
| Combine properties to hash. | |
Notes GUI class.
An instance of this class handles all notes (and their lists) of an object.
Definition at line 18 of file class.ilNoteGUI.php.
| ilNoteGUI::activateComments | ( | ) | 
Activate Comments.
Definition at line 355 of file class.ilNoteGUI.php.
References $ilCtrl.
Referenced by deactivateComments().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::addNote | ( | ) | 
add note
Definition at line 1338 of file class.ilNoteGUI.php.
References $_GET, $_POST, $ilCtrl, $ilUser, $lng, initNoteForm(), and notifyObserver().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::addNoteForm | ( | $a_init_form = true | ) | 
get notes list including add note area
Definition at line 1306 of file class.ilNoteGUI.php.
References $_GET, $ilUser, getNotesHTML(), and IL_NOTE_PRIVATE.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::addObserver | ( | $a_callback | ) | 
Add observer.
| string | array | $a_callback | 
Definition at line 1665 of file class.ilNoteGUI.php.
| 
 | staticprotected | 
Combine properties to hash.
| string | $a_node_type | |
| int | $a_node_id | |
| int | $a_sub_id | |
| string | $a_sub_type | 
Definition at line 1626 of file class.ilNoteGUI.php.
| ilNoteGUI::cancelAddNote | ( | ) | 
cancel add note
Definition at line 1322 of file class.ilNoteGUI.php.
References getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::cancelDelete | ( | ) | 
cancel deletion of note
Definition at line 1446 of file class.ilNoteGUI.php.
References getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::cancelUpdateNote | ( | ) | 
cancel edit note
Definition at line 1330 of file class.ilNoteGUI.php.
References getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::checkDeletion | ( | $a_note | ) | 
Check whether deletion is allowed.
Definition at line 894 of file class.ilNoteGUI.php.
References $ilUser, $public_deletion_enabled, IL_NOTE_PRIVATE, and IL_NOTE_PUBLIC.
Referenced by confirmDelete(), and getNoteListHTML().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::checkEdit | ( | $a_note | ) | 
Check edit.
Definition at line 918 of file class.ilNoteGUI.php.
References $ilUser.
Referenced by getNoteListHTML(), and updateNote().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::confirmDelete | ( | ) | 
cancel deletion of note
Definition at line 1454 of file class.ilNoteGUI.php.
References $_POST, $ilCtrl, $ilUser, $lng, and checkDeletion().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::deactivateComments | ( | ) | 
Deactivate Comments.
Definition at line 375 of file class.ilNoteGUI.php.
References $ilCtrl, and activateComments().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::deleteNote | ( | ) | 
delete note confirmation
Definition at line 1416 of file class.ilNoteGUI.php.
References getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::deleteNotes | ( | ) | 
delete notes confirmation
Definition at line 1426 of file class.ilNoteGUI.php.
References $_POST, $lng, and getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::editNoteForm | ( | $a_init_form = true | ) | 
get notes list including add note area
Definition at line 1406 of file class.ilNoteGUI.php.
References getNotesHTML().
Referenced by updateNote().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::enableAnchorJump | ( | $a_enable = true | ) | 
enable anchor for form jump
Definition at line 193 of file class.ilNoteGUI.php.
| ilNoteGUI::enableCommentsSettings | ( | $a_enable = true | ) | 
enable private notes
Definition at line 153 of file class.ilNoteGUI.php.
| ilNoteGUI::enableHiding | ( | $a_enable = true | ) | 
enable hiding
Definition at line 169 of file class.ilNoteGUI.php.
| ilNoteGUI::enableMultiSelection | ( | $a_enable = true | ) | 
enable multi selection (checkboxes and commands)
Definition at line 185 of file class.ilNoteGUI.php.
| ilNoteGUI::enablePrivateNotes | ( | $a_enable = true | ) | 
enable private notes
Definition at line 137 of file class.ilNoteGUI.php.
Referenced by ilPageObjectGUI\getNotesHTML(), and ilPDNotesGUI\view().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::enablePublicNotes | ( | $a_enable = true | ) | 
enable public notes
Definition at line 145 of file class.ilNoteGUI.php.
Referenced by ilInfoScreenGUI\showNotesSection().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::enablePublicNotesDeletion | ( | $a_enable = true | ) | 
enable public notes
Definition at line 161 of file class.ilNoteGUI.php.
Referenced by ilLMPresentationGUI\ilLMNotes().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::enableTargets | ( | $a_enable = true | ) | 
enable target objects
Definition at line 177 of file class.ilNoteGUI.php.
| & ilNoteGUI::executeCommand | ( | ) | 
| ilNoteGUI::exportNotesHTML | ( | ) | 
export selected notes to html
Definition at line 1482 of file class.ilNoteGUI.php.
References $tpl, ilUtil\deliverData(), and getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::getListCommentsJSCall | ( | $a_hash, | |
| $a_update_code = null | |||
| ) | 
Get list comments js call.
| string | $a_hash | |
| string | $a_update_code | 
Definition at line 1603 of file class.ilNoteGUI.php.
Referenced by ilObjectListGUI\getHeaderAction(), ilObjectListGUI\insertCommonSocialCommands(), and ilObjectListGUI\insertProperties().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::getListNotesJSCall | ( | $a_hash, | |
| $a_update_code = null | |||
| ) | 
Get list notes js call.
| string | $a_hash | |
| string | $a_update_code | 
Definition at line 1582 of file class.ilNoteGUI.php.
Referenced by ilObjectListGUI\getHeaderAction(), ilObjectListGUI\insertCommonSocialCommands(), and ilObjectListGUI\insertProperties().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::getNoteListHTML | ( | $a_type = IL_NOTE_PRIVATE, | |
| $a_init_form = true | |||
| ) | 
get notes/comments list as html code
Definition at line 395 of file class.ilNoteGUI.php.
References $_GET, $_POST, $ilCtrl, $ilUser, $img, $lng, $title, $tpl, ilObject\_exists(), ilObject\_getIcon(), ilNote\_getNotesOfObject(), ilObjUser\_getPersonalPicturePath(), ilObjUser\_lookupLogin(), ilContainerReference\_lookupTitle(), ilObject\_lookupTitle(), checkDeletion(), checkEdit(), ilDatePresentation\formatDate(), ilUtil\getImagePath(), ilUserUtil\getNamePresentation(), getSubObjectTitle(), IL_CAL_DATETIME, IL_NOTE_CONTRA, IL_NOTE_IMPORTANT, IL_NOTE_PRIVATE, IL_NOTE_PRO, IL_NOTE_PUBLIC, IL_NOTE_QUESTION, IL_NOTE_UNLABELED, ilUtil\img(), initNoteForm(), renderLink(), ilDatePresentation\setUseRelativeDates(), showTargets(), and ilDatePresentation\useRelativeDates().
Referenced by getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::getNotesHTML | ( | $a_init_form = true | ) | 
Definition at line 241 of file class.ilNoteGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, ilNote\commentsActivated(), exit, getNoteListHTML(), IL_NOTE_PRIVATE, IL_NOTE_PUBLIC, and renderLink().
Referenced by addNoteForm(), cancelAddNote(), cancelDelete(), cancelUpdateNote(), deleteNote(), deleteNotes(), editNoteForm(), exportNotesHTML(), getOnlyCommentsHTML(), getOnlyNotesHTML(), hideNotes(), printNotes(), showAllPublicNotes(), showMyPublicNotes(), and showNotes().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::getOnlyCommentsHTML | ( | ) | 
Get only comments html.
| @return | 
Definition at line 229 of file class.ilNoteGUI.php.
References $ilCtrl, and getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::getOnlyNotesHTML | ( | ) | 
Get only notes html.
| @return | 
Definition at line 215 of file class.ilNoteGUI.php.
References $ilCtrl, and getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::getPDNoteHTML | ( | $note_id | ) | 
Note display for personal desktop.
Definition at line 1043 of file class.ilNoteGUI.php.
References $ilCtrl, $ilUser, $img, $lng, $tpl, ilDatePresentation\formatDate(), ilUtil\getImagePath(), IL_CAL_DATETIME, and showTargets().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Get sub object title if available with callback.
| int | $parent_obj_id | |
| int | $sub_obj_id | 
Definition at line 877 of file class.ilNoteGUI.php.
References $ilCtrl, and ilObject\_lookupType().
Referenced by getNoteListHTML(), and showTargets().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::hideNotes | ( | ) | 
hide notes
Definition at line 1523 of file class.ilNoteGUI.php.
References $_GET, $ilUser, getNotesHTML(), and IL_NOTE_PRIVATE.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::ilNoteGUI | ( | $a_rep_obj_id = "", | |
| $a_obj_id = "", | |||
| $a_obj_type = "", | |||
| $a_include_subobjects = false | |||
| ) | 
constructor, specifies notes set
| $a_rep_obj_id | int object id of repository object (0 for personal desktop) | 
| $a_obj_id | int subobject id (0 for repository items, user id for personal desktop) | 
| $a_obj_type | string "pd" for personal desktop | 
| $a_include_subobjects | string include all subobjects of rep object (e.g. pages) | 
Definition at line 31 of file class.ilNoteGUI.php.
References $_GET, $ilCtrl, $lng, ilObject\_lookupType(), ilNote\commentsActivated(), ilUtil\getImagePath(), IL_NOTE_CONTRA, IL_NOTE_IMPORTANT, IL_NOTE_PRO, IL_NOTE_QUESTION, IL_NOTE_UNLABELED, and setRepositoryMode().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::initJavascript | ( | $a_ajax_url | ) | 
Init javascript.
Definition at line 1562 of file class.ilNoteGUI.php.
References $tpl, iljQueryUtil\initjQuery(), and ilYuiUtil\initPanel().
Referenced by ilObjectListGUI\prepareJsLinks().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::initNoteForm | ( | $a_mode = "edit", | |
| $a_type, | |||
| $a_note = null | |||
| ) | 
Init note form.
| int | $a_mode | Edit Mode | 
Definition at line 936 of file class.ilNoteGUI.php.
References $_GET, $ilCtrl, $lng, IL_NOTE_PUBLIC, and ilUtil\prepareFormOutput().
Referenced by addNote(), getNoteListHTML(), and updateNote().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Notify observers on update/create.
| string | $a_action | |
| ilNote | $a_note | 
Definition at line 1676 of file class.ilNoteGUI.php.
Referenced by addNote(), and updateNote().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::printNotes | ( | ) | 
notes print view screen
Definition at line 1495 of file class.ilNoteGUI.php.
References $tpl, exit, and getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::renderLink | ( | $a_tpl, | |
| $a_var, | |||
| $a_txt, | |||
| $a_cmd, | |||
| $a_anchor = "" | |||
| ) | 
Render a link.
Definition at line 1634 of file class.ilNoteGUI.php.
References $ilCtrl.
Referenced by getNoteListHTML(), and getNotesHTML().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::setRepositoryMode | ( | $a_value | ) | 
Set repository mode.
| bool | $a_value | 
Definition at line 203 of file class.ilNoteGUI.php.
Referenced by ilNoteGUI().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::showAllPublicNotes | ( | ) | 
show all public notes to user
Definition at line 1538 of file class.ilNoteGUI.php.
References $ilUser, and getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::showMyPublicNotes | ( | ) | 
show only public notes of user
Definition at line 1550 of file class.ilNoteGUI.php.
References $ilUser, and getNotesHTML().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::showNotes | ( | ) | 
show notes
Definition at line 1508 of file class.ilNoteGUI.php.
References $_GET, $ilUser, getNotesHTML(), and IL_NOTE_PRIVATE.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::showTargets | ( | & | $tpl, | 
| $a_rep_obj_id, | |||
| $a_note_id, | |||
| $a_obj_type, | |||
| $a_obj_id | |||
| ) | 
show related objects as links
Definition at line 1101 of file class.ilNoteGUI.php.
References $additional, $ilUser, $location, $path, $ref_id, $title, $tpl, ilObject\_getAllReferences(), ilObject\_getIcon(), ilObject\_lookupObjId(), ilObject\_lookupOwner(), ilContainerReference\_lookupTargetId(), ilSCORM2004Node\_lookupTitle(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilUtil\appendUrlParameterString(), ilWorkspaceAccessHandler\getGotoLink(), ilUtil\getImagePath(), and getSubObjectTitle().
Referenced by getNoteListHTML(), and getPDNoteHTML().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNoteGUI::updateNote | ( | ) | 
update note
Definition at line 1371 of file class.ilNoteGUI.php.
References $_GET, $_POST, $ilCtrl, $ilUser, $lng, checkEdit(), editNoteForm(), initNoteForm(), notifyObserver(), and ilUtil\stripSlashes().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNoteGUI::$public_deletion_enabled = false | 
Definition at line 20 of file class.ilNoteGUI.php.
Referenced by checkDeletion().
| ilNoteGUI::$repository_mode = false | 
Definition at line 21 of file class.ilNoteGUI.php.