ILIAS
release_8 Revision v8.23
|
Notes GUI class. More...
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().
ilNoteGUI::activateComments | ( | ) |
Definition at line 354 of file class.ilNoteGUI.php.
References $ctrl, and ilCtrl\redirectByClass().
ilNoteGUI::addNote | ( | ) |
add note
Definition at line 1001 of file class.ilNoteGUI.php.
References $context, $ctrl, $ilUser, $requested_note_type, $user, ILIAS\Repository\ctrl(), and getNoteForm().
ilNoteGUI::addNoteForm | ( | bool | $a_init_form = true | ) |
get notes list including add note area
Definition at line 975 of file class.ilNoteGUI.php.
References getListHTML().
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.
References getListHTML().
ilNoteGUI::cancelDelete | ( | ) |
Definition at line 1136 of file class.ilNoteGUI.php.
References getListHTML().
ilNoteGUI::cancelUpdateNote | ( | ) |
cancel edit note
Definition at line 993 of file class.ilNoteGUI.php.
References getListHTML().
ilNoteGUI::confirmDelete | ( | ) |
Definition at line 1141 of file class.ilNoteGUI.php.
References $ctrl, $id, $public_deletion_enabled, ilCtrl\setParameter(), and ILIAS\Repository\user().
ilNoteGUI::deactivateComments | ( | ) |
Definition at line 365 of file class.ilNoteGUI.php.
References $ctrl, and ilCtrl\redirectByClass().
|
protected |
Definition at line 1098 of file class.ilNoteGUI.php.
References $ctrl, Vendor\Package\$f, $panel, getButton(), getItemForNote(), getItemGroupTitle(), getNoteText(), getNoteTextPlaceholder(), ILIAS\Repository\lng(), renderComponents(), renderContent(), ilCtrl\setParameter(), ilDatePresentation\setUseRelativeDates(), ILIAS\Repository\ui(), and ilDatePresentation\useRelativeDates().
ilNoteGUI::editNoteForm | ( | bool | $a_init_form = true | ) |
get notes list including add note area
Definition at line 1061 of file class.ilNoteGUI.php.
References getListHTML().
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.
Referenced by ilPDNotesGUI\view().
ilNoteGUI::enablePublicNotes | ( | bool | $a_enable = true | ) |
Definition at line 239 of file class.ilNoteGUI.php.
Referenced by ilAssQuestionPreviewGUI\executeCommand(), and assQuestionGUI\getNotesHTML().
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().
ilNoteGUI::exportNotesHTML | ( | ) |
export selected notes to html
Definition at line 1165 of file class.ilNoteGUI.php.
References $tpl, ILIAS\Notes\Note\getAuthor(), getListHTML(), getNotes(), and ILIAS\Repository\user().
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 $ctrl, Vendor\Package\$f, $id, ilCtrl\getLinkTargetByClass(), and ILIAS\Repository\ui().
Referenced by deleteNote().
ilNoteGUI::getCommentsHTML | ( | ) |
Definition at line 273 of file class.ilNoteGUI.php.
References $ctrl, getListHTML(), and ilCtrl\setParameter().
|
protected |
Definition at line 1310 of file class.ilNoteGUI.php.
References Vendor\Package\$b, $c, $context, $ctrl, Vendor\Package\$f, $id, $lng, $rep_obj_id, $tpl, ilObject\_lookupType(), ilCommonActionDispatcherGUI\buildAjaxHash(), ilCtrl\getLinkTarget(), getNoteListHTML(), ilCtrl\isAsynch(), ilCtrl\setParameter(), ilLanguage\txt(), ilCommonActionDispatcherGUI\TYPE_REPOSITORY, ILIAS\Repository\ui(), and ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode().
Referenced by getHTML(), and updateWidget().
ilNoteGUI::getDefaultCommand | ( | ) |
Definition at line 219 of file class.ilNoteGUI.php.
References $default_command.
Referenced by executeCommand().
ilNoteGUI::getHTML | ( | ) |
Get HTML.
Definition at line 1304 of file class.ilNoteGUI.php.
References getCommentsWidget().
|
protected |
ilCtrlException | |
ilDateTimeException | |
ilWACException |
Definition at line 722 of file class.ilNoteGUI.php.
References $ctrl, Vendor\Package\$f, ilObjUser\_getAvatar(), ilDatePresentation\formatDate(), ILIAS\Notes\Note\getAuthor(), ILIAS\Notes\Note\getCreationDate(), ILIAS\Notes\Note\getId(), ilUserUtil\getNamePresentation(), getNoteTextPlaceholder(), getShyButton(), getTarget(), ILIAS\Notes\Note\getType(), ILIAS\Notes\Note\getUpdateDate(), IL_CAL_DATETIME, ILIAS\Repository\lng(), ilCtrl\setParameterByClass(), and ILIAS\Repository\ui().
Referenced by deleteNote(), and getNoteListHTML().
|
protected |
Definition at line 700 of file class.ilNoteGUI.php.
References $obj_id, ilObject\_lookupTitle(), getUseObjectTitleHeader(), and ILIAS\Repository\lng().
Referenced by deleteNote(), and getNoteListHTML().
|
static |
Get list comments js call.
Definition at line 1203 of file class.ilNoteGUI.php.
Referenced by ilPollBlockGUI\commentJSCall(), ilObjectListGUI\determineProperties(), ilDclRecordListTableGUI\getCommentsAjaxLink(), ilQuestionBrowserTableGUI\getCommentsAjaxLink(), ilObjectListGUI\getHeaderAction(), ilDclBaseRecordModel\getStandardFieldHTML(), and ilObjectListGUI\insertCommonSocialCommands().
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 addNoteForm(), cancelAddNote(), cancelDelete(), cancelUpdateNote(), editNoteForm(), exportNotesHTML(), getCommentsHTML(), getNotesHTML(), listSortAsc(), and listSortDesc().
|
static |
Get list notes js call.
Definition at line 1187 of file class.ilNoteGUI.php.
Referenced by ilObjectListGUI\determineProperties(), ilObjectListGUI\getHeaderAction(), and ilObjectListGUI\insertCommonSocialCommands().
|
protected |
Definition at line 850 of file class.ilNoteGUI.php.
References $DIC, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by addNote(), getNoteListHTML(), and updateNote().
ilNoteGUI::getNoteListHTML | ( | int | $a_type = Note::PRIVATE , |
bool | $a_init_form = true |
||
) |
Definition at line 432 of file class.ilNoteGUI.php.
References Vendor\Package\$b, $ctrl, Vendor\Package\$f, $ilUser, $lng, $panel, $tpl, $user, ANONYMOUS_USER_ID, getItemForNote(), getItemGroupTitle(), getNoteForm(), getNotes(), getNoteText(), getNoteTextPlaceholder(), getOriginHeader(), getSortationControl(), ilUtil\getSystemMessageHTML(), ILIAS\Repository\lng(), renderComponents(), ilDatePresentation\setUseRelativeDates(), ilLanguage\txt(), ILIAS\Repository\ui(), and ilDatePresentation\useRelativeDates().
Referenced by getCommentsWidget(), and getListHTML().
|
protected |
Definition at line 379 of file class.ilNoteGUI.php.
References $ilUser, $inc_sub, $notes, $requested_note_id, $search_text, and $user.
Referenced by exportNotesHTML(), and getNoteListHTML().
ilNoteGUI::getNotesHTML | ( | ) |
Definition at line 265 of file class.ilNoteGUI.php.
References $ctrl, getListHTML(), and ilCtrl\setParameter().
|
protected |
Definition at line 824 of file class.ilNoteGUI.php.
References ILIAS\Notes\Note\getText(), and ILIAS\Repository\lng().
Referenced by deleteNote(), and getNoteListHTML().
|
protected |
Definition at line 819 of file class.ilNoteGUI.php.
References ILIAS\Notes\Note\getId().
Referenced by deleteNote(), getItemForNote(), and getNoteListHTML().
|
protected |
Definition at line 1386 of file class.ilNoteGUI.php.
References $img, ilObject\_getIcon(), ilContainerReference\_lookupTitle(), ilObject\_lookupTitle(), ILIAS\Repository\ctrl(), getSubObjectTitle(), and ilUtil\img().
Referenced by getNoteListHTML().
ilNoteGUI::getShowEmptyListMessage | ( | ) |
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 $ctrl, Vendor\Package\$f, $id, ilCtrl\getLinkTargetByClass(), ilCtrl\setParameterByClass(), and ILIAS\Repository\ui().
Referenced by getItemForNote(), getListHTML(), and getSortationControl().
|
protected |
ilCtrlException |
Definition at line 660 of file class.ilNoteGUI.php.
References getShyButton(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().
Referenced by getNoteListHTML().
|
protected |
Get sub object title if available with callback.
Definition at line 834 of file class.ilNoteGUI.php.
References $obj_definition, and ilObject\_lookupType().
Referenced by getOriginHeader().
ilNoteGUI::getTarget | ( | Note | $note | ) |
show related objects as links
Definition at line 884 of file class.ilNoteGUI.php.
References $access, $context, $ilUser, $obj_definition, $path, $ref_id, $tree, $type, $user, ilObject\_getAllReferences(), ilLink\_getLink(), ilObject\_lookupOwner(), ilObject\_lookupOwnerName(), ilContainerReference\_lookupTargetId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ILIAS\Notes\Note\getContext(), ilWorkspaceAccessHandler\getGotoLink(), and ILIAS\Notes\Note\getId().
Referenced by getItemForNote().
ilNoteGUI::getUseObjectTitleHeader | ( | ) |
Definition at line 204 of file class.ilNoteGUI.php.
References $use_obj_title_header.
Referenced by getItemGroupTitle().
|
protected |
Definition at line 1289 of file class.ilNoteGUI.php.
References getListHTML().
|
protected |
Definition at line 1295 of file class.ilNoteGUI.php.
References getListHTML().
|
protected |
Definition at line 346 of file class.ilNoteGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\ui().
Referenced by deleteNote(), getListHTML(), and getNoteListHTML().
ilNoteGUI::renderContent | ( | string | $content | ) |
Render content into notes wrapper.
Definition at line 1072 of file class.ilNoteGUI.php.
References $ctrl, $lng, exit, and ilCtrl\isAsynch().
Referenced by deleteNote(), and getListHTML().
ilNoteGUI::setDefaultCommand | ( | string | $a_val | ) |
Definition at line 209 of file class.ilNoteGUI.php.
Referenced by ilNewsTimelineItemGUI\renderFooter().
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().
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.
Referenced by ilNewsTimelineGUI\executeCommand().
ilNoteGUI::setUseObjectTitleHeader | ( | bool | $a_val | ) |
Definition at line 199 of file class.ilNoteGUI.php.
Referenced by ilPageObjectGUI\getNotesHTML(), ilLMPresentationGUI\ilLMNotes(), and ilInfoScreenGUI\showNotesSection().
ilNoteGUI::updateNote | ( | ) |
Definition at line 1037 of file class.ilNoteGUI.php.
References $ctrl, ILIAS\Repository\ctrl(), and getNoteForm().
|
protected |
Definition at line 1380 of file class.ilNoteGUI.php.
References exit, and getCommentsWidget().
|
protected |
Definition at line 64 of file class.ilNoteGUI.php.
Referenced by getTarget().
|
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(), addNote(), confirmDelete(), deactivateComments(), deleteNote(), getButton(), getCommentsHTML(), getCommentsWidget(), getItemForNote(), getListHTML(), getNoteListHTML(), getNotesHTML(), getShyButton(), renderContent(), and updateNote().
|
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 getCommentsWidget(), getListHTML(), getNoteListHTML(), and renderContent().
|
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.
Referenced by getSubObjectTitle(), and getTarget().
|
protected |
Definition at line 53 of file class.ilNoteGUI.php.
Referenced by getItemGroupTitle().
|
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.
Referenced by confirmDelete().
|
protected |
Definition at line 40 of file class.ilNoteGUI.php.
|
protected |
Definition at line 57 of file class.ilNoteGUI.php.
Referenced by getCommentsWidget().
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.
Referenced by addNote().
|
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.
Referenced by getTarget().
|
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 addNote(), getListHTML(), getNoteListHTML(), getNotes(), and getTarget().
|
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.