ILIAS
eassessment Revision 61809
|
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 | |
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 |
Data Fields | |
$public_deletion_enabled = false |
Notes GUI class.
An instance of this class handles all notes (and their lists) of an object.
Definition at line 36 of file class.ilNoteGUI.php.
ilNoteGUI::activateComments | ( | ) |
ilNoteGUI::addNote | ( | ) |
add note
Definition at line 1086 of file class.ilNoteGUI.php.
References $_GET, $_POST, $ilCtrl, $lng, addNoteForm(), and initNoteForm().
ilNoteGUI::addNoteForm | ( | $a_init_form = true | ) |
get notes list including add note area
Definition at line 1054 of file class.ilNoteGUI.php.
References $_GET, getNotesHTML(), and IL_NOTE_PRIVATE.
Referenced by addNote().
ilNoteGUI::cancelAddNote | ( | ) |
cancel add note
Definition at line 1070 of file class.ilNoteGUI.php.
References getNotesHTML().
ilNoteGUI::cancelDelete | ( | ) |
cancel deletion of note
Definition at line 1185 of file class.ilNoteGUI.php.
References getNotesHTML().
ilNoteGUI::cancelUpdateNote | ( | ) |
cancel edit note
Definition at line 1078 of file class.ilNoteGUI.php.
References getNotesHTML().
ilNoteGUI::checkDeletion | ( | $a_note | ) |
Check whether deletion is allowed.
Definition at line 760 of file class.ilNoteGUI.php.
References $public_deletion_enabled, IL_NOTE_PRIVATE, and IL_NOTE_PUBLIC.
Referenced by confirmDelete(), and getNoteListHTML().
ilNoteGUI::checkEdit | ( | $a_note | ) |
Check edit.
Definition at line 784 of file class.ilNoteGUI.php.
Referenced by getNoteListHTML(), and updateNote().
ilNoteGUI::confirmDelete | ( | ) |
cancel deletion of note
Definition at line 1193 of file class.ilNoteGUI.php.
References $_POST, $ilCtrl, $lng, and checkDeletion().
ilNoteGUI::deactivateComments | ( | ) |
ilNoteGUI::deleteNote | ( | ) |
delete note confirmation
Definition at line 1155 of file class.ilNoteGUI.php.
References getNotesHTML().
ilNoteGUI::deleteNotes | ( | ) |
delete notes confirmation
Definition at line 1165 of file class.ilNoteGUI.php.
References $_POST, $lng, and getNotesHTML().
ilNoteGUI::editNoteForm | ( | $a_init_form = true | ) |
get notes list including add note area
Definition at line 1145 of file class.ilNoteGUI.php.
References getNotesHTML().
Referenced by updateNote().
ilNoteGUI::enableAnchorJump | ( | $a_enable = true | ) |
enable anchor for form jump
Definition at line 195 of file class.ilNoteGUI.php.
ilNoteGUI::enableCommentsSettings | ( | $a_enable = true | ) |
enable private notes
Definition at line 155 of file class.ilNoteGUI.php.
ilNoteGUI::enableHiding | ( | $a_enable = true | ) |
enable hiding
Definition at line 171 of file class.ilNoteGUI.php.
ilNoteGUI::enableMultiSelection | ( | $a_enable = true | ) |
enable multi selection (checkboxes and commands)
Definition at line 187 of file class.ilNoteGUI.php.
ilNoteGUI::enablePrivateNotes | ( | $a_enable = true | ) |
enable private notes
Definition at line 139 of file class.ilNoteGUI.php.
Referenced by ilPageObjectGUI\getNotesHTML(), and ilPDNotesGUI\view().
ilNoteGUI::enablePublicNotes | ( | $a_enable = true | ) |
enable public notes
Definition at line 147 of file class.ilNoteGUI.php.
ilNoteGUI::enablePublicNotesDeletion | ( | $a_enable = true | ) |
enable public notes
Definition at line 163 of file class.ilNoteGUI.php.
Referenced by ilLMPresentationGUI\ilLMNotes().
ilNoteGUI::enableTargets | ( | $a_enable = true | ) |
enable target objects
Definition at line 179 of file class.ilNoteGUI.php.
& ilNoteGUI::executeCommand | ( | ) |
ilNoteGUI::exportNotesHTML | ( | ) |
export selected notes to html
Definition at line 1221 of file class.ilNoteGUI.php.
References $tpl, ilUtil\deliverData(), and getNotesHTML().
ilNoteGUI::getNoteListHTML | ( | $a_type = IL_NOTE_PRIVATE , |
|
$a_init_form = true |
|||
) |
get notes/comments list as html code
Definition at line 368 of file class.ilNoteGUI.php.
References $_GET, $_POST, $ilCtrl, $lng, $public_deletion_enabled, $tpl, ilObject\_exists(), ilNote\_getNotesOfObject(), ilObjUser\_getPersonalPicturePath(), ilObjUser\_lookupLogin(), checkDeletion(), checkEdit(), ilDatePresentation\formatDate(), ilUtil\getImagePath(), IL_CAL_DATETIME, IL_NOTE_CONTRA, IL_NOTE_IMPORTANT, IL_NOTE_PRIVATE, IL_NOTE_PRO, IL_NOTE_PUBLIC, IL_NOTE_QUESTION, IL_NOTE_UNLABELED, initNoteForm(), and showTargets().
Referenced by getNotesHTML().
ilNoteGUI::getNotesHTML | ( | $a_init_form = true | ) |
Definition at line 203 of file class.ilNoteGUI.php.
References $_GET, $ilCtrl, $lng, getNoteListHTML(), IL_NOTE_PRIVATE, and IL_NOTE_PUBLIC.
Referenced by addNoteForm(), cancelAddNote(), cancelDelete(), cancelUpdateNote(), deleteNote(), deleteNotes(), editNoteForm(), exportNotesHTML(), hideNotes(), printNotes(), showAllPublicNotes(), showMyPublicNotes(), and showNotes().
ilNoteGUI::getPDNoteHTML | ( | $note_id | ) |
Note display for personal desktop.
Definition at line 885 of file class.ilNoteGUI.php.
References $ilCtrl, $img, $lng, $tpl, ilDatePresentation\formatDate(), ilUtil\getImagePath(), IL_CAL_DATETIME, and showTargets().
ilNoteGUI::hideNotes | ( | ) |
hide notes
Definition at line 1262 of file class.ilNoteGUI.php.
References $_GET, getNotesHTML(), and IL_NOTE_PRIVATE.
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 48 of file class.ilNoteGUI.php.
References $ilCtrl, $lng, ilUtil\getImagePath(), IL_NOTE_CONTRA, IL_NOTE_IMPORTANT, IL_NOTE_PRO, IL_NOTE_QUESTION, and IL_NOTE_UNLABELED.
ilNoteGUI::initNoteForm | ( | $a_mode = "edit" , |
|
$a_type, | |||
$a_note = null |
|||
) |
Init note form.
int | $a_mode | Edit Mode |
Definition at line 802 of file class.ilNoteGUI.php.
References $_GET, $ilCtrl, $lng, IL_NOTE_CONTRA, IL_NOTE_IMPORTANT, IL_NOTE_PRO, IL_NOTE_PUBLIC, IL_NOTE_QUESTION, IL_NOTE_UNLABELED, ilTextAreaInputGUI\setCols(), ilSelectInputGUI\setOptions(), and ilFormPropertyGUI\setRequired().
Referenced by addNote(), getNoteListHTML(), and updateNote().
ilNoteGUI::printNotes | ( | ) |
notes print view screen
Definition at line 1234 of file class.ilNoteGUI.php.
References $tpl, exit, and getNotesHTML().
ilNoteGUI::showAllPublicNotes | ( | ) |
show all public notes to user
Definition at line 1277 of file class.ilNoteGUI.php.
References getNotesHTML().
ilNoteGUI::showMyPublicNotes | ( | ) |
show only public notes of user
Definition at line 1289 of file class.ilNoteGUI.php.
References getNotesHTML().
ilNoteGUI::showNotes | ( | ) |
show notes
Definition at line 1247 of file class.ilNoteGUI.php.
References $_GET, getNotesHTML(), and IL_NOTE_PRIVATE.
ilNoteGUI::showTargets | ( | & | $tpl, |
$a_rep_obj_id, | |||
$a_note_id, | |||
$a_obj_type, | |||
$a_obj_id | |||
) |
show related objects as links
Definition at line 939 of file class.ilNoteGUI.php.
References $location, $ref_id, $title, $tpl, $type, ilObject\_getAllReferences(), ilObject\_getIcon(), ilObject\_lookupObjId(), ilSCORM2004Node\_lookupTitle(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilUtil\appendUrlParameterString(), and ilUtil\getImagePath().
Referenced by getNoteListHTML(), and getPDNoteHTML().
ilNoteGUI::updateNote | ( | ) |
update note
Definition at line 1114 of file class.ilNoteGUI.php.
References $_GET, $_POST, $ilCtrl, $lng, checkEdit(), editNoteForm(), initNoteForm(), and ilUtil\stripSlashes().
ilNoteGUI::$public_deletion_enabled = false |
Definition at line 38 of file class.ilNoteGUI.php.
Referenced by checkDeletion(), and getNoteListHTML().