|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Notes GUI class. More...
Collaboration diagram for ilNoteGUI:Public Member Functions | |
| __construct ($a_rep_obj_id="", $a_obj_id="", $a_obj_type="", $a_include_subobjects=false) | |
| constructor, specifies notes set More... | |
| executeCommand () | |
| execute command More... | |
| enablePrivateNotes ($a_enable=true) | |
| enable private notes More... | |
| enablePublicNotes ($a_enable=true) | |
| enable public notes More... | |
| enableCommentsSettings ($a_enable=true) | |
| enable private notes More... | |
| enablePublicNotesDeletion ($a_enable=true) | |
| enable public notes More... | |
| enableHiding ($a_enable=true) | |
| enable hiding More... | |
| enableTargets ($a_enable=true) | |
| enable target objects More... | |
| enableMultiSelection ($a_enable=true) | |
| enable multi selection (checkboxes and commands) More... | |
| enableAnchorJump ($a_enable=true) | |
| enable anchor for form jump More... | |
| setRepositoryMode ($a_value) | |
| Set repository mode. More... | |
| getOnlyNotesHTML () | |
| Get only notes html. More... | |
| getOnlyCommentsHTML () | |
| Get only comments html. More... | |
| getNotesHTML ($a_init_form=true) | |
| activateComments () | |
| Activate Comments. More... | |
| deactivateComments () | |
| Deactivate Comments. More... | |
| getNoteListHTML ($a_type=IL_NOTE_PRIVATE, $a_init_form=true) | |
| get notes/comments list as html code More... | |
| checkDeletion ($a_note) | |
| Check whether deletion is allowed. More... | |
| checkEdit ($a_note) | |
| Check edit. More... | |
| initNoteForm ($a_mode="edit", $a_type, $a_note=null) | |
| Init note form. More... | |
| getPDNoteHTML ($note_id) | |
| Note display for personal desktop. More... | |
| showTargets (&$tpl, $a_rep_obj_id, $a_note_id, $a_obj_type, $a_obj_id) | |
| show related objects as links More... | |
| addNoteForm ($a_init_form=true) | |
| get notes list including add note area More... | |
| cancelAddNote () | |
| cancel add note More... | |
| cancelUpdateNote () | |
| cancel edit note More... | |
| addNote () | |
| add note More... | |
| updateNote () | |
| update note More... | |
| editNoteForm ($a_init_form=true) | |
| get notes list including add note area More... | |
| deleteNote () | |
| delete note confirmation More... | |
| deleteNotes () | |
| delete notes confirmation More... | |
| cancelDelete () | |
| cancel deletion of note More... | |
| confirmDelete () | |
| cancel deletion of note More... | |
| exportNotesHTML () | |
| export selected notes to html More... | |
| printNotes () | |
| notes print view screen More... | |
| showNotes () | |
| show notes More... | |
| hideNotes () | |
| hide notes More... | |
| showAllPublicNotes () | |
| show all public notes to user More... | |
| showMyPublicNotes () | |
| show only public notes of user More... | |
| renderLink ($a_tpl, $a_var, $a_txt, $a_cmd, $a_anchor="") | |
| Render a link. More... | |
| addObserver ($a_callback) | |
| Add observer. More... | |
Static Public Member Functions | |
| static | initJavascript ($a_ajax_url, $a_type=IL_NOTE_PRIVATE, ilTemplate $a_main_tpl=null) |
| Init javascript. More... | |
| static | getListNotesJSCall ($a_hash, $a_update_code=null) |
| Get list notes js call. More... | |
| static | getListCommentsJSCall ($a_hash, $a_update_code=null) |
| Get list comments js call. More... | |
Data Fields | |
| $public_deletion_enabled = false | |
| $repository_mode = false | |
| $old = false | |
Protected Member Functions | |
| getSubObjectTitle ($parent_obj_id, $sub_obj_id) | |
| Get sub object title if available with callback. More... | |
| notifyObserver ($a_action, $a_note) | |
| Notify observers on update/create. More... | |
| listSortAsc () | |
| listSortDesc () | |
Static Protected Member Functions | |
| static | buildAjaxHash ($a_node_type, $a_node_id, $a_sub_id, $a_sub_type) |
| Combine properties to hash. More... | |
Protected Attributes | |
| $ctrl | |
| $lng | |
| $user | |
| $settings | |
| $obj_definition | |
| $tree | |
| $access | |
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::__construct | ( | $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 66 of file class.ilNoteGUI.php.
References $_GET, $DIC, $id, $ilCtrl, $lng, ilObject\_lookupType(), ilNote\commentsActivated(), ilUtil\getImagePath(), IL_NOTE_CONTRA, IL_NOTE_IMPORTANT, IL_NOTE_PRO, IL_NOTE_QUESTION, IL_NOTE_UNLABELED, print, setRepositoryMode(), settings(), and user().
Here is the call graph for this function:| ilNoteGUI::activateComments | ( | ) |
Activate Comments.
Definition at line 398 of file class.ilNoteGUI.php.
References $ctrl, $id, $ilCtrl, and ilNote\activateComments().
Here is the call graph for this function:| ilNoteGUI::addNote | ( | ) |
add note
Definition at line 1365 of file class.ilNoteGUI.php.
References $_GET, $_POST, $ctrl, $ilCtrl, $ilUser, $lng, $user, initNoteForm(), and notifyObserver().
Here is the call graph for this function:| ilNoteGUI::addNoteForm | ( | $a_init_form = true | ) |
get notes list including add note area
Definition at line 1333 of file class.ilNoteGUI.php.
References $_GET, $ilUser, $user, getNotesHTML(), and IL_NOTE_PRIVATE.
Here is the call graph for this function:| ilNoteGUI::addObserver | ( | $a_callback | ) |
Add observer.
| string | array | $a_callback |
Definition at line 1699 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 1661 of file class.ilNoteGUI.php.
| ilNoteGUI::cancelAddNote | ( | ) |
cancel add note
Definition at line 1349 of file class.ilNoteGUI.php.
References getNotesHTML().
Here is the call graph for this function:| ilNoteGUI::cancelDelete | ( | ) |
cancel deletion of note
Definition at line 1475 of file class.ilNoteGUI.php.
References getNotesHTML().
Here is the call graph for this function:| ilNoteGUI::cancelUpdateNote | ( | ) |
cancel edit note
Definition at line 1357 of file class.ilNoteGUI.php.
References getNotesHTML().
Here is the call graph for this function:| ilNoteGUI::checkDeletion | ( | $a_note | ) |
Check whether deletion is allowed.
Definition at line 938 of file class.ilNoteGUI.php.
References $ilSetting, $ilUser, $public_deletion_enabled, $settings, $user, IL_NOTE_PRIVATE, and IL_NOTE_PUBLIC.
Referenced by confirmDelete(), and getNoteListHTML().
Here is the caller graph for this function:| ilNoteGUI::checkEdit | ( | $a_note | ) |
Check edit.
Definition at line 967 of file class.ilNoteGUI.php.
References $ilUser, and $user.
Referenced by getNoteListHTML(), and updateNote().
Here is the caller graph for this function:| ilNoteGUI::confirmDelete | ( | ) |
cancel deletion of note
Definition at line 1483 of file class.ilNoteGUI.php.
References $_POST, $ctrl, $id, $ilCtrl, $ilUser, $lng, $user, and checkDeletion().
Here is the call graph for this function:| ilNoteGUI::deactivateComments | ( | ) |
Deactivate Comments.
Definition at line 417 of file class.ilNoteGUI.php.
References $ctrl, $id, $ilCtrl, and ilNote\activateComments().
Here is the call graph for this function:| ilNoteGUI::deleteNote | ( | ) |
delete note confirmation
Definition at line 1448 of file class.ilNoteGUI.php.
References getNotesHTML().
Here is the call graph for this function:| ilNoteGUI::deleteNotes | ( | ) |
delete notes confirmation
Definition at line 1458 of file class.ilNoteGUI.php.
References $_POST, $lng, and getNotesHTML().
Here is the call graph for this function:| ilNoteGUI::editNoteForm | ( | $a_init_form = true | ) |
get notes list including add note area
Definition at line 1438 of file class.ilNoteGUI.php.
References getNotesHTML().
Referenced by updateNote().
Here is the call 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 231 of file class.ilNoteGUI.php.
| ilNoteGUI::enableCommentsSettings | ( | $a_enable = true | ) |
enable private notes
Definition at line 191 of file class.ilNoteGUI.php.
| ilNoteGUI::enableHiding | ( | $a_enable = true | ) |
enable hiding
Definition at line 207 of file class.ilNoteGUI.php.
| ilNoteGUI::enableMultiSelection | ( | $a_enable = true | ) |
enable multi selection (checkboxes and commands)
Definition at line 223 of file class.ilNoteGUI.php.
| ilNoteGUI::enablePrivateNotes | ( | $a_enable = true | ) |
enable private notes
Definition at line 175 of file class.ilNoteGUI.php.
| ilNoteGUI::enablePublicNotes | ( | $a_enable = true | ) |
enable public notes
Definition at line 183 of file class.ilNoteGUI.php.
| ilNoteGUI::enablePublicNotesDeletion | ( | $a_enable = true | ) |
enable public notes
Definition at line 199 of file class.ilNoteGUI.php.
| ilNoteGUI::enableTargets | ( | $a_enable = true | ) |
enable target objects
Definition at line 215 of file class.ilNoteGUI.php.
| ilNoteGUI::executeCommand | ( | ) |
execute command
Definition at line 160 of file class.ilNoteGUI.php.
| ilNoteGUI::exportNotesHTML | ( | ) |
export selected notes to html
Definition at line 1508 of file class.ilNoteGUI.php.
References $tpl, ilUtil\deliverData(), and getNotesHTML().
Here is the call graph for this function:
|
static |
Get list comments js call.
| string | $a_hash | |
| string | $a_update_code |
Definition at line 1641 of file class.ilNoteGUI.php.
Referenced by ilDclRecordListTableGUI\getCommentsAjaxLink(), ilObjectListGUI\getHeaderAction(), ilDclBaseRecordModel\getStandardFieldHTML(), ilObjectListGUI\insertCommonSocialCommands(), and ilObjectListGUI\insertProperties().
Here is the caller graph for this function:
|
static |
Get list notes js call.
| string | $a_hash | |
| string | $a_update_code |
Definition at line 1623 of file class.ilNoteGUI.php.
Referenced by ilObjectListGUI\getHeaderAction(), ilObjectListGUI\insertCommonSocialCommands(), and ilObjectListGUI\insertProperties().
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 436 of file class.ilNoteGUI.php.
References $_GET, $_POST, $_SESSION, $a_type, $ctrl, $ilCtrl, $ilUser, $img, $lng, $mtype, $target, $text, $title, $tpl, $txt, $user, ilObject\_exists(), ilObject\_getIcon(), ilNote\_getNotesOfObject(), ilObjUser\_lookupLogin(), ilObject\_lookupTitle(), ilContainerReference\_lookupTitle(), checkDeletion(), checkEdit(), ilGlyphGUI\CLOSE, ilDatePresentation\formatDate(), ilGlyphGUI\get(), 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(), print, renderLink(), ilDatePresentation\setUseRelativeDates(), showTargets(), and ilDatePresentation\useRelativeDates().
Referenced by getNotesHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNoteGUI::getNotesHTML | ( | $a_init_form = true | ) |
Definition at line 279 of file class.ilNoteGUI.php.
References $_GET, $ctrl, $id, $ilCtrl, $ilSetting, $ilUser, $lng, $settings, $user, 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 caller graph for this function:| ilNoteGUI::getOnlyCommentsHTML | ( | ) |
Get only comments html.
return
Definition at line 267 of file class.ilNoteGUI.php.
References $ctrl, $ilCtrl, and getNotesHTML().
Here is the call graph for this function:| ilNoteGUI::getOnlyNotesHTML | ( | ) |
Get only notes html.
return
Definition at line 253 of file class.ilNoteGUI.php.
References $ctrl, $ilCtrl, and getNotesHTML().
Here is the call graph for this function:| ilNoteGUI::getPDNoteHTML | ( | $note_id | ) |
Note display for personal desktop.
Definition at line 1082 of file class.ilNoteGUI.php.
References $ctrl, $ilCtrl, $ilUser, $lng, $target, $text, $tpl, $user, ilDatePresentation\formatDate(), IL_CAL_DATETIME, and showTargets().
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 921 of file class.ilNoteGUI.php.
References $ctrl, $ilCtrl, $obj_definition, and ilObject\_lookupType().
Referenced by getNoteListHTML(), and showTargets().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNoteGUI::hideNotes | ( | ) |
hide notes
Definition at line 1550 of file class.ilNoteGUI.php.
References $_GET, $ilUser, $user, getNotesHTML(), and IL_NOTE_PRIVATE.
Here is the call graph for this function:
|
static |
Init javascript.
Definition at line 1589 of file class.ilNoteGUI.php.
References $DIC, $lng, $tpl, iljQueryUtil\initjQuery(), ilModalGUI\initJS(), and ilYuiUtil\initPanel().
Referenced by ilObjectListGUI\prepareJsLinks().
Here is the call 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 984 of file class.ilNoteGUI.php.
References $_GET, $a_type, $ctrl, $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 caller graph for this function:
|
protected |
Definition at line 1723 of file class.ilNoteGUI.php.
References $_SESSION.
|
protected |
Definition at line 1729 of file class.ilNoteGUI.php.
References $_SESSION.
|
protected |
Notify observers on update/create.
| string | $a_action | |
| ilNote | $a_note |
Definition at line 1710 of file class.ilNoteGUI.php.
Referenced by addNote(), and updateNote().
Here is the caller graph for this function:| ilNoteGUI::printNotes | ( | ) |
notes print view screen
Definition at line 1521 of file class.ilNoteGUI.php.
References $tpl, exit, getNotesHTML(), and print.
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 1669 of file class.ilNoteGUI.php.
References $ctrl, and $ilCtrl.
Referenced by getNoteListHTML(), and getNotesHTML().
Here is the caller graph for this function:| ilNoteGUI::setRepositoryMode | ( | $a_value | ) |
Set repository mode.
| bool | $a_value |
Definition at line 241 of file class.ilNoteGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilNoteGUI::showAllPublicNotes | ( | ) |
show all public notes to user
Definition at line 1565 of file class.ilNoteGUI.php.
References $ilUser, $user, and getNotesHTML().
Here is the call graph for this function:| ilNoteGUI::showMyPublicNotes | ( | ) |
show only public notes of user
Definition at line 1577 of file class.ilNoteGUI.php.
References $ilUser, $user, and getNotesHTML().
Here is the call graph for this function:| ilNoteGUI::showNotes | ( | ) |
show notes
Definition at line 1535 of file class.ilNoteGUI.php.
References $_GET, $ilUser, $user, getNotesHTML(), and IL_NOTE_PRIVATE.
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 1143 of file class.ilNoteGUI.php.
References $access, $additional, $ilUser, $location, $obj_definition, $path, $title, $tpl, $tree, $type, $user, ilObject\_getAllReferences(), ilObject\_getIcon(), ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupOwner(), ilObject\_lookupOwnerName(), ilContainerReference\_lookupTargetId(), ilObject\_lookupTitle(), ilSCORM2004Node\_lookupTitle(), ilObject\_lookupType(), ilUtil\appendUrlParameterString(), ilWorkspaceAccessHandler\getGotoLink(), ilUtil\getImagePath(), getSubObjectTitle(), and print.
Referenced by getNoteListHTML(), and getPDNoteHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNoteGUI::updateNote | ( | ) |
update note
Definition at line 1399 of file class.ilNoteGUI.php.
References $_GET, $_POST, $ctrl, $ilCtrl, $ilUser, $lng, $user, checkEdit(), editNoteForm(), initNoteForm(), notifyObserver(), and ilUtil\stripSlashes().
Here is the call graph for this function:
|
protected |
Definition at line 53 of file class.ilNoteGUI.php.
Referenced by showTargets().
|
protected |
Definition at line 23 of file class.ilNoteGUI.php.
Referenced by activateComments(), addNote(), confirmDelete(), deactivateComments(), getNoteListHTML(), getNotesHTML(), getOnlyCommentsHTML(), getOnlyNotesHTML(), getPDNoteHTML(), getSubObjectTitle(), initNoteForm(), renderLink(), and updateNote().
|
protected |
Definition at line 28 of file class.ilNoteGUI.php.
Referenced by __construct(), addNote(), confirmDelete(), deleteNotes(), getNoteListHTML(), getNotesHTML(), getPDNoteHTML(), initJavascript(), initNoteForm(), and updateNote().
|
protected |
Definition at line 43 of file class.ilNoteGUI.php.
Referenced by getSubObjectTitle(), and showTargets().
| ilNoteGUI::$old = false |
Definition at line 57 of file class.ilNoteGUI.php.
| ilNoteGUI::$public_deletion_enabled = false |
Definition at line 55 of file class.ilNoteGUI.php.
Referenced by checkDeletion().
| ilNoteGUI::$repository_mode = false |
Definition at line 56 of file class.ilNoteGUI.php.
|
protected |
Definition at line 38 of file class.ilNoteGUI.php.
Referenced by checkDeletion(), and getNotesHTML().
|
protected |
Definition at line 48 of file class.ilNoteGUI.php.
Referenced by showTargets().
|
protected |
Definition at line 33 of file class.ilNoteGUI.php.
Referenced by addNote(), addNoteForm(), checkDeletion(), checkEdit(), confirmDelete(), getNoteListHTML(), getNotesHTML(), getPDNoteHTML(), hideNotes(), showAllPublicNotes(), showMyPublicNotes(), showNotes(), showTargets(), and updateNote().