95 $this->rbacsystem = $DIC->rbac()->system();
96 $this->tpl = $DIC[
"tpl"];
97 $this->access = $DIC->access();
98 $this->
user = $DIC->user();
99 $this->tree = $DIC->repositoryTree();
102 $lng = $DIC->language();
103 $ilTabs = $DIC->tabs();
107 $this->tabs_gui = $ilTabs;
108 $this->gui_object = $a_gui_object;
110 $this->private_notes_enabled =
false;
111 $this->news_enabled =
false;
112 $this->feedback_enabled =
false;
113 $this->learning_progress_enabled =
false;
114 $this->form_action =
"";
115 $this->top_formbuttons = array();
116 $this->hiddenelements = array();
128 $next_class = $this->ctrl->getNextClass($this);
130 $cmd = $this->ctrl->getCmd(
"showSummary");
131 $this->ctrl->setReturn($this,
"showSummary");
135 switch ($next_class) {
144 case "ilpublicuserprofilegui":
145 include_once(
"./Services/User/classes/class.ilPublicUserProfileGUI.php");
147 $user_profile->setBackUrl($this->ctrl->getLinkTarget($this,
"showSummary"));
148 $html = $this->ctrl->forwardCommand($user_profile);
152 case "ilcommonactiondispatchergui":
153 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
155 $this->ctrl->forwardCommand($gui);
159 return $this->$cmd();
172 $this->table_class = $a_val;
190 $this->private_notes_enabled = $a_enable;
198 $this->learning_progress_enabled = $a_enable;
207 $this->feedback_enabled = $a_enable;
215 $this->news_enabled = $a_enable;
223 $this->news_editing = $a_enable;
235 $this->block_property[$a_block_type][$a_property] = $a_value;
240 return $this->block_property;
249 $this->section[$this->sec_nr][
"title"] = $a_title;
250 $this->section[$this->sec_nr][
"hidden"] = (bool) $this->hidden;
258 $this->form_action = $a_form_action;
266 $this->form_action =
"";
278 $this->section[$this->sec_nr][
"properties"][] =
279 array(
"name" => $a_name,
"value" => $a_value,
286 public function addPropertyCheckbox($a_name, $a_checkbox_name, $a_checkbox_value, $a_checkbox_label =
"", $a_checkbox_checked =
false)
288 $checkbox =
"<input type=\"checkbox\" name=\"$a_checkbox_name\" value=\"$a_checkbox_value\" id=\"$a_checkbox_name$a_checkbox_value\"";
289 if ($a_checkbox_checked) {
290 $checkbox .=
" checked=\"checked\"";
293 if (strlen($a_checkbox_label)) {
294 $checkbox .=
" <label for=\"$a_checkbox_name$a_checkbox_value\">$a_checkbox_label</label>";
296 $this->section[$this->sec_nr][
"properties"][] =
297 array(
"name" => $a_name,
"value" => $checkbox);
303 public function addPropertyTextinput($a_name, $a_input_name, $a_input_value =
"", $a_input_size =
"", $direct_button_command =
"", $direct_button_label =
"", $direct_button_primary =
false)
305 $input =
"<span class=\"form-inline\"><input class=\"form-control\" type=\"text\" name=\"$a_input_name\" id=\"$a_input_name\"";
306 if (strlen($a_input_value)) {
309 if (strlen($a_input_size)) {
310 $input .=
" size=\"" . $a_input_size .
"\"";
313 if (strlen($direct_button_command) && strlen($direct_button_label)) {
315 if ($direct_button_primary) {
316 $css =
" btn-primary";
318 $input .=
" <input type=\"submit\" class=\"btn btn-default" . $css .
"\" name=\"cmd[$direct_button_command]\" value=\"$direct_button_label\" />";
321 $this->section[$this->sec_nr][
"properties"][] =
322 array(
"name" =>
"<label for=\"$a_input_name\">$a_name</label>",
"value" =>
$input);
328 public function addButton($a_title, $a_link, $a_frame =
"", $a_position =
"top", $a_primary =
false)
330 if ($a_position ==
"top") {
331 $this->top_buttons[] =
332 array(
"title" => $a_title,
"link" => $a_link,
"target" => $a_frame,
"primary" => $a_primary);
342 if ($a_position ==
"top") {
344 $this->top_formbuttons,
345 array(
"command" => $a_command,
"title" => $a_title)
352 array_push($this->hiddenelements, array(
"name" => $a_name,
"value" => $a_value));
362 $lng->loadLanguageModule(
"meta");
364 include_once(
"./Services/MetaData/classes/class.ilMD.php");
367 if ($md_gen = $md->getGeneral()) {
371 foreach ($md_gen->getDescriptionIds() as
$id) {
372 $md_des = $md_gen->getDescription(
$id);
379 foreach ($ids = $md_gen->getLanguageIds() as
$id) {
380 $md_lan = $md_gen->getLanguage(
$id);
381 if ($md_lan->getLanguageCode() !=
"") {
382 $langs[] =
$lng->txt(
"meta_l_" . $md_lan->getLanguageCode());
385 $langs = implode($langs,
", ");
389 foreach ($ids = $md_gen->getKeywordIds() as
$id) {
390 $md_key = $md_gen->getKeyword(
$id);
391 $keywords[] = $md_key->getKeyword();
393 $keywords = implode($keywords,
", ");
397 if (is_object($lifecycle = $md->getLifecycle())) {
399 foreach (($ids = $lifecycle->getContributeIds()) as $con_id) {
400 $md_con = $lifecycle->getContribute($con_id);
401 if ($md_con->getRole() ==
"Author") {
402 foreach ($ent_ids = $md_con->getEntityIds() as $ent_id) {
403 $md_ent = $md_con->getEntity($ent_id);
404 $author = $author . $sep . $md_ent->getEntity();
413 if (is_object($rights = $md->getRights())) {
414 include_once(
'Services/MetaData/classes/class.ilMDUtils.php');
419 #if(is_object($educational = $md->getEducational())) 421 # $learning_time = $educational->getTypicalLearningTime(); 424 if (is_object($educational = $md->getEducational())) {
425 if ($seconds = $educational->getTypicalLearningTimeSeconds()) {
443 $lng->txt(
"language"),
447 if ($keywords !=
"") {
449 $lng->txt(
"keywords"),
459 if ($copyright !=
"") {
461 $lng->txt(
"meta_copyright"),
465 if ($learning_time !=
"") {
467 $lng->txt(
"meta_typical_learning_time"),
485 $a_obj = $this->gui_object->object;
488 if (is_object($a_obj)) {
490 $type = $a_obj->getType();
491 $ref_id = $a_obj->getRefId();
494 include_once
'Services/WebServices/ECS/classes/class.ilECSServerSettings.php';
497 $lng->txt(
"object_id"),
502 include_once
'Services/PermanentLink/classes/class.ilPermanentLinkGUI.php';
504 $pm->setIncludePermanentLinkText(
false);
505 $pm->setAlignCenter(
false);
507 $lng->txt(
"perma_link"),
515 if ($ilAccess->checkAccess(
"write",
"", $ref_id) ||
516 $ilAccess->checkAccess(
"edit_permissions",
"", $ref_id)) {
517 $obj_id = $a_obj->getId();
520 foreach ($rs as
$r) {
521 if (
$tree->isInTree($r)) {
525 if (count($refs) > 1) {
527 foreach ($refs as $r) {
529 $cont_loc->addContextItems($r,
true);
530 $links .= $sep . $cont_loc->getHTML();
535 $lng->txt(
"res_links"),
536 '<div class="small">' .
$links .
'</div>' 546 $lng->txt(
"create_date"),
551 if (
$ilUser->getId() != ANONYMOUS_USER_ID
and $a_obj->getOwner()) {
552 include_once
'./Services/Object/classes/class.ilObjectFactory.php';
553 include_once
'./Services/User/classes/class.ilObjUser.php';
561 if (!is_object($ownerObj) || $ownerObj->getType() !=
"usr") {
563 } elseif ($ownerObj->hasPublicProfile()) {
564 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id", $ownerObj->getId());
565 $this->
addProperty(
$lng->txt(
"owner"), $ownerObj->getPublicName(),
$ilCtrl->getLinkTargetByClass(
"ilpublicuserprofilegui",
"getHTML"));
572 require_once
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
573 if (
$ilUser->getId() != ANONYMOUS_USER_ID &&
575 $size = $a_obj->getDiskUsage();
576 if (
$size !== null) {
581 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';
583 if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
587 $count_user_reads = 0;
588 $count_anonymous_reads = 0;
589 foreach ($readEvents as $evt) {
590 if ($evt[
'usr_id'] == ANONYMOUS_USER_ID) {
591 $count_anonymous_reads += $evt[
'read_count'];
593 $count_user_reads += $evt[
'read_count'];
601 if ($count_anonymous_reads > 0) {
602 $this->
addProperty($this->lng->txt(
"readcount_anonymous_users"), $count_anonymous_reads);
604 if ($count_user_reads > 0) {
605 $this->
addProperty($this->lng->txt(
"readcount_users"), $count_user_reads);
607 if ($count_users > 0) {
608 $this->
addProperty($this->lng->txt(
"accesscount_registered_users"), $count_users);
615 require_once(
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
617 if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
618 require_once
'Services/WebDAV/classes/lock/class.ilWebDAVLockBackend.php';
622 if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
623 if ($lock = $webdav_lock_backend->getLocksOnObjectId($this->gui_object->object->getId())) {
624 $lock_user =
new ilObjUser($lock->getIliasOwner());
626 $this->lng->txt(
"in_use_by"),
627 $lock_user->getPublicName(),
628 "./ilias.php?user=" . $lock_user->getId() .
'&cmd=showUserProfile&cmdClass=ilpersonaldesktopgui&cmdNode=1&baseClass=ilPersonalDesktopGUI' 656 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
691 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
695 if (
$ilCtrl->getNextClass() ==
"ilcolumngui" &&
701 if ($this->news_enabled) {
718 $column_gui->setEnableEdit($this->news_editing);
719 $column_gui->setRepositoryMode(
true);
725 $this->open_form_tag = $a_val;
730 $this->close_form_tag = $a_val;
745 $tpl =
new ilTemplate(
"tpl.infoscreen.html",
true,
true,
"Services/InfoScreen");
748 if ($this->form_action ==
"") {
752 require_once
'Services/jQuery/classes/class.iljQueryUtil.php';
756 $tpl->touchBlock(
"hidden_js");
757 if ($this->show_hidden_toggle) {
758 $this->
addButton(
$lng->txt(
"show_hidden_sections"),
"JavaScript:toggleSections(this, '" .
$lng->txt(
"show_hidden_sections") .
"', '" .
$lng->txt(
"hide_visible_sections") .
"');");
766 if (count($this->top_buttons) > 0) {
767 $tpl->addBlockfile(
"TOP_BUTTONS",
"top_buttons",
"tpl.buttons.html");
769 foreach ($this->top_buttons as $button) {
771 $tpl->setCurrentBlock(
"btn_cell");
772 $tpl->setVariable(
"BTN_LINK", $button[
"link"]);
773 $tpl->setVariable(
"BTN_TARGET", $button[
"target"]);
774 $tpl->setVariable(
"BTN_TXT", $button[
"title"]);
775 if ($button[
"primary"]) {
776 $tpl->setVariable(
"BTN_CLASS",
" btn-primary");
778 $tpl->parseCurrentBlock();
783 if ((count($this->top_formbuttons) > 0) && (strlen($this->form_action) > 0)) {
784 $tpl->addBlockfile(
"TOP_FORMBUTTONS",
"top_submitbuttons",
"tpl.submitbuttons.html",
"Services/InfoScreen");
786 foreach ($this->top_formbuttons as $button) {
788 $tpl->setCurrentBlock(
"btn_submit_cell");
789 $tpl->setVariable(
"BTN_COMMAND", $button[
"command"]);
790 $tpl->setVariable(
"BTN_NAME", $button[
"title"]);
791 $tpl->parseCurrentBlock();
796 if (strlen($this->form_action) > 0) {
797 if ($this->open_form_tag) {
798 $tpl->setCurrentBlock(
"formtop");
799 $tpl->setVariable(
"FORMACTION", $this->form_action);
800 $tpl->parseCurrentBlock();
803 if ($this->close_form_tag) {
804 $tpl->touchBlock(
"formbottom");
808 if (count($this->hiddenelements)) {
809 foreach ($this->hiddenelements as $hidden) {
810 $tpl->setCurrentBlock(
"hidden_element");
811 $tpl->setVariable(
"HIDDEN_NAME", $hidden[
"name"]);
812 $tpl->setVariable(
"HIDDEN_VALUE", $hidden[
"value"]);
813 $tpl->parseCurrentBlock();
821 $tpl->setCurrentBlock(
"learning_progress");
823 $tpl->parseCurrentBlock();
827 if ($this->private_notes_enabled && !
$ilSetting->get(
'disable_notes')) {
829 $tpl->setCurrentBlock(
"notes");
831 $tpl->parseCurrentBlock();
835 if (is_object($this->gui_object->object)) {
837 if ($tags_set->get(
"enable") &&
$ilUser->getId() != ANONYMOUS_USER_ID) {
842 if (is_object($this->gui_object->object)) {
847 for (
$i = 1;
$i <= $this->sec_nr;
$i++) {
848 if (is_array($this->section[
$i][
"properties"])) {
850 foreach ($this->section[$i][
"properties"] as $property) {
851 if ($property[
"name"] !=
"") {
852 if ($property[
"link"] ==
"") {
853 $tpl->setCurrentBlock(
"pv");
854 $tpl->setVariable(
"TXT_PROPERTY_VALUE", $property[
"value"]);
855 $tpl->parseCurrentBlock();
857 $tpl->setCurrentBlock(
"lpv");
858 $tpl->setVariable(
"TXT_PROPERTY_LVALUE", $property[
"value"]);
859 $tpl->setVariable(
"LINK_PROPERTY_VALUE", $property[
"link"]);
860 $tpl->parseCurrentBlock();
862 $tpl->setCurrentBlock(
"property_row");
863 $tpl->setVariable(
"TXT_PROPERTY", $property[
"name"]);
864 $tpl->parseCurrentBlock();
866 $tpl->setCurrentBlock(
"property_full_row");
867 $tpl->setVariable(
"TXT_PROPERTY_FULL_VALUE", $property[
"value"]);
868 $tpl->parseCurrentBlock();
873 if ($this->section[$i][
"hidden"]) {
874 $tpl->setVariable(
"SECTION_HIDDEN",
" style=\"display:none;\"");
875 $tpl->setVariable(
"SECTION_ID",
"hidable_" . $i);
877 $tpl->setVariable(
"SECTION_ID", $i);
880 $tpl->setVariable(
"TXT_SECTION", $this->section[$i][
"title"]);
881 $tpl->setCurrentBlock(
"row");
882 $tpl->parseCurrentBlock();
894 if ($this->contextRefId !== null) {
898 return $this->gui_object->object->getRefId();
914 if ($this->contextObjId !== null) {
918 return $this->gui_object->object->getId();
934 if ($this->contentObjType !== null) {
938 return $this->gui_object->object->getType();
954 if (!
$rbacsystem->checkAccess(
'read', $this->getContextRefId())) {
957 if (
$ilUser->getId() == ANONYMOUS_USER_ID) {
961 include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
966 include_once
'./Services/Object/classes/class.ilObjectLP.php';
972 include_once
'Services/Tracking/classes/class.ilLPMarks.php';
974 $this->lng->loadLanguageModule(
'trac');
980 $this->lng->txt(
'learning_progress')
982 $a_tpl->parseCurrentBlock();
986 $i_tpl =
new ilTemplate(
"tpl.lp_edit_manual_info_page.html",
true,
true,
"Services/Tracking");
987 $i_tpl->setVariable(
"INFO_EDITED", $this->lng->txt(
"trac_info_edited"));
994 array(0 => $this->lng->txt(
'trac_not_completed'),
995 1 => $this->lng->txt(
'trac_completed')),
999 $i_tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
1000 $a_tpl->setCurrentBlock(
"pv");
1001 $a_tpl->setVariable(
"TXT_PROPERTY_VALUE", $i_tpl->get());
1002 $a_tpl->parseCurrentBlock();
1003 $a_tpl->setCurrentBlock(
"property_row");
1004 $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_status'));
1005 $a_tpl->parseCurrentBlock();
1012 $a_tpl->setCurrentBlock(
"pv");
1014 include_once
'Services/Tracking/classes/class.ilLearningProgress.php';
1016 if ($progress[
'access_time']) {
1017 $a_tpl->setVariable(
1018 "TXT_PROPERTY_VALUE",
1022 $a_tpl->setVariable(
1023 "TXT_PROPERTY_VALUE",
1024 $this->lng->txt(
'trac_not_accessed')
1028 $a_tpl->parseCurrentBlock();
1029 $a_tpl->setCurrentBlock(
"property_row");
1030 $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_last_access'));
1031 $a_tpl->parseCurrentBlock();
1035 $a_tpl->setCurrentBlock(
"pv");
1036 $a_tpl->setVariable(
1037 "TXT_PROPERTY_VALUE",
1038 (
int) $progress[
'visits']
1040 $a_tpl->parseCurrentBlock();
1041 $a_tpl->setCurrentBlock(
"property_row");
1042 $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_visits'));
1043 $a_tpl->parseCurrentBlock();
1049 $a_tpl->setCurrentBlock(
"pv");
1050 $a_tpl->setVariable(
1051 "TXT_PROPERTY_VALUE",
1054 $a_tpl->parseCurrentBlock();
1055 $a_tpl->setCurrentBlock(
"property_row");
1056 $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_spent_time'));
1057 $a_tpl->parseCurrentBlock();
1063 $a_tpl->touchBlock(
"row");
1070 include_once
'Services/Tracking/classes/class.ilLPMarks.php';
1074 $lp_marks->update();
1076 require_once
'Services/Tracking/classes/class.ilLPStatusWrapper.php';
1079 $this->lng->loadLanguageModule(
'trac');
1080 ilUtil::sendSuccess($this->lng->txt(
'trac_updated_status'),
true);
1083 $this->ctrl->redirect($this,
"");
1096 $next_class = $this->ctrl->getNextClass($this);
1097 include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
1099 $this->gui_object->object->getId(),
1101 $this->gui_object->object->getType()
1108 $ref_id = $this->gui_object->object->getRefId();
1109 $has_write = $ilAccess->checkAccess(
"write",
"", $ref_id);
1111 if ($has_write &&
$ilSetting->get(
"comments_del_tutor", 1)) {
1112 $notes_gui->enablePublicNotesDeletion(
true);
1120 $ilAccess->checkAccess(
"edit_permissions",
"", $ref_id)) {
1121 $notes_gui->enableCommentsSettings();
1129 if ($next_class ==
"ilnotegui") {
1130 $html = $this->ctrl->forwardCommand($notes_gui);
1132 $html = $notes_gui->getNotesHTML();
1147 if (strlen($a_section)) {
1150 include_once(
'Services/LDAP/classes/class.ilLDAPRoleGroupMapping.php');
1152 if ($infos = $ldap_mapping->getInfoStrings($this->gui_object->object->getId())) {
1153 $info_combined =
'<div style="color:green;">';
1155 foreach ($infos as $info_string) {
1157 $info_combined .=
'<br />';
1159 $info_combined .= $info_string;
1161 $info_combined .=
'</div>';
1162 $this->
addProperty($this->lng->txt(
'applications'), $info_combined);
1171 $this->
getTabs($this->tabs_gui);
1183 $next_class = $this->ctrl->getNextClass($this);
1184 $force_active = ($next_class ==
"ilnotegui")
1190 $this->ctrl->getLinkTarget($this,
"showSummary"),
1191 array(
"showSummary",
""),
1207 $lng->loadLanguageModule(
"tagging");
1210 include_once(
"Services/Tagging/classes/class.ilTaggingGUI.php");
1212 $tagging_gui->setObject(
1213 $this->gui_object->object->getId(),
1214 $this->gui_object->object->getType()
1219 if ($tags_set->get(
"enable_all_users")) {
1221 $lng->txt(
"tagging_all_users"),
1222 $tagging_gui->getAllUserTagsForObjectHTML()
1227 $lng->txt(
"tagging_my_tags"),
1228 $tagging_gui->getTaggingInputHTML()
1234 include_once(
"Services/Tagging/classes/class.ilTaggingGUI.php");
1236 $tagging_gui->setObject(
1237 $this->gui_object->object->getId(),
1238 $this->gui_object->object->getType()
1240 $tagging_gui->saveInput();
1242 ilUtil::sendSuccess($this->lng->txt(
'msg_obj_modified'),
true);
1243 $this->ctrl->redirect($this,
"");
1250 $this->hidden =
true;
1251 $this->show_hidden_toggle = (bool) $a_add_toggle;
1258 return "<a onClick=\"toggleSections(this, '" .
$lng->txt(
"show_hidden_sections") .
"', '" .
$lng->txt(
"hide_visible_sections") .
"'); return false;\" href=\"#\">" .
$lng->txt(
"show_hidden_sections") .
"</a>";
1266 if (!is_object($this->gui_object) || !is_object($this->gui_object->object)) {
1269 $obj = $this->gui_object->object;
1270 if ($obj->getRefId() <= 0) {
1274 $conditions = ilConditionHandler::_getEffectiveConditionsOfTarget($obj->getRefId(), $obj->getId());
1276 if (
sizeof($conditions)) {
1277 for (
$i = 0;
$i < count($conditions);
$i++) {
1294 $num_optional_required =
1298 $visible_conditions = array();
1299 $passed_optional = 0;
1300 foreach ($conditions as $condition) {
1301 if ($obligatory
and !$condition[
'obligatory']) {
1304 if (!$obligatory
and $condition[
'obligatory']) {
1308 if (
$tree->isDeleted($condition[
'trigger_ref_id'])) {
1316 $visible_conditions[] = $condition[
'id'];
1319 if (!$obligatory
and $ok) {
1322 if ($passed_optional >= $num_optional_required) {
1330 foreach ($conditions as $condition) {
1331 if (!in_array($condition[
'id'], $visible_conditions)) {
1335 $missing_cond_exist =
true;
1339 $condition[
'trigger_obj_id'],
1340 $condition[
'operator']
1341 ) .
' ' . $condition[
'value'],
1347 if (count($properties) > 0) {
1351 $this->
addSection(sprintf(
$lng->txt(
"preconditions_optional_hint"), $num_optional_required));
1354 foreach ($properties as $p) {
1357 "<a href='".$p[
"link"].
"'>".$p[
"title"].
"</a>" static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static _parseCopyright($a_copyright)
Parse copyright.
showLearningProgress($a_tpl)
addPreconditions()
Add preconditions.
static _hasCompleted($a_usr_id, $a_obj_id)
hideFurtherSections($a_add_toggle=true)
showLDAPRoleGroupMappingInfo($a_section='')
show LDAP role group mapping info
Class for permanent links.
setBlockProperty($a_block_type, $a_property, $a_value)
This function is supposed to be used for block type specific properties, that should be passed to ilB...
addMetaDataSections($a_rep_obj_id, $a_obj_id, $a_type)
add standard meta data sections
getCenterColumnHTML()
Display center column.
removeFormAction()
remove form action
setFormAction($a_form_action)
set a form action
static _isActive()
Static getter.
static translateOperator($a_obj_id, $a_operator)
Translate operator.
static getInstance()
Get singleton instance.
static _updateStatus($a_obj_id, $a_usr_id, $a_obj=null, $a_percentage=false, $a_force_raise=false)
Update status.
setTableClass($a_val)
Set table class.
getRightColumnHTML()
Display right column.
addButton($a_title, $a_link, $a_frame="", $a_position="top", $a_primary=false)
add a property to current section
static _checkCondition($condition, $a_usr_id=0)
checks wether a single condition is fulfilled every trigger object type must implement a static metho...
if(!array_key_exists('StateId', $_REQUEST)) $id
showSummary()
show summary page
static _lookupTitle($a_id)
lookup object title
addSection($a_title)
add a new section
static _isActive()
Static getter.
setContentObjType(string $contentObjType)
addFormButton($a_command, $a_title, $a_position="top")
add a form button to the info screen the form buttons are only valid if a form action is set ...
static userExists($a_usr_ids=array())
enablePublicNotes($a_enable=true)
enable public notes
setContextObjId(int $contextObjId)
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
addHiddenElement($a_name, $a_value)
static _getAllReferences($a_id)
get all reference ids of object
setColumnSettings($column_gui)
Set column settings.
getTabs(&$tabs_gui)
get tabs
getTableClass()
Get table class.
static _getInstance()
Get singleton instance of this class.
static calculateEffectiveRequiredTriggers($a_target_ref_id, $a_target_obj_id, $a_target_obj_type='')
calculate number of obligatory items
enableFeedback($a_enable=true)
enable feedback
GUI class for public user profile presentation.
static _enabledLearningProgress()
check wether learing progress is enabled or not
addPropertyTextinput($a_name, $a_input_name, $a_input_value="", $a_input_size="", $direct_button_command="", $direct_button_label="", $direct_button_primary=false)
add a property to current section
setContextRefId(int $contextRefId)
static secondsToString($seconds, $force_with_seconds=false, $a_lng=null)
converts seconds to string: Long: 7 days 4 hour(s) ...
Column user interface class.
enableLearningProgress($a_enable=true)
enable learning progress
special template class to simplify handling of ITX/PEAR
showNotesSection()
show notes section
enableNews($a_enable=true)
enable news
__construct($a_gui_object)
Constructor.
$form_action
a form action parameter.
static _lookupReadEvents($obj_id, $usr_id=null)
Reads all read events which occured on the object which happened after the last time the user caught ...
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Class ilWebDAVLockBackend.
static getEffectiveOptionalConditionsOfTarget($a_target_ref_id, $a_target_obj_id, $a_obj_type='')
Get optional conditions.
addPreconditionSection($obj, $conditions, $obligatory=true)
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
executeCommand()
execute command
static getInstance()
Get instance.
static _isActive()
Returns true, if change event tracking is active.
addProperty($a_name, $a_value, $a_link="")
add a property to current section
static initjQuery($a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
enableNewsEditing($a_enable=true)
enable news editing
enablePrivateNotes($a_enable=true)
enable notes
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
saveProgress($redirect=true)
addPropertyCheckbox($a_name, $a_checkbox_name, $a_checkbox_value, $a_checkbox_label="", $a_checkbox_checked=false)
add a property to current section
static getInstance($a_obj_id)
static _getProgress($a_user_id, $a_obj_id)
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
addObjectSections()
add standard object section