49                $this->tabs_gui = $ilTabs;
 
   50                $this->gui_object = $a_gui_object;
 
   52                $this->private_notes_enabled = 
false;
 
   53                $this->news_enabled = 
false;
 
   54                $this->feedback_enabled = 
false;
 
   55                $this->learning_progress_enabled = 
false;
 
   56                $this->form_action = 
"";
 
   57                $this->top_formbuttons = array();
 
   58                $this->hiddenelements = array();
 
   66                global $rbacsystem, 
$tpl, $ilAccess;
 
   68                $next_class = $this->ctrl->getNextClass($this);
 
   70                $cmd = $this->ctrl->getCmd(
"showSummary");
 
   71                $this->ctrl->setReturn($this, 
"showSummary");
 
   85                        case "ilpublicuserprofilegui":
 
   86                                include_once(
"./Services/User/classes/class.ilPublicUserProfileGUI.php");
 
   88                                $user_profile->setBackUrl($this->ctrl->getLinkTarget($this, 
"showSummary"));
 
   89                                $html = $this->ctrl->forwardCommand($user_profile);
 
   93                        case "ilcommonactiondispatchergui":
 
   94                                include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
 
   96                                $this->ctrl->forwardCommand($gui);
 
  100                                return $this->
$cmd();
 
  113                $this->table_class = $a_val;
 
  131                $this->private_notes_enabled = $a_enable;
 
  139                $this->learning_progress_enabled = $a_enable;
 
  148                $this->feedback_enabled = $a_enable;
 
  156                $this->news_enabled = $a_enable;
 
  164                $this->news_editing = $a_enable;
 
  176                $this->block_property[$a_block_type][$a_property] = $a_value;
 
  181                return $this->block_property;
 
  190                $this->section[$this->sec_nr][
"title"] = $a_title;
 
  191                $this->section[$this->sec_nr][
"hidden"] = (bool)$this->hidden;
 
  199                $this->form_action = $a_form_action;
 
  207                $this->form_action = 
"";
 
  219                $this->section[$this->sec_nr][
"properties"][] =
 
  220                        array(
"name" => $a_name, 
"value" => $a_value,
 
  227        function addPropertyCheckbox($a_name, $a_checkbox_name, $a_checkbox_value, $a_checkbox_label = 
"", $a_checkbox_checked = 
false)
 
  229                $checkbox = 
"<input type=\"checkbox\" name=\"$a_checkbox_name\" value=\"$a_checkbox_value\" id=\"$a_checkbox_name$a_checkbox_value\"";
 
  230                if ($a_checkbox_checked)
 
  232                        $checkbox .= 
" checked=\"checked\"";
 
  235                if (strlen($a_checkbox_label))
 
  237                        $checkbox .= 
" <label for=\"$a_checkbox_name$a_checkbox_value\">$a_checkbox_label</label>";
 
  239                $this->section[$this->sec_nr][
"properties"][] =
 
  240                        array(
"name" => $a_name, 
"value" => $checkbox);
 
  246        function addPropertyTextinput($a_name, $a_input_name, $a_input_value = 
"", $a_input_size = 
"", $direct_button_command = 
"", $direct_button_label = 
"", $direct_button_primary = 
false)
 
  248                $input = 
"<span class=\"form-inline\"><input class=\"form-control\" type=\"text\" name=\"$a_input_name\" id=\"$a_input_name\"";
 
  249                if (strlen($a_input_value))
 
  253                if (strlen($a_input_size))
 
  255                        $input .= 
" size=\"" . $a_input_size . 
"\"";
 
  258                if (strlen($direct_button_command) && strlen($direct_button_label))
 
  261                        if($direct_button_primary)
 
  263                                $css = 
" btn-primary";
 
  265                        $input .= 
" <input type=\"submit\" class=\"btn btn-default".$css.
"\" name=\"cmd[$direct_button_command]\" value=\"$direct_button_label\" />";
 
  268                $this->section[$this->sec_nr][
"properties"][] =
 
  269                        array(
"name" => 
"<label for=\"$a_input_name\">$a_name</label>", 
"value" => $input);
 
  275        function addButton($a_title, $a_link, $a_frame = 
"", $a_position = 
"top", $a_primary = 
false)
 
  277                if ($a_position == 
"top")
 
  279                        $this->top_buttons[] =
 
  280                                array(
"title" => $a_title,
"link" => $a_link,
"target" => $a_frame,
"primary" => $a_primary);
 
  290                if ($a_position == 
"top")
 
  292                        array_push($this->top_formbuttons,
 
  293                                array(
"command" => $a_command, 
"title" => $a_title)
 
  300                array_push($this->hiddenelements, array(
"name" => $a_name, 
"value" => $a_value));
 
  310                $lng->loadLanguageModule(
"meta");
 
  312                include_once(
"./Services/MetaData/classes/class.ilMD.php");
 
  315                if ($md_gen = $md->getGeneral())
 
  320                        foreach($md_gen->getDescriptionIds() as $id)
 
  322                                $md_des = $md_gen->getDescription($id);
 
  323                                $description = $md_des->getDescription();
 
  329                        foreach($ids = $md_gen->getLanguageIds() as $id)
 
  331                                $md_lan = $md_gen->getLanguage($id);
 
  332                                if ($md_lan->getLanguageCode() != 
"")
 
  334                                        $langs[] = 
$lng->txt(
"meta_l_".$md_lan->getLanguageCode());
 
  337                        $langs = implode($langs, 
", ");
 
  341                        foreach($ids = $md_gen->getKeywordIds() as $id)
 
  343                                $md_key = $md_gen->getKeyword($id);
 
  344                                $keywords[] = $md_key->getKeyword();
 
  346                        $keywords = implode($keywords, 
", ");
 
  350                if(is_object($lifecycle = $md->getLifecycle()))
 
  353                        foreach(($ids = $lifecycle->getContributeIds()) as $con_id)
 
  355                                $md_con = $lifecycle->getContribute($con_id);
 
  356                                if ($md_con->getRole() == 
"Author")
 
  358                                        foreach($ent_ids = $md_con->getEntityIds() as $ent_id)
 
  360                                                $md_ent = $md_con->getEntity($ent_id);
 
  361                                                $author = $author.$sep.$md_ent->getEntity();
 
  370                if(is_object($rights = $md->getRights()))
 
  372                        include_once(
'Services/MetaData/classes/class.ilMDUtils.php');
 
  377                #if(is_object($educational = $md->getEducational())) 
  379                #       $learning_time = $educational->getTypicalLearningTime(); 
  382                if(is_object($educational = $md->getEducational()))
 
  384                        if($seconds = $educational->getTypicalLearningTimeSeconds())
 
  394                if ($description != 
"")
 
  417                if ($copyright != 
"")           
 
  422                if ($learning_time != 
"")               
 
  424                        $this->
addProperty($lng->txt(
"meta_typical_learning_time"),
 
  436                $this->
addSection($lng->txt(
"additional_info"));
 
  437                $a_obj = $this->gui_object->object;
 
  440                if (is_object($a_obj))
 
  443                        $type = $a_obj->getType();
 
  448                                include_once 
'Services/WebServices/ECS/classes/class.ilECSServerSettings.php';
 
  456                                include_once 
'Services/PermanentLink/classes/class.ilPermanentLinkGUI.php';                             
 
  458                                $pm->setIncludePermanentLinkText(
false);
 
  459                                $pm->setAlignCenter(
false);
 
  468                                if ($ilAccess->checkAccess(
"write", 
"", 
$ref_id) ||
 
  469                                        $ilAccess->checkAccess(
"edit_permissions", 
"", 
$ref_id))
 
  471                                        $obj_id = $a_obj->getId();
 
  476                                                if ($tree->isInTree(
$r))
 
  481                                        if (count($refs) > 1)
 
  487                                                        $cont_loc->addContextItems(
$r, 
true);
 
  488                                                        $links.= $sep.$cont_loc->getHTML();
 
  493                                                        '<div class="small">'.$links.
'</div>' 
  503                        $lng->txt(
"create_date"),
 
  507                if (
$ilUser->getId() != ANONYMOUS_USER_ID and $a_obj->getOwner())
 
  509                        include_once 
'./Services/Object/classes/class.ilObjectFactory.php';
 
  510                        include_once 
'./Services/User/classes/class.ilObjUser.php';
 
  521                        if (!is_object($ownerObj) || $ownerObj->getType() != 
"usr")             
 
  525                        else if ($ownerObj->hasPublicProfile()) 
 
  527                                $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui", 
"user_id", $ownerObj->getId());                          
 
  528                                $this->
addProperty($lng->txt(
"owner"),$ownerObj->getPublicName(),
$ilCtrl->getLinkTargetByClass(
"ilpublicuserprofilegui", 
"getHTML"));
 
  532                                $this->
addProperty($lng->txt(
"owner"),$ownerObj->getPublicName());      
 
  537                require_once 
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
 
  538                if (
$ilUser->getId() != ANONYMOUS_USER_ID &&
 
  541                                $size = $a_obj->getDiskUsage();
 
  542                                if (
$size !== 
null) {
 
  547                require_once 
'Services/Tracking/classes/class.ilChangeEvent.php';
 
  550                        if (
$ilUser->getId() != ANONYMOUS_USER_ID)
 
  555                                $count_user_reads = 0;
 
  556                                $count_anonymous_reads = 0;
 
  557                                foreach ($readEvents as $evt)
 
  559                                        if ($evt[
'usr_id'] == ANONYMOUS_USER_ID)
 
  561                                                $count_anonymous_reads += $evt[
'read_count'];
 
  565                                                $count_user_reads += $evt[
'read_count'];
 
  573                                if ($count_anonymous_reads > 0)
 
  575                                        $this->
addProperty($this->lng->txt(
"readcount_anonymous_users"),$count_anonymous_reads);
 
  577                                if ($count_user_reads > 0)
 
  579                                        $this->
addProperty($this->lng->txt(
"readcount_users"),$count_user_reads);
 
  581                                if ($count_users > 0)
 
  583                                        $this->
addProperty($this->lng->txt(
"accesscount_registered_users"),$count_users);
 
  590                require_once (
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
 
  594                        if (
$ilUser->getId() != ANONYMOUS_USER_ID)
 
  596                                require_once 
'Services/WebDAV/classes/class.ilDAVServer.php';
 
  600                                if (
$ilias->account->getId() != ANONYMOUS_USER_ID)
 
  602                                        $locks =& $davLocks->getLocksOnObjectObj($a_obj->getId());
 
  603                                        if (count($locks) > 0)
 
  605                                                $lockUser = 
new ilObjUser($locks[0][
'ilias_owner']);
 
  607                                                        $lockUser->getPublicName()
 
  609                                                        "./ilias.php?user=".$locks[0][
'ilias_owner'].
'&cmd=showUserProfile&cmdClass=ilpersonaldesktopgui&cmdNode=1&baseClass=ilPersonalDesktopGUI' 
  625                global 
$tpl, $ilAccess;
 
  639                include_once(
"Services/Block/classes/class.ilColumnGUI.php");
 
  678                include_once(
"Services/Block/classes/class.ilColumnGUI.php");
 
  682                if (
$ilCtrl->getNextClass() == 
"ilcolumngui" &&
 
  692                                if ($this->news_enabled)
 
  707                global 
$lng, $ilAccess;
 
  709                $column_gui->setEnableEdit($this->news_editing);
 
  710                $column_gui->setRepositoryMode(
true);
 
  716                $this->open_form_tag = $a_val;
 
  721                $this->close_form_tag = $a_val;
 
  731                $tpl = 
new ilTemplate(
"tpl.infoscreen.html" ,
true, 
true, 
"Services/InfoScreen");
 
  734                if ($this->form_action == 
"")
 
  739                require_once 
'Services/jQuery/classes/class.iljQueryUtil.php';
 
  744                        $tpl->touchBlock(
"hidden_js");
 
  745                        if($this->show_hidden_toggle)
 
  747                                $this->
addButton($lng->txt(
"show_hidden_sections"), 
"JavaScript:toggleSections(this, '".$lng->txt(
"show_hidden_sections") .
"', '".
$lng->txt(
"hide_visible_sections") .
"');");
 
  755                if (count($this->top_buttons) > 0)
 
  757                        $tpl->addBlockfile(
"TOP_BUTTONS", 
"top_buttons", 
"tpl.buttons.html");
 
  759                        foreach($this->top_buttons as $button)
 
  762                                $tpl->setCurrentBlock(
"btn_cell");
 
  763                                $tpl->setVariable(
"BTN_LINK", $button[
"link"]);
 
  764                                $tpl->setVariable(
"BTN_TARGET", $button[
"target"]);
 
  765                                $tpl->setVariable(
"BTN_TXT", $button[
"title"]);
 
  766                                if($button[
"primary"])
 
  768                                        $tpl->setVariable(
"BTN_CLASS", 
" btn-primary");
 
  770                                $tpl->parseCurrentBlock();
 
  775                if ((count($this->top_formbuttons) > 0) && (strlen($this->form_action) > 0))
 
  777                        $tpl->addBlockfile(
"TOP_FORMBUTTONS", 
"top_submitbuttons", 
"tpl.submitbuttons.html", 
"Services/InfoScreen");
 
  779                        foreach($this->top_formbuttons as $button)
 
  782                                $tpl->setCurrentBlock(
"btn_submit_cell");
 
  783                                $tpl->setVariable(
"BTN_COMMAND", $button[
"command"]);
 
  784                                $tpl->setVariable(
"BTN_NAME", $button[
"title"]);
 
  785                                $tpl->parseCurrentBlock();
 
  790                if (strlen($this->form_action) > 0)
 
  792                        if($this->open_form_tag)
 
  794                                $tpl->setCurrentBlock(
"formtop");
 
  795                                $tpl->setVariable(
"FORMACTION", $this->form_action);
 
  796                                $tpl->parseCurrentBlock();
 
  799                        if($this->close_form_tag)
 
  801                                $tpl->touchBlock(
"formbottom");
 
  805                if (count($this->hiddenelements))
 
  807                        foreach ($this->hiddenelements as $hidden)
 
  809                                $tpl->setCurrentBlock(
"hidden_element");
 
  810                                $tpl->setVariable(
"HIDDEN_NAME", $hidden[
"name"]);
 
  811                                $tpl->setVariable(
"HIDDEN_VALUE", $hidden[
"value"]);
 
  812                                $tpl->parseCurrentBlock();
 
  820                        $tpl->setCurrentBlock(
"learning_progress");
 
  822                        $tpl->parseCurrentBlock();
 
  826                if ($this->private_notes_enabled && !
$ilSetting->get(
'disable_notes'))
 
  829                        $tpl->setCurrentBlock(
"notes");
 
  831                        $tpl->parseCurrentBlock();
 
  835                if (is_object($this->gui_object->object))
 
  838                        if ($tags_set->get(
"enable") && 
$ilUser->getId() != ANONYMOUS_USER_ID)
 
  844                if(is_object($this->gui_object->object))
 
  850                for($i = 1; $i <= $this->sec_nr; $i++)
 
  852                        if (is_array($this->section[$i][
"properties"]))
 
  855                                foreach($this->section[$i][
"properties"] as $property)
 
  857                                        if ($property[
"name"] != 
"")
 
  859                                                if ($property[
"link"] == 
"")
 
  861                                                        $tpl->setCurrentBlock(
"pv");
 
  862                                                        $tpl->setVariable(
"TXT_PROPERTY_VALUE", $property[
"value"]);
 
  863                                                        $tpl->parseCurrentBlock();
 
  867                                                        $tpl->setCurrentBlock(
"lpv");
 
  868                                                        $tpl->setVariable(
"TXT_PROPERTY_LVALUE", $property[
"value"]);
 
  869                                                        $tpl->setVariable(
"LINK_PROPERTY_VALUE", $property[
"link"]);
 
  870                                                        $tpl->parseCurrentBlock();
 
  872                                                $tpl->setCurrentBlock(
"property_row");
 
  873                                                $tpl->setVariable(
"TXT_PROPERTY", $property[
"name"]);
 
  874                                                $tpl->parseCurrentBlock();
 
  878                                                $tpl->setCurrentBlock(
"property_full_row");
 
  879                                                $tpl->setVariable(
"TXT_PROPERTY_FULL_VALUE", $property[
"value"]);
 
  880                                                $tpl->parseCurrentBlock();
 
  885                                if($this->section[$i][
"hidden"])
 
  887                                        $tpl->setVariable(
"SECTION_HIDDEN", 
" style=\"display:none;\"");
 
  888                                        $tpl->setVariable(
"SECTION_ID", 
"hidable_".$i);
 
  892                                        $tpl->setVariable(
"SECTION_ID", $i);
 
  895                                $tpl->setVariable(
"TXT_SECTION", $this->section[$i][
"title"]);
 
  896                                $tpl->touchBlock(
"row");
 
  907                if(!$rbacsystem->checkAccess(
'read',$this->gui_object->object->getRefId()))
 
  911                if(
$ilUser->getId() == ANONYMOUS_USER_ID)
 
  916                include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
 
  922                include_once 
'./Services/Object/classes/class.ilObjectLP.php';
 
  929                include_once 
'Services/Tracking/classes/class.ilLPMarks.php';
 
  931                $this->lng->loadLanguageModule(
'trac');
 
  935                $a_tpl->setVariable(
"TXT_SECTION",
 
  936                        $this->lng->txt(
'learning_progress'));
 
  937                $a_tpl->parseCurrentBlock();
 
  941                $i_tpl = 
new ilTemplate(
"tpl.lp_edit_manual_info_page.html", 
true, 
true, 
"Services/Tracking");
 
  942                $i_tpl->setVariable(
"INFO_EDITED", $this->lng->txt(
"trac_info_edited"));
 
  944                           $this->gui_object->object->getId()),
 
  946                                array(0 => $this->lng->txt(
'trac_not_completed'),
 
  947                                          1 => $this->lng->txt(
'trac_completed')),
 
  950                $i_tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
 
  951                $a_tpl->setCurrentBlock(
"pv");
 
  952                $a_tpl->setVariable(
"TXT_PROPERTY_VALUE", $i_tpl->get());
 
  953                $a_tpl->parseCurrentBlock();
 
  954                $a_tpl->setCurrentBlock(
"property_row");
 
  955                $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_status'));
 
  956                $a_tpl->parseCurrentBlock();
 
  961                if($this->gui_object->object->getType() == 
'lm' ||
 
  962                   $this->gui_object->object->getType() == 
'htlm')
 
  964                        $a_tpl->setCurrentBlock(
"pv");
 
  966                        include_once 
'Services/Tracking/classes/class.ilLearningProgress.php';
 
  968                        if($progress[
'access_time'])
 
  970                                $a_tpl->setVariable(
"TXT_PROPERTY_VALUE",
 
  975                                $a_tpl->setVariable(
"TXT_PROPERTY_VALUE",
 
  976                                        $this->lng->txt(
'trac_not_accessed'));
 
  979                        $a_tpl->parseCurrentBlock();
 
  980                        $a_tpl->setCurrentBlock(
"property_row");
 
  981                        $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_last_access'));
 
  982                        $a_tpl->parseCurrentBlock();
 
  986                        $a_tpl->setCurrentBlock(
"pv");
 
  987                        $a_tpl->setVariable(
"TXT_PROPERTY_VALUE",
 
  988                                (
int) $progress[
'visits']);
 
  989                        $a_tpl->parseCurrentBlock();
 
  990                        $a_tpl->setCurrentBlock(
"property_row");
 
  991                        $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_visits'));
 
  992                        $a_tpl->parseCurrentBlock();
 
  996                        if($this->gui_object->object->getType() == 
'lm')
 
  999                                $a_tpl->setCurrentBlock(
"pv");
 
 1000                                $a_tpl->setVariable(
"TXT_PROPERTY_VALUE",
 
 1002                                $a_tpl->parseCurrentBlock();
 
 1003                                $a_tpl->setCurrentBlock(
"property_row");
 
 1004                                $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_spent_time'));
 
 1005                                $a_tpl->parseCurrentBlock();
 
 1011                $a_tpl->touchBlock(
"row");
 
 1018                include_once 
'Services/Tracking/classes/class.ilLPMarks.php';
 
 1020                include_once 
'./Services/Object/classes/class.ilObjectLP.php';
 
 1024                        !
$GLOBALS[
'ilAccess']->checkAccess(
'read',
'',$this->gui_object->object->getRefId())
 
 1028                        $this->ctrl->redirect($this, 
"");
 
 1033                $lp_marks = 
new ilLPMarks($this->gui_object->object->getId(),
$ilUser->getId());
 
 1034                $lp_marks->setCompleted((
bool) 
$_POST[
'lp_edit']);
 
 1035                $lp_marks->update();
 
 1037                require_once 
'Services/Tracking/classes/class.ilLPStatusWrapper.php';
 
 1040                $this->lng->loadLanguageModule(
'trac');
 
 1042                $this->ctrl->redirect($this, 
""); 
 
 1055                $next_class = $this->ctrl->getNextClass($this);
 
 1056                include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
 
 1057                $notes_gui = 
new ilNoteGUI($this->gui_object->object->getId(), 0,
 
 1058                        $this->gui_object->object->getType());
 
 1063                        $notes_gui->enablePublicNotes(
false);
 
 1067                        $ref_id = $this->gui_object->object->getRefId();                        
 
 1068                        $has_write = $ilAccess->checkAccess(
"write", 
"", 
$ref_id);
 
 1070                        if($has_write && 
$ilSetting->get(
"comments_del_tutor", 1))
 
 1072                                $notes_gui->enablePublicNotesDeletion(
true);
 
 1080                                $ilAccess->checkAccess(
"edit_permissions", 
"", 
$ref_id))
 
 1082                                $notes_gui->enableCommentsSettings();
 
 1090                if ($next_class == 
"ilnotegui")
 
 1092                        $html = $this->ctrl->forwardCommand($notes_gui);
 
 1096                        $html = $notes_gui->getNotesHTML();
 
 1111                if(strlen($a_section))
 
 1115                include_once(
'Services/LDAP/classes/class.ilLDAPRoleGroupMapping.php');
 
 1117                if($infos = $ldap_mapping->getInfoStrings($this->gui_object->object->getId()))
 
 1119                        $info_combined = 
'<div style="color:green;">';
 
 1121                        foreach($infos as $info_string)
 
 1125                                        $info_combined .= 
'<br />';
 
 1127                                $info_combined .= $info_string; 
 
 1129                        $info_combined .= 
'</div>';
 
 1130                        $this->
addProperty($this->lng->txt(
'applications'),$info_combined);
 
 1139                $this->
getTabs($this->tabs_gui);
 
 1147                global $rbacsystem,
$ilUser,$ilAccess;
 
 1149                $next_class = $this->ctrl->getNextClass($this);
 
 1150                $force_active = ($next_class == 
"ilnotegui")
 
 1154                $tabs_gui->addSubTabTarget(
'summary',
 
 1155                         $this->ctrl->getLinkTarget($this, 
"showSummary"),
 
 1156                         array(
"showSummary", 
""),
 
 1157                         get_class($this), 
"", $force_active);
 
 1168                $lng->loadLanguageModule(
"tagging");
 
 1171                include_once(
"Services/Tagging/classes/class.ilTaggingGUI.php");
 
 1173                $tagging_gui->setObject($this->gui_object->object->getId(),
 
 1174                        $this->gui_object->object->getType());
 
 1176                $this->
addSection($lng->txt(
"tagging_tags"));
 
 1178                if ($tags_set->get(
"enable_all_users"))
 
 1180                        $this->
addProperty($lng->txt(
"tagging_all_users"),
 
 1181                                $tagging_gui->getAllUserTagsForObjectHTML());
 
 1185                        $tagging_gui->getTaggingInputHTML());
 
 1190                include_once(
"Services/Tagging/classes/class.ilTaggingGUI.php");
 
 1192                $tagging_gui->setObject($this->gui_object->object->getId(),
 
 1193                        $this->gui_object->object->getType());
 
 1194                $tagging_gui->saveInput();
 
 1197                $this->ctrl->redirect($this, 
""); 
 
 1204                $this->hidden = 
true;
 
 1205                $this->show_hidden_toggle = (bool)$a_add_toggle;
 
 1212                return "<a onClick=\"toggleSections(this, '".$lng->txt(
"show_hidden_sections") .
"', '".
$lng->txt(
"hide_visible_sections") .
"'); return false;\" href=\"#\">".
$lng->txt(
"show_hidden_sections").
"</a>";
 
An exception for terminatinating execution or to throw for unit testing.
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 _isActive()
Returns true, if change event tracking is active.
Column user interface class.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
static _isActive()
Static getter.
static secondsToString($seconds, $force_with_seconds=false, $a_lng=null)
converts seconds to string: Long: 7 days 4 hour(s) ...
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
static _isActive()
Static getter.
static getInstance()
Get singleton instance.
showLDAPRoleGroupMappingInfo($a_section='')
show LDAP role group mapping info
__construct($a_gui_object)
Constructor.
removeFormAction()
remove form action
addObjectSections()
add standard object section
getRightColumnHTML()
Display right column.
setFormAction($a_form_action)
set a form action
enableNewsEditing($a_enable=true)
enable news editing
addButton($a_title, $a_link, $a_frame="", $a_position="top", $a_primary=false)
add a property to current section
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...
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
executeCommand()
execute command
showLearningProgress($a_tpl)
$form_action
a form action parameter.
showSummary()
show summary page
getCenterColumnHTML()
Display center column.
hideFurtherSections($a_add_toggle=true)
enableFeedback($a_enable=true)
enable feedback
setTableClass($a_val)
Set table class.
addHiddenElement($a_name, $a_value)
enablePrivateNotes($a_enable=true)
enable notes
getTabs(&$tabs_gui)
get tabs
enableLearningProgress($a_enable=true)
enable learning progress
showNotesSection()
show notes section
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
setColumnSettings($column_gui)
Set column settings.
addPropertyCheckbox($a_name, $a_checkbox_name, $a_checkbox_value, $a_checkbox_label="", $a_checkbox_checked=false)
add a property to current section
enableNews($a_enable=true)
enable news
addProperty($a_name, $a_value, $a_link="")
add a property to current section
getTableClass()
Get table class.
addMetaDataSections($a_rep_obj_id, $a_obj_id, $a_type)
add standard meta data sections
addSection($a_title)
add a new section
static _getInstance()
Get singleton instance of this class.
static _hasCompleted($a_usr_id, $a_obj_id)
static _updateStatus($a_obj_id, $a_usr_id, $a_obj=null, $a_percentage=false, $a_force_raise=false)
Update status.
static _getProgress($a_user_id, $a_obj_id)
static _parseCopyright($a_copyright)
Parse copyright.
static _enabledLearningProgress()
check wether learing progress is enabled or not
static userExists($a_usr_ids=array())
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static getInstance($a_obj_id)
static _getAllReferences($a_id)
get all reference ids of object
Class for permanent links.
GUI class for public user profile presentation.
special template class to simplify handling of ITX/PEAR
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
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.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
static initjQuery($a_tpl=null)
Init jQuery.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
redirection script todo: (a better solution should control the processing via a xml file)