|
ILIAS
release_8 Revision v8.24
|
Notes GUI class. More...
Collaboration diagram for ilNoteGUI:Public Member Functions | |
| __construct ( $a_rep_obj_id=0, int $a_obj_id=0, string $a_obj_type="", bool $a_include_subobjects=false, int $a_news_id=0, bool $ajax=true, string $search_text="") | |
| setShowEmptyListMessage (bool $a_val) | |
| getShowEmptyListMessage () | |
| setShowHeader (bool $a_val) | |
| getShowHeader () | |
| setUseObjectTitleHeader (bool $a_val) | |
| getUseObjectTitleHeader () | |
| setDefaultCommand (string $a_val) | |
| setHideNewForm (bool $a_val) | |
| getDefaultCommand () | |
| executeCommand () | |
| enablePrivateNotes (bool $a_enable=true) | |
| enablePublicNotes (bool $a_enable=true) | |
| enableCommentsSettings (bool $a_enable=true) | |
| enablePublicNotesDeletion (bool $a_enable=true) | |
| enableTargets (bool $a_enable=true) | |
| setRepositoryMode (bool $a_value) | |
| getNotesHTML () | |
| getCommentsHTML () | |
| getListHTML (bool $a_init_form=true) | |
| activateComments () | |
| deactivateComments () | |
| getNoteListHTML (int $a_type=Note::PRIVATE, bool $a_init_form=true) | |
| getTarget (Note $note) | |
| show related objects as links More... | |
| addNoteForm (bool $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 () | |
| editNoteForm (bool $a_init_form=true) | |
| get notes list including add note area More... | |
| renderContent (string $content) | |
| Render content into notes wrapper. More... | |
| cancelDelete () | |
| confirmDelete () | |
| exportNotesHTML () | |
| export selected notes to html More... | |
| getShyButton (string $a_var, string $a_txt, string $a_cmd, string $a_anchor="", int $note_id=0) | |
| getButton (string $a_var, string $a_txt, string $a_cmd, string $a_anchor="") | |
| addObserver (callable $a_callback) | |
| Add observer. More... | |
| getHTML () | |
| Get HTML. More... | |
| setExportMode () | |
Static Public Member Functions | |
| static | getListNotesJSCall (string $a_hash, string $a_update_code=null) |
| Get list notes js call. More... | |
| static | getListCommentsJSCall (string $a_hash, string $a_update_code=null) |
| Get list comments js call. More... | |
Data Fields | |
| bool | $public_deletion_enabled = false |
| bool | $repository_mode = false |
| bool | $old = false |
Protected Member Functions | |
| renderComponents (array $components) | |
| getNotes (int $a_type) | |
| getSortationControl () | |
| getItemGroupTitle (int $obj_id=0) | |
| getItemForNote (Note $note, bool $actions=true) | |
| getNoteTextPlaceholder (Note $note) | |
| getNoteText (Note $note) | |
| getSubObjectTitle (int $parent_obj_id, int $sub_obj_id) | |
| Get sub object title if available with callback. More... | |
| getNoteForm (string $mode, int $type, Note $note=null) | |
| deleteNote () | |
| listSortAsc () | |
| listSortDesc () | |
| getCommentsWidget () | |
| updateWidget () | |
| getOriginHeader () | |
Notes GUI class.
An instance of this class handles all notes (and their lists) of an object.
Definition at line 28 of file class.ilNoteGUI.php.
| ilNoteGUI::__construct | ( | $a_rep_obj_id = 0, |
|
| int | $a_obj_id = 0, |
||
| string | $a_obj_type = "", |
||
| bool | $a_include_subobjects = false, |
||
| int | $a_news_id = 0, |
||
| bool | $ajax = true, |
||
| string | $search_text = "" |
||
| ) |
| int | int[] | $a_rep_obj_id | object id of repository object (0 for personal desktop) |
| int | $a_obj_id | sub-object id (0 for repository items, user id for personal desktop) |
| string | $a_obj_type | "pd" for personal desktop |
| bool | $a_include_subobjects | include all subobjects of rep object (e.g. pages) |
| int | $a_news_id | |
| bool | $ajax |
| ilCtrlException |
Definition at line 100 of file class.ilNoteGUI.php.
References $ajax, $DIC, $search_text, ilObject\_lookupType(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilLoggerFactory\getLogger(), ILIAS\Repository\lng(), setRepositoryMode(), ILIAS\Repository\settings(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilNoteGUI::activateComments | ( | ) |
Definition at line 354 of file class.ilNoteGUI.php.
References $ctrl, and ilCtrl\redirectByClass().
Here is the call graph for this function:| ilNoteGUI::addNote | ( | ) |
add note
Definition at line 1001 of file class.ilNoteGUI.php.
References $context, $ilUser, and ILIAS\Repository\ctrl().
Here is the call graph for this function:| ilNoteGUI::addNoteForm | ( | bool | $a_init_form = true | ) |
get notes list including add note area
Definition at line 975 of file class.ilNoteGUI.php.
| ilNoteGUI::addObserver | ( | callable | $a_callback | ) |
Add observer.
Definition at line 1283 of file class.ilNoteGUI.php.
| ilNoteGUI::cancelAddNote | ( | ) |
cancel add note
Definition at line 985 of file class.ilNoteGUI.php.
| ilNoteGUI::cancelDelete | ( | ) |
Definition at line 1136 of file class.ilNoteGUI.php.
| ilNoteGUI::cancelUpdateNote | ( | ) |
cancel edit note
Definition at line 993 of file class.ilNoteGUI.php.
| ilNoteGUI::confirmDelete | ( | ) |
Definition at line 1141 of file class.ilNoteGUI.php.
References $id, ILIAS\Notes\Note\getId(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilNoteGUI::deactivateComments | ( | ) |
Definition at line 365 of file class.ilNoteGUI.php.
References $ctrl, and ilCtrl\redirectByClass().
Here is the call graph for this function:
|
protected |
Definition at line 1098 of file class.ilNoteGUI.php.
References Vendor\Package\$f, $panel, ILIAS\Notes\Note\getContext(), ILIAS\Repository\lng(), ilCtrl\setParameter(), ilDatePresentation\setUseRelativeDates(), ILIAS\Repository\ui(), and ilDatePresentation\useRelativeDates().
Here is the call graph for this function:| ilNoteGUI::editNoteForm | ( | bool | $a_init_form = true | ) |
get notes list including add note area
Definition at line 1061 of file class.ilNoteGUI.php.
| ilNoteGUI::enableCommentsSettings | ( | bool | $a_enable = true | ) |
Definition at line 244 of file class.ilNoteGUI.php.
| ilNoteGUI::enablePrivateNotes | ( | bool | $a_enable = true | ) |
Definition at line 234 of file class.ilNoteGUI.php.
| ilNoteGUI::enablePublicNotes | ( | bool | $a_enable = true | ) |
Definition at line 239 of file class.ilNoteGUI.php.
| ilNoteGUI::enablePublicNotesDeletion | ( | bool | $a_enable = true | ) |
Definition at line 249 of file class.ilNoteGUI.php.
| ilNoteGUI::enableTargets | ( | bool | $a_enable = true | ) |
Definition at line 255 of file class.ilNoteGUI.php.
| ilNoteGUI::executeCommand | ( | ) |
Definition at line 224 of file class.ilNoteGUI.php.
References ILIAS\Repository\ctrl(), and getDefaultCommand().
Here is the call graph for this function:| ilNoteGUI::exportNotesHTML | ( | ) |
export selected notes to html
Definition at line 1165 of file class.ilNoteGUI.php.
References $tpl, ILIAS\Notes\Note\getAuthor(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilNoteGUI::getButton | ( | string | $a_var, |
| string | $a_txt, | ||
| string | $a_cmd, | ||
| string | $a_anchor = "" |
||
| ) |
| ilCtrlException |
Definition at line 1252 of file class.ilNoteGUI.php.
References Vendor\Package\$f, $id, and ilCtrl\getLinkTargetByClass().
Here is the call graph for this function:| ilNoteGUI::getCommentsHTML | ( | ) |
Definition at line 273 of file class.ilNoteGUI.php.
References $ctrl, getListHTML(), and ilCtrl\setParameter().
Here is the call graph for this function:
|
protected |
Definition at line 1310 of file class.ilNoteGUI.php.
References Vendor\Package\$b, $c, $context, Vendor\Package\$f, $id, $lng, $tpl, ilObject\_lookupType(), ilCommonActionDispatcherGUI\buildAjaxHash(), ilCtrl\getLinkTarget(), ilCtrl\isAsynch(), ilCtrl\setParameter(), ilCommonActionDispatcherGUI\TYPE_REPOSITORY, ILIAS\Repository\ui(), and ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode().
Here is the call graph for this function:| ilNoteGUI::getDefaultCommand | ( | ) |
Definition at line 219 of file class.ilNoteGUI.php.
References $default_command.
Referenced by executeCommand().
Here is the caller graph for this function:| ilNoteGUI::getHTML | ( | ) |
Get HTML.
Definition at line 1304 of file class.ilNoteGUI.php.
| ilCtrlException | |
| ilDateTimeException | |
| ilWACException |
Definition at line 722 of file class.ilNoteGUI.php.
References ILIAS\Notes\Note\getId(), ILIAS\Repository\lng(), and ilCtrl\setParameterByClass().
Here is the call graph for this function:
|
protected |
Definition at line 700 of file class.ilNoteGUI.php.
References ilObject\_lookupTitle(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
static |
Get list comments js call.
Definition at line 1203 of file class.ilNoteGUI.php.
Referenced by ilPollBlockGUI\commentJSCall(), ilObjectListGUI\determineProperties(), ilQuestionBrowserTableGUI\getCommentsAjaxLink(), ilDclRecordListTableGUI\getCommentsAjaxLink(), ilObjectListGUI\getHeaderAction(), ilDclBaseRecordModel\getStandardFieldHTML(), and ilObjectListGUI\insertCommonSocialCommands().
Here is the caller graph for this function:| ilNoteGUI::getListHTML | ( | bool | $a_init_form = true | ) |
Definition at line 284 of file class.ilNoteGUI.php.
References $ctrl, $ilSetting, $ilUser, $lng, $settings, $user, ANONYMOUS_USER_ID, getNoteListHTML(), getShyButton(), renderComponents(), renderContent(), and ilLanguage\txt().
Referenced by getCommentsHTML(), and getNotesHTML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get list notes js call.
Definition at line 1187 of file class.ilNoteGUI.php.
Referenced by ilObjectListGUI\determineProperties(), ilObjectListGUI\getHeaderAction(), and ilObjectListGUI\insertCommonSocialCommands().
Here is the caller graph for this function:
|
protected |
Definition at line 850 of file class.ilNoteGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:| ilNoteGUI::getNoteListHTML | ( | int | $a_type = Note::PRIVATE, |
| bool | $a_init_form = true |
||
| ) |
Definition at line 432 of file class.ilNoteGUI.php.
Referenced by getListHTML().
Here is the caller graph for this function:
|
protected |
Definition at line 379 of file class.ilNoteGUI.php.
References $ilUser, $inc_sub, $notes, $requested_note_id, $search_text, and $user.
| ilNoteGUI::getNotesHTML | ( | ) |
Definition at line 265 of file class.ilNoteGUI.php.
References $ctrl, getListHTML(), and ilCtrl\setParameter().
Here is the call graph for this function:
|
protected |
Definition at line 824 of file class.ilNoteGUI.php.
References ILIAS\Notes\Note\getText(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 819 of file class.ilNoteGUI.php.
References ILIAS\Notes\Note\getId().
Here is the call graph for this function:
|
protected |
Definition at line 1386 of file class.ilNoteGUI.php.
References $img, ilObject\_getIcon(), ilContainerReference\_lookupTitle(), ilObject\_lookupTitle(), ILIAS\Repository\ctrl(), and ilUtil\img().
Here is the call graph for this function:| ilNoteGUI::getShowEmptyListMessage | ( | ) |
Definition at line 183 of file class.ilNoteGUI.php.
References $show_empty_list_message.
| ilNoteGUI::getShowHeader | ( | ) |
| ilNoteGUI::getShyButton | ( | string | $a_var, |
| string | $a_txt, | ||
| string | $a_cmd, | ||
| string | $a_anchor = "", |
||
| int | $note_id = 0 |
||
| ) |
| ilCtrlException |
Definition at line 1219 of file class.ilNoteGUI.php.
References Vendor\Package\$f, $id, ilCtrl\getLinkTargetByClass(), and ilCtrl\setParameterByClass().
Referenced by getListHTML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilCtrlException |
Definition at line 660 of file class.ilNoteGUI.php.
References ILIAS\Repository\lng(), and ILIAS\Repository\ui().
Here is the call graph for this function:
|
protected |
Get sub object title if available with callback.
Definition at line 834 of file class.ilNoteGUI.php.
| ilNoteGUI::getTarget | ( | Note | $note | ) |
show related objects as links
Definition at line 884 of file class.ilNoteGUI.php.
References $context, $ilUser, $path, $ref_id, $type, ilObject\_getAllReferences(), ilLink\_getLink(), ilObject\_lookupOwner(), ilObject\_lookupOwnerName(), ilContainerReference\_lookupTargetId(), ilObject\_lookupTitle(), ilObject\_lookupType(), and ilWorkspaceAccessHandler\getGotoLink().
Here is the call graph for this function:| ilNoteGUI::getUseObjectTitleHeader | ( | ) |
Definition at line 204 of file class.ilNoteGUI.php.
References $use_obj_title_header.
|
protected |
Definition at line 1289 of file class.ilNoteGUI.php.
|
protected |
Definition at line 1295 of file class.ilNoteGUI.php.
|
protected |
Definition at line 346 of file class.ilNoteGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\ui().
Referenced by getListHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNoteGUI::renderContent | ( | string | $content | ) |
Render content into notes wrapper.
Definition at line 1072 of file class.ilNoteGUI.php.
References $lng, exit, and ilCtrl\isAsynch().
Referenced by getListHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNoteGUI::setDefaultCommand | ( | string | $a_val | ) |
Definition at line 209 of file class.ilNoteGUI.php.
| ilNoteGUI::setExportMode | ( | ) |
Definition at line 1372 of file class.ilNoteGUI.php.
| ilNoteGUI::setHideNewForm | ( | bool | $a_val | ) |
Definition at line 214 of file class.ilNoteGUI.php.
| ilNoteGUI::setRepositoryMode | ( | bool | $a_value | ) |
Definition at line 260 of file class.ilNoteGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilNoteGUI::setShowEmptyListMessage | ( | bool | $a_val | ) |
Definition at line 178 of file class.ilNoteGUI.php.
| ilNoteGUI::setShowHeader | ( | bool | $a_val | ) |
Definition at line 188 of file class.ilNoteGUI.php.
| ilNoteGUI::setUseObjectTitleHeader | ( | bool | $a_val | ) |
Definition at line 199 of file class.ilNoteGUI.php.
| ilNoteGUI::updateNote | ( | ) |
Definition at line 1037 of file class.ilNoteGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:
|
protected |
Definition at line 1380 of file class.ilNoteGUI.php.
References exit.
|
protected |
Definition at line 64 of file class.ilNoteGUI.php.
|
protected |
Definition at line 50 of file class.ilNoteGUI.php.
|
protected |
Definition at line 51 of file class.ilNoteGUI.php.
Referenced by __construct().
|
protected |
Definition at line 46 of file class.ilNoteGUI.php.
|
protected |
Definition at line 58 of file class.ilNoteGUI.php.
Referenced by activateComments(), deactivateComments(), getCommentsHTML(), getListHTML(), and getNotesHTML().
|
protected |
Definition at line 37 of file class.ilNoteGUI.php.
|
protected |
Definition at line 68 of file class.ilNoteGUI.php.
Referenced by getDefaultCommand().
|
protected |
Definition at line 84 of file class.ilNoteGUI.php.
|
protected |
Definition at line 49 of file class.ilNoteGUI.php.
|
protected |
Definition at line 76 of file class.ilNoteGUI.php.
|
protected |
Definition at line 44 of file class.ilNoteGUI.php.
|
protected |
Definition at line 79 of file class.ilNoteGUI.php.
|
protected |
Definition at line 34 of file class.ilNoteGUI.php.
|
protected |
Definition at line 72 of file class.ilNoteGUI.php.
|
protected |
Definition at line 52 of file class.ilNoteGUI.php.
Referenced by getNotes().
|
protected |
Definition at line 86 of file class.ilNoteGUI.php.
|
protected |
Definition at line 59 of file class.ilNoteGUI.php.
Referenced by getListHTML().
|
protected |
Definition at line 78 of file class.ilNoteGUI.php.
|
protected |
Definition at line 42 of file class.ilNoteGUI.php.
|
protected |
Definition at line 71 of file class.ilNoteGUI.php.
|
protected |
Definition at line 75 of file class.ilNoteGUI.php.
|
protected |
Definition at line 85 of file class.ilNoteGUI.php.
|
protected |
Definition at line 33 of file class.ilNoteGUI.php.
Referenced by getNotes().
|
protected |
Definition at line 36 of file class.ilNoteGUI.php.
|
protected |
Definition at line 62 of file class.ilNoteGUI.php.
|
protected |
Definition at line 53 of file class.ilNoteGUI.php.
|
protected |
Definition at line 47 of file class.ilNoteGUI.php.
|
protected |
Definition at line 69 of file class.ilNoteGUI.php.
| bool ilNoteGUI::$old = false |
Definition at line 67 of file class.ilNoteGUI.php.
|
protected |
Definition at line 73 of file class.ilNoteGUI.php.
|
protected |
Definition at line 45 of file class.ilNoteGUI.php.
|
protected |
Definition at line 48 of file class.ilNoteGUI.php.
| bool ilNoteGUI::$public_deletion_enabled = false |
Definition at line 65 of file class.ilNoteGUI.php.
|
protected |
Definition at line 40 of file class.ilNoteGUI.php.
|
protected |
Definition at line 57 of file class.ilNoteGUI.php.
| bool ilNoteGUI::$repository_mode = false |
Definition at line 66 of file class.ilNoteGUI.php.
|
protected |
Definition at line 41 of file class.ilNoteGUI.php.
|
protected |
Definition at line 83 of file class.ilNoteGUI.php.
|
protected |
Definition at line 81 of file class.ilNoteGUI.php.
Referenced by getNotes().
|
protected |
Definition at line 82 of file class.ilNoteGUI.php.
|
protected |
Definition at line 80 of file class.ilNoteGUI.php.
|
protected |
Definition at line 35 of file class.ilNoteGUI.php.
Referenced by __construct(), and getNotes().
|
protected |
Definition at line 61 of file class.ilNoteGUI.php.
Referenced by getListHTML().
|
protected |
Definition at line 88 of file class.ilNoteGUI.php.
Referenced by getShowEmptyListMessage().
|
protected |
Definition at line 89 of file class.ilNoteGUI.php.
Referenced by getShowHeader().
|
protected |
Definition at line 43 of file class.ilNoteGUI.php.
|
protected |
Definition at line 63 of file class.ilNoteGUI.php.
|
protected |
Definition at line 70 of file class.ilNoteGUI.php.
|
protected |
Definition at line 87 of file class.ilNoteGUI.php.
Referenced by getUseObjectTitleHeader().
|
protected |
Definition at line 60 of file class.ilNoteGUI.php.
Referenced by getListHTML(), and getNotes().
|
protected |
Definition at line 77 of file class.ilNoteGUI.php.
|
protected |
Definition at line 74 of file class.ilNoteGUI.php.
|
protected |
Definition at line 38 of file class.ilNoteGUI.php.
|
protected |
Definition at line 39 of file class.ilNoteGUI.php.