3declare(strict_types=1);
32 protected \ILIAS\DI\UIServices
$ui;
73 $this->rbacsystem =
$DIC->rbac()->system();
74 $this->tpl =
$DIC[
"tpl"];
75 $this->
access = $DIC->access();
76 $this->
user = $DIC->user();
77 $this->tree =
$DIC->repositoryTree();
79 $ilCtrl =
$DIC->ctrl();
81 $ilTabs =
$DIC->tabs();
83 $this->
ctrl = $ilCtrl;
85 $this->tabs_gui = $ilTabs;
86 $this->gui_object = $a_gui_object;
87 $this->form_action =
"";
88 $this->top_formbuttons = array();
89 $this->hiddenelements = array();
90 $this->
ui = $DIC->ui();
107 $next_class = $this->
ctrl->getNextClass($this);
109 $cmd = $this->
ctrl->getCmd(
"showSummary");
110 $this->
ctrl->setReturn($this,
"showSummary");
114 switch ($next_class) {
116 if ($this->
ctrl->isAsynch()) {
127 case "ilpublicuserprofilegui":
129 $user_profile->setBackUrl($this->
ctrl->getLinkTarget($this,
"showSummary"));
130 $html = $this->
ctrl->forwardCommand($user_profile);
134 case "ilcommonactiondispatchergui":
136 $this->
ctrl->forwardCommand($gui);
147 $this->mbox = $a_val;
158 $this->table_class = $a_val;
168 $this->private_notes_enabled = $a_enable;
173 $this->learning_progress_enabled = $a_enable;
178 $this->availability_enabled = $a_enable;
183 $this->booking_enabled = $a_enable;
189 $this->feedback_enabled = $a_enable;
194 $this->news_enabled = $a_enable;
199 $this->news_editing = $a_enable;
206 public function setBlockProperty(
string $a_block_type,
string $a_property,
string $a_value): void
208 $this->block_property[$a_block_type][$a_property] = $a_value;
225 $this->form_action = $a_form_action;
230 $this->form_action =
"";
240 public function addProperty(
string $a_name,
string $a_value,
string $a_link =
""): void
243 array(
"name" => $a_name,
"value" => $a_value,
252 string $a_checkbox_name,
253 string $a_checkbox_value,
254 string $a_checkbox_label =
"",
255 bool $a_checkbox_checked =
false
257 $checkbox =
"<input type=\"checkbox\" name=\"$a_checkbox_name\" value=\"$a_checkbox_value\" id=\"$a_checkbox_name$a_checkbox_value\"";
258 if ($a_checkbox_checked) {
259 $checkbox .=
" checked=\"checked\"";
262 if (strlen($a_checkbox_label)) {
263 $checkbox .=
" <label for=\"$a_checkbox_name$a_checkbox_value\">$a_checkbox_label</label>";
266 array(
"name" => $a_name,
"value" => $checkbox,
"link" =>
"");
274 string $a_input_name,
275 string $a_input_value =
"",
276 string $a_input_size =
"",
277 string $direct_button_command =
"",
278 string $direct_button_label =
"",
279 bool $direct_button_primary =
false
281 $input =
"<span class=\"form-inline\"><input class=\"form-control\" type=\"text\" name=\"$a_input_name\" id=\"$a_input_name\"";
282 if (strlen($a_input_value)) {
285 if (strlen($a_input_size)) {
286 $input .=
" size=\"" . $a_input_size .
"\"";
289 if (strlen($direct_button_command) && strlen($direct_button_label)) {
291 if ($direct_button_primary) {
292 $css =
" btn-primary";
294 $input .=
" <input type=\"submit\" class=\"btn btn-default" . $css .
"\" name=\"cmd[$direct_button_command]\" value=\"$direct_button_label\" />";
297 $this->section[$this->sec_nr][
"properties"][] =
298 array(
"name" =>
"<label for=\"$a_input_name\">$a_name</label>",
"value" => $input);
307 string $a_frame =
"",
308 string $a_position =
"top",
309 bool $a_primary =
false
311 if ($a_position ==
"top") {
312 $this->top_buttons[] =
313 array(
"title" => $a_title,
"link" => $a_link,
"target" => $a_frame,
"primary" => $a_primary);
324 string $a_position =
"top"
326 if ($a_position ==
"top") {
327 $this->top_formbuttons[] = array(
"command" => $a_command,
"title" => $a_title);
333 $this->hiddenelements[] = array(
"name" => $a_name,
"value" => $a_value);
340 $lng->loadLanguageModule(
"meta");
342 $md =
new ilMD($a_rep_obj_id, $a_obj_id, $a_type);
346 if ($md_gen = $md->getGeneral()) {
350 foreach ($md_gen->getDescriptionIds() as
$id) {
351 $md_des = $md_gen->getDescription(
$id);
352 $description = $md_des->getDescription();
358 foreach ($md_gen->getLanguageIds() as
$id) {
359 $md_lan = $md_gen->getLanguage(
$id);
360 if ($md_lan->getLanguageCode() !=
"") {
361 $language_arr[] =
$lng->txt(
"meta_l_" . $md_lan->getLanguageCode());
364 $langs = implode(
", ", $language_arr);
368 foreach ($md_gen->getKeywordIds() as
$id) {
369 $md_key = $md_gen->getKeyword(
$id);
370 $keyword_arr[] = $md_key->getKeyword();
372 $keywords = implode(
", ", $keyword_arr);
377 if (is_object($lifecycle = $md->getLifecycle())) {
379 foreach (($lifecycle->getContributeIds()) as $con_id) {
380 $md_con = $lifecycle->getContribute($con_id);
381 if ($md_con->getRole() ==
"Author") {
382 foreach ($md_con->getEntityIds() as $ent_id) {
383 $md_ent = $md_con->getEntity($ent_id);
384 $author = $author . $sep . $md_ent->getEntity();
393 if (is_object($rights = $md->getRights())) {
400 #if(is_object($educational = $md->getEducational()))
402 # $learning_time = $educational->getTypicalLearningTime();
405 if (is_object($educational = $md->getEducational())) {
406 if ($seconds = $educational->getTypicalLearningTimeSeconds()) {
415 if ($description !=
"") {
416 $this->addSection(
$lng->txt(
"description"));
417 $this->addProperty(
"", nl2br($description));
421 $this->addSection(
$lng->txt(
"meta_general"));
424 $lng->txt(
"language"),
428 if ($keywords !=
"") {
430 $lng->txt(
"keywords"),
440 if ($copyright !=
"") {
442 $lng->txt(
"meta_copyright"),
446 if ($learning_time !=
"") {
448 $lng->txt(
"meta_typical_learning_time"),
459 public function addObjectSections(): void
462 $ilCtrl = $this->ctrl;
464 $ilAccess = $this->access;
468 if ($this->booking_enabled) {
470 $booking_adapter->add();
473 $this->addSection(
$lng->txt(
"additional_info"));
474 $a_obj = $this->gui_object->getObject();
477 if (is_object($a_obj)) {
479 $type = $a_obj->getType();
485 $lng->txt(
"object_id"),
486 (
string) $a_obj->getId()
493 if ($ilAccess->checkAccess(
"write",
"",
$ref_id) ||
494 $ilAccess->checkAccess(
"edit_permissions",
"",
$ref_id)) {
495 $obj_id = $a_obj->getId();
498 foreach ($rs as $r) {
503 if (count($refs) > 1) {
505 foreach ($refs as $r) {
507 $cont_loc->addContextItems($r,
true);
508 $links .= $sep . $cont_loc->getHTML();
513 $lng->txt(
"res_links"),
514 '<div class="small">' . $links .
'</div>'
523 if ($ilAccess->checkAccess(
"write",
"",
$ref_id) ||
524 $ilAccess->checkAccess(
"edit_permissions",
"",
$ref_id)) {
527 $lng->txt(
"create_date"),
540 if (!is_object($ownerObj) || $ownerObj->getType() !=
"usr") {
541 $this->addProperty(
$lng->txt(
"owner"),
$lng->txt(
"no_owner"));
542 } elseif ($ownerObj->hasPublicProfile()) {
543 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id", $ownerObj->getId());
546 $ownerObj->getPublicName(),
547 $ilCtrl->getLinkTargetByClass(
"ilpublicuserprofilegui",
"getHTML")
550 $this->addProperty(
$lng->txt(
"owner"), $ownerObj->getPublicName());
559 $count_user_reads = 0;
560 $count_anonymous_reads = 0;
561 foreach ($readEvents as $evt) {
563 $count_anonymous_reads += $evt[
'read_count'];
565 $count_user_reads += $evt[
'read_count'];
573 if ($count_anonymous_reads > 0) {
575 $this->
lng->txt(
"readcount_anonymous_users"),
576 (
string) $count_anonymous_reads
579 if ($count_user_reads > 0) {
580 $this->addProperty($this->
lng->txt(
"readcount_users"), (
string) $count_user_reads);
582 if ($count_users > 0) {
583 $this->addProperty($this->
lng->txt(
"accesscount_registered_users"), (
string) $count_users);
594 $webdav_lock_backend =
$webdav_dic->locksbackend();
597 if ($lock = $webdav_lock_backend->getLocksOnObjectId($this->gui_object->getObject()->getId())) {
599 $lock_user =
new ilObjUser($lock->getIliasOwner());
601 $this->
lng->txt(
"in_use_by"),
602 $lock_user->getPublicName(),
603 "./ilias.php?user=" . $lock_user->getId() .
'&cmd=showUserProfile&cmdClass=ildashboardgui&cmdNode=1&baseClass=ilDashboardGUI'
622 $tpl->setContent($this->getCenterColumnHTML());
623 $tpl->setRightContent($this->getRightColumnHTML());
636 $ilCtrl = $this->ctrl;
639 $this->setColumnSettings($column_gui);
641 if (!$ilCtrl->isAsynch()) {
646 $this->setColumnSettings($column_gui);
647 $html = $ilCtrl->forwardCommand($column_gui);
652 $this->setColumnSettings($column_gui);
653 $html = $ilCtrl->forwardCommand($column_gui);
656 $html = $this->getHTML();
669 $ilCtrl = $this->ctrl;
673 $this->setColumnSettings($column_gui);
675 if ($ilCtrl->getNextClass() ==
"ilcolumngui" &&
678 $html = $ilCtrl->forwardCommand($column_gui);
679 } elseif (!$ilCtrl->isAsynch() && $this->news_enabled) {
680 $html = $ilCtrl->getHTML($column_gui);
698 $this->open_form_tag = $a_val;
703 $this->close_form_tag = $a_val;
717 $ilCtrl = $this->ctrl;
720 $tpl =
new ilTemplate(
"tpl.infoscreen.html",
true,
true,
"Services/InfoScreen");
723 if ($this->form_action ==
"") {
724 $this->setFormAction($ilCtrl->getFormAction($this));
730 $tpl->touchBlock(
"hidden_js");
731 if ($this->show_hidden_toggle) {
732 $this->addButton(
$lng->txt(
"show_hidden_sections"),
"JavaScript:toggleSections(this, '" .
$lng->txt(
"show_hidden_sections") .
"', '" .
$lng->txt(
"hide_visible_sections") .
"');");
740 if (count($this->top_buttons) > 0) {
741 $tpl->addBlockFile(
"TOP_BUTTONS",
"top_buttons",
"tpl.buttons.html");
743 foreach ($this->top_buttons as $button) {
745 $tpl->setCurrentBlock(
"btn_cell");
746 $tpl->setVariable(
"BTN_LINK", $button[
"link"]);
747 $tpl->setVariable(
"BTN_TARGET", $button[
"target"]);
748 $tpl->setVariable(
"BTN_TXT", $button[
"title"]);
749 if ($button[
"primary"]) {
750 $tpl->setVariable(
"BTN_CLASS",
" btn-primary");
752 $tpl->parseCurrentBlock();
757 if ((count($this->top_formbuttons) > 0) && ($this->form_action !==
'')) {
758 $tpl->addBlockFile(
"TOP_FORMBUTTONS",
"top_submitbuttons",
"tpl.submitbuttons.html",
"Services/InfoScreen");
760 foreach ($this->top_formbuttons as $button) {
762 $tpl->setCurrentBlock(
"btn_submit_cell");
763 $tpl->setVariable(
"BTN_COMMAND", $button[
"command"]);
764 $tpl->setVariable(
"BTN_NAME", $button[
"title"]);
765 $tpl->parseCurrentBlock();
770 if ($this->form_action !=
"") {
771 if ($this->open_form_tag) {
772 $tpl->setCurrentBlock(
"formtop");
773 $tpl->setVariable(
"FORMACTION", $this->form_action);
774 $tpl->parseCurrentBlock();
777 if ($this->close_form_tag) {
778 $tpl->touchBlock(
"formbottom");
782 if (count($this->hiddenelements)) {
783 foreach ($this->hiddenelements as $hidden) {
784 $tpl->setCurrentBlock(
"hidden_element");
785 $tpl->setVariable(
"HIDDEN_NAME", $hidden[
"name"]);
786 $tpl->setVariable(
"HIDDEN_VALUE", $hidden[
"value"]);
787 $tpl->parseCurrentBlock();
791 if ($this->availability_enabled) {
792 $this->addAvailability();
795 $this->addPreconditions();
798 if ($this->learning_progress_enabled) {
799 $this->showLearningProgress(
$tpl);
803 if ($this->private_notes_enabled && !
$ilSetting->get(
'disable_notes')) {
804 $html = $this->showNotesSection();
805 $tpl->setCurrentBlock(
"notes");
806 $tpl->setVariable(
"NOTES", $html);
807 $tpl->parseCurrentBlock();
812 isset($this->gui_object) &&
813 method_exists($this->gui_object,
"getObject") &&
814 is_object($this->gui_object->getObject())
821 $this->addObjectSections();
825 for (
$i = 1;
$i <= $this->sec_nr;
$i++) {
826 if (isset($this->section[
$i][
"properties"])) {
828 foreach ($this->section[
$i][
"properties"] as $property) {
829 if ($property[
"name"] !=
"") {
830 if (($property[
"link"] ??
"") ==
"") {
831 $tpl->setCurrentBlock(
"pv");
832 $tpl->setVariable(
"TXT_PROPERTY_VALUE", $property[
"value"]);
834 $tpl->setCurrentBlock(
"lpv");
835 $tpl->setVariable(
"TXT_PROPERTY_LVALUE", $property[
"value"]);
836 $tpl->setVariable(
"LINK_PROPERTY_VALUE", $property[
"link"]);
838 $tpl->parseCurrentBlock();
839 $tpl->setCurrentBlock(
"property_row");
840 $tpl->setVariable(
"TXT_PROPERTY", $property[
"name"]);
842 $tpl->setCurrentBlock(
"property_full_row");
843 $tpl->setVariable(
"TXT_PROPERTY_FULL_VALUE", $property[
"value"]);
845 $tpl->parseCurrentBlock();
849 if ($this->section[
$i][
"hidden"] ??
false) {
850 $tpl->setVariable(
"SECTION_HIDDEN",
" style=\"display:none;\"");
851 $tpl->setVariable(
"SECTION_ID",
"hidable_" .
$i);
853 $tpl->setVariable(
"SECTION_ID",
$i);
855 $tpl->setVariable(
"TCLASS", $this->getTableClass());
856 $tpl->setVariable(
"TXT_SECTION", $this->section[
$i][
"title"]);
857 $tpl->setCurrentBlock(
"row");
858 $tpl->parseCurrentBlock();
862 if (!is_null($this->mbox)) {
863 $tpl->setVariable(
"MBOX", $this->
ui->renderer()->render([$this->mbox]));
871 if ($this->contextRefId !==
null) {
872 return $this->contextRefId;
875 return $this->gui_object->getObject()->getRefId();
880 $this->contextRefId = $contextRefId;
885 if ($this->contextObjId !==
null) {
886 return $this->contextObjId;
889 return $this->gui_object->getObject()->getId();
894 $this->contextObjId = $contextObjId;
899 if ($this->contentObjType !==
null) {
900 return $this->contentObjType;
903 return $this->gui_object->getObject()->getType();
908 $this->contentObjType = $contentObjType;
920 $rbacsystem = $this->rbacsystem;
922 if (!$rbacsystem->
checkAccess(
'read', $this->getContextRefId())) {
938 $this->
lng->loadLanguageModule(
'trac');
944 $this->
lng->txt(
'learning_progress')
956 $this->getContextObjId(),
957 $this->getContextRefId(),
962 $lp_marks->setCompleted((
bool) $this->request->getLPEdit());
967 $this->
lng->loadLanguageModule(
'trac');
968 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'trac_updated_status'),
true);
971 $this->
ctrl->redirect($this,
"");
984 $ilAccess = $this->access;
986 $DIC->notes()->gui()->initJavascript();
988 $next_class = $this->
ctrl->getNextClass($this);
990 $this->gui_object->getObject()->getId(),
992 $this->gui_object->getObject()->getType()
994 $notes_gui->setUseObjectTitleHeader(
false);
1000 $ref_id = $this->gui_object->getObject()->getRefId();
1001 $has_write = $ilAccess->checkAccess(
"write",
"",
$ref_id);
1003 if ($has_write &&
$ilSetting->get(
"comments_del_tutor",
"1")) {
1004 $notes_gui->enablePublicNotesDeletion();
1012 $ilAccess->checkAccess(
"edit_permissions",
"",
$ref_id)) {
1013 $notes_gui->enableCommentsSettings();
1021 if ($next_class ==
"ilnotegui") {
1022 $html = $this->
ctrl->forwardCommand($notes_gui);
1024 $html = $notes_gui->getCommentsHTML();
1035 if (strlen($a_section)) {
1036 $this->addSection($a_section);
1039 if ($infos = $ldap_mapping->getInfoStrings($this->gui_object->getObject()->getId())) {
1040 $info_combined =
'<div style="color:green;">';
1042 foreach ($infos as $info_string) {
1044 $info_combined .=
'<br />';
1046 $info_combined .= $info_string;
1048 $info_combined .=
'</div>';
1049 $this->addProperty($this->
lng->txt(
'applications'), $info_combined);
1055 $this->getTabs($this->tabs_gui);
1060 $next_class = $this->
ctrl->getNextClass($this);
1061 $force_active = ($next_class ==
"ilnotegui");
1065 $this->
ctrl->getLinkTarget($this,
"showSummary"),
1066 array(
"showSummary",
""),
1078 $lng->loadLanguageModule(
"tagging");
1082 $tagging_gui->setObject(
1083 $this->gui_object->getObject()->getId(),
1084 $this->gui_object->getObject()->getType()
1087 $this->addSection(
$lng->txt(
"tagging_tags"));
1089 if ($tags_set->get(
"enable_all_users")) {
1091 $lng->txt(
"tagging_all_users"),
1092 $tagging_gui->getAllUserTagsForObjectHTML()
1097 $lng->txt(
"tagging_my_tags"),
1098 $tagging_gui->getTaggingInputHTML()
1105 $tagging_gui->setObject(
1106 $this->gui_object->getObject()->getId(),
1107 $this->gui_object->getObject()->getType()
1109 $tagging_gui->saveInput();
1111 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'msg_obj_modified'),
true);
1112 $this->
ctrl->redirect($this,
"");
1117 $this->hidden =
true;
1118 $this->show_hidden_toggle = $a_add_toggle;
1125 return "<a onClick=\"toggleSections(this, '" .
$lng->txt(
"show_hidden_sections") .
"', '" .
$lng->txt(
"hide_visible_sections") .
"'); return false;\" href=\"#\">" .
$lng->txt(
"show_hidden_sections") .
"</a>";
1136 !is_object($this->gui_object) ||
1137 !method_exists($this->gui_object,
"getObject") ||
1138 !is_object($this->gui_object->getObject())
1143 $obj = $this->gui_object->getObject();
1144 if ($obj->getRefId() <= 0) {
1149 $act->read($obj->getRefId());
1151 $this->
lng->loadLanguageModule(
"rep");
1152 $this->addSection($this->
lng->txt(
"rep_activation_availability"));
1153 $this->addAccessPeriodProperty();
1163 !is_object($this->gui_object) ||
1164 !method_exists($this->gui_object,
"getObject") ||
1165 !is_object($this->gui_object->getObject())
1170 $obj = $this->gui_object->getObject();
1171 if ($obj->getRefId() <= 0) {
1175 $conditions = ilConditionHandler::_getEffectiveConditionsOfTarget($obj->getRefId(), $obj->getId());
1177 if (
sizeof($conditions)) {
1178 for (
$i = 0;
$i < count($conditions);
$i++) {
1184 $this->addPreconditionSection($obj, $conditions,
true);
1185 $this->addPreconditionSection($obj, $conditions,
false);
1192 bool $obligatory =
true
1195 $tree = $this->tree;
1198 $num_optional_required =
1202 $visible_conditions = array();
1203 $passed_optional = 0;
1204 foreach ($conditions as $condition) {
1205 if ($obligatory and !$condition[
'obligatory']) {
1208 if (!$obligatory and $condition[
'obligatory']) {
1212 if ($tree->
isDeleted($condition[
'trigger_ref_id'])) {
1220 $visible_conditions[] = $condition[
'id'];
1223 if (!$obligatory and $ok) {
1226 if ($passed_optional >= $num_optional_required) {
1234 foreach ($conditions as $condition) {
1235 if (!isset($condition[
"id"]) || !in_array($condition[
'id'], $visible_conditions)) {
1241 $condition[
'trigger_obj_id'],
1242 $condition[
'operator']
1243 ) .
' ' . $condition[
'value'],
1249 if (count($properties) > 0) {
1251 $this->addSection(
$lng->txt(
"preconditions_obligatory_hint"));
1253 $this->addSection(sprintf(
1254 $lng->txt(
"preconditions_optional_hint"),
1255 $num_optional_required - $passed_optional
1259 foreach ($properties as $p) {
1274 $a_obj = $this->gui_object->getObject();
1276 $this->
lng->loadLanguageModule(
"rep");
1277 $this->
lng->loadLanguageModule(
"crs");
1280 if (is_object($a_obj)) {
1282 $act->read($a_obj->getRefId());
1285 $this->
lng->txt(
'rep_activation_access'),
1293 $this->
lng->txt(
'rep_activation_access'),
1294 $this->lng->txt(
'crs_visibility_limitless')
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
setVariable($variable, $value='')
Sets a variable value.
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupReadEvents($obj_id, $usr_id=null)
Reads all read events which occured on the object.
static _isActive()
Returns true, if change event tracking is active.
Column user interface class.
setAllBlockProperties(array $a_block_properties)
setEnableEdit(bool $a_enableedit)
setRepositoryMode(bool $a_repositorymode)
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
static translateOperator(int $a_obj_id, string $a_operator)
static calculateEffectiveRequiredTriggers(int $a_target_ref_id, int $a_target_obj_id, string $a_target_obj_type='')
static _checkCondition(array $condition, int $a_usr_id=0)
checks wether a single condition is fulfilled every trigger object type must implement a static metho...
static getEffectiveOptionalConditionsOfTarget(int $a_target_ref_id, int $a_target_obj_id, string $a_obj_type='')
Class ilCtrl provides processing control methods.
static formatPeriod(ilDateTime $start, ilDateTime $end, bool $a_skip_starting_day=false)
Format a period of two dates Shows: 14.
static secondsToString(int $seconds, bool $force_with_seconds=false, ?ilLanguage $a_lng=null)
converts seconds to string: Long: 7 days 4 hour(s) ...
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
@classDescription Date and time handling
static getInstance()
Get singleton instance.
setContent(string $a_html)
Sets content for standard template.
enableNews(bool $a_enable=true)
StandardGUIRequest $request
setColumnSettings(ilColumnGUI $column_gui)
Set column settings.
setFormAction(string $a_form_action)
setBlockProperty(string $a_block_type, string $a_property, string $a_value)
This function is supposed to be used for block type specific properties, that should be passed to ilB...
bool $learning_progress_enabled
setCloseFormTag(bool $a_val)
bool $private_notes_enabled
__construct(?object $a_gui_object=null)
enableBookingInfo(bool $a_enable=true)
getTabs(ilTabsGUI $tabs_gui)
showLearningProgress(ilTemplate $a_tpl)
bool $availability_enabled
enableFeedback(bool $a_enable=true)
enableLearningProgress(bool $a_enable=true)
addSection(string $a_title)
ilGlobalPageTemplate $tpl
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
addPropertyCheckbox(string $a_name, string $a_checkbox_name, string $a_checkbox_value, string $a_checkbox_label="", bool $a_checkbox_checked=false)
addFormButton(string $a_command, string $a_title, string $a_position="top")
add a form button to the info screen the form buttons are only valid if a form action is set
enableNewsEditing(bool $a_enable=true)
addButton(string $a_title, string $a_link, string $a_frame="", string $a_position="top", bool $a_primary=false)
@inheritDoc
enableAvailability(bool $a_enable=true)
hideFurtherSections(bool $a_add_toggle=true)
enablePrivateNotes(bool $a_enable=true)
setContextObjId(int $contextObjId)
addAccessPeriodProperty()
addPropertyTextinput(string $a_name, string $a_input_name, string $a_input_value="", string $a_input_size="", string $direct_button_command="", string $direct_button_label="", bool $direct_button_primary=false)
setTableClass(string $a_val)
showLDAPRoleGroupMappingInfo(string $a_section='')
ILIAS UI Component MessageBox MessageBox $mbox
addHiddenElement(string $a_name, string $a_value)
saveProgress(bool $redirect=true)
setContextRefId(int $contextRefId)
addPreconditions()
Add preconditions.
setOpenFormTag(bool $a_val)
addPreconditionSection(ilObject $obj, array $conditions, bool $obligatory=true)
addMetaDataSections(int $a_rep_obj_id, int $a_obj_id, string $a_type)
setMessageBox(ILIAS\UI\Component\MessageBox\MessageBox $a_val)
setContentObjType(string $contentObjType)
static _getInstance()
Get singleton instance of this class.
static _updateStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null, bool $a_percentage=false, bool $a_force_raise=false)
static _tracProgress(int $a_user_id, int $a_obj_id, int $a_ref_id, string $a_obj_type='')
static _getLink(?int $a_ref_id, string $a_type='', array $a_params=array(), string $append="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _parseCopyright(string $a_copyright)
static _getDefaultCopyright()
static _enabledLearningProgress()
static userExists(array $a_usr_ids=array())
Class ilObjectActivation.
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
static getInstance(int $obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupType(int $id, bool $reference=false)
static _getAllReferences(int $id)
get all reference ids for object ID
static _lookupTitle(int $obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addSubTabTarget(string $a_text, string $a_link, $a_cmd="", $a_cmdClass="", string $a_frame="", bool $a_activate=false, bool $a_dir_text=false)
special template class to simplify handling of ITX/PEAR
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isInTree(?int $a_node_id)
get all information of a node.
isDeleted(int $a_node_id)
This is a wrapper for isSaved() with a more useful name.
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.
catch(InvalidArgumentException $e) if(!ilDAVActivationChecker::_isActive()) $webdav_dic