80        $this->rbacsystem = 
$DIC->rbac()->system();
 
   81        $this->tpl = 
$DIC[
"tpl"];
 
   82        $this->access = 
$DIC->access();
 
   83        $this->
user = $DIC->user();
 
   84        $this->tree = 
$DIC->repositoryTree();
 
   88        $ilTabs = 
$DIC->tabs();
 
   92        $this->tabs_gui = $ilTabs;
 
   93        $this->gui_object = $a_gui_object;
 
   95        $this->private_notes_enabled = 
false;
 
   96        $this->news_enabled = 
false;
 
   97        $this->feedback_enabled = 
false;
 
   98        $this->learning_progress_enabled = 
false;
 
   99        $this->form_action = 
"";
 
  100        $this->top_formbuttons = array();
 
  101        $this->hiddenelements = array();
 
  113        $next_class = $this->ctrl->getNextClass($this);
 
  115        $cmd = $this->ctrl->getCmd(
"showSummary");
 
  116        $this->ctrl->setReturn($this, 
"showSummary");
 
  120        switch ($next_class) {
 
  129            case "ilpublicuserprofilegui":
 
  130                include_once(
"./Services/User/classes/class.ilPublicUserProfileGUI.php");
 
  132                $user_profile->setBackUrl($this->ctrl->getLinkTarget($this, 
"showSummary"));
 
  133                $html = $this->ctrl->forwardCommand($user_profile);
 
  137            case "ilcommonactiondispatchergui":
 
  138                include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
 
  140                $this->ctrl->forwardCommand($gui);
 
  144                return $this->$cmd();
 
  157        $this->table_class = $a_val;
 
  175        $this->private_notes_enabled = $a_enable;
 
  183        $this->learning_progress_enabled = $a_enable;
 
  192        $this->feedback_enabled = $a_enable;
 
  200        $this->news_enabled = $a_enable;
 
  208        $this->news_editing = $a_enable;
 
  220        $this->block_property[$a_block_type][$a_property] = $a_value;
 
  225        return $this->block_property;
 
  234        $this->section[$this->sec_nr][
"title"] = $a_title;
 
  235        $this->section[$this->sec_nr][
"hidden"] = (bool) $this->hidden;
 
  243        $this->form_action = $a_form_action;
 
  251        $this->form_action = 
"";
 
  263        $this->section[$this->sec_nr][
"properties"][] =
 
  264            array(
"name" => $a_name, 
"value" => $a_value,
 
  271    public function addPropertyCheckbox($a_name, $a_checkbox_name, $a_checkbox_value, $a_checkbox_label = 
"", $a_checkbox_checked = 
false)
 
  273        $checkbox = 
"<input type=\"checkbox\" name=\"$a_checkbox_name\" value=\"$a_checkbox_value\" id=\"$a_checkbox_name$a_checkbox_value\"";
 
  274        if ($a_checkbox_checked) {
 
  275            $checkbox .= 
" checked=\"checked\"";
 
  278        if (strlen($a_checkbox_label)) {
 
  279            $checkbox .= 
" <label for=\"$a_checkbox_name$a_checkbox_value\">$a_checkbox_label</label>";
 
  281        $this->section[$this->sec_nr][
"properties"][] =
 
  282            array(
"name" => $a_name, 
"value" => $checkbox);
 
  288    public function addPropertyTextinput($a_name, $a_input_name, $a_input_value = 
"", $a_input_size = 
"", $direct_button_command = 
"", $direct_button_label = 
"", $direct_button_primary = 
false)
 
  290        $input = 
"<span class=\"form-inline\"><input class=\"form-control\" type=\"text\" name=\"$a_input_name\" id=\"$a_input_name\"";
 
  291        if (strlen($a_input_value)) {
 
  294        if (strlen($a_input_size)) {
 
  295            $input .= 
" size=\"" . $a_input_size . 
"\"";
 
  298        if (strlen($direct_button_command) && strlen($direct_button_label)) {
 
  300            if ($direct_button_primary) {
 
  301                $css = 
" btn-primary";
 
  303            $input .= 
" <input type=\"submit\" class=\"btn btn-default" . $css . 
"\" name=\"cmd[$direct_button_command]\" value=\"$direct_button_label\" />";
 
  306        $this->section[$this->sec_nr][
"properties"][] =
 
  307            array(
"name" => 
"<label for=\"$a_input_name\">$a_name</label>", 
"value" => $input);
 
  313    public function addButton($a_title, $a_link, $a_frame = 
"", $a_position = 
"top", $a_primary = 
false)
 
  315        if ($a_position == 
"top") {
 
  316            $this->top_buttons[] =
 
  317                array(
"title" => $a_title,
"link" => $a_link,
"target" => $a_frame,
"primary" => $a_primary);
 
  327        if ($a_position == 
"top") {
 
  329                $this->top_formbuttons,
 
  330                array(
"command" => $a_command, 
"title" => $a_title)
 
  337        array_push($this->hiddenelements, array(
"name" => $a_name, 
"value" => $a_value));
 
  347        $lng->loadLanguageModule(
"meta");
 
  349        include_once(
"./Services/MetaData/classes/class.ilMD.php");
 
  352        if ($md_gen = $md->getGeneral()) {
 
  356            foreach ($md_gen->getDescriptionIds() as 
$id) {
 
  357                $md_des = $md_gen->getDescription(
$id);
 
  364            foreach ($ids = $md_gen->getLanguageIds() as 
$id) {
 
  365                $md_lan = $md_gen->getLanguage(
$id);
 
  366                if ($md_lan->getLanguageCode() != 
"") {
 
  367                    $langs[] = 
$lng->txt(
"meta_l_" . $md_lan->getLanguageCode());
 
  370            $langs = implode($langs, 
", ");
 
  374            foreach ($ids = $md_gen->getKeywordIds() as 
$id) {
 
  375                $md_key = $md_gen->getKeyword(
$id);
 
  376                $keywords[] = $md_key->getKeyword();
 
  378            $keywords = implode($keywords, 
", ");
 
  382        if (is_object($lifecycle = $md->getLifecycle())) {
 
  384            foreach (($ids = $lifecycle->getContributeIds()) as $con_id) {
 
  385                $md_con = $lifecycle->getContribute($con_id);
 
  386                if ($md_con->getRole() == 
"Author") {
 
  387                    foreach ($ent_ids = $md_con->getEntityIds() as $ent_id) {
 
  388                        $md_ent = $md_con->getEntity($ent_id);
 
  389                        $author = $author . $sep . $md_ent->getEntity();
 
  398        if (is_object($rights = $md->getRights())) {
 
  399            include_once(
'Services/MetaData/classes/class.ilMDUtils.php');
 
  404        #if(is_object($educational = $md->getEducational())) 
  406        #       $learning_time = $educational->getTypicalLearningTime(); 
  409        if (is_object($educational = $md->getEducational())) {
 
  410            if ($seconds = $educational->getTypicalLearningTimeSeconds()) {
 
  428                $lng->txt(
"language"),
 
  432        if ($keywords != 
"") {  
 
  434                $lng->txt(
"keywords"),
 
  444        if ($copyright != 
"") {         
 
  446                $lng->txt(
"meta_copyright"),
 
  450        if ($learning_time != 
"") {             
 
  452                $lng->txt(
"meta_typical_learning_time"),
 
  470        $a_obj = $this->gui_object->object;
 
  473        if (is_object($a_obj)) {
 
  475            $type = $a_obj->getType();
 
  476            $ref_id = $a_obj->getRefId();
 
  479                include_once 
'Services/WebServices/ECS/classes/class.ilECSServerSettings.php';
 
  482                        $lng->txt(
"object_id"),
 
  487                include_once 
'Services/PermanentLink/classes/class.ilPermanentLinkGUI.php';
 
  489                $pm->setIncludePermanentLinkText(
false);
 
  490                $pm->setAlignCenter(
false);
 
  492                    $lng->txt(
"perma_link"),
 
  500                if ($ilAccess->checkAccess(
"write", 
"", $ref_id) ||
 
  501                    $ilAccess->checkAccess(
"edit_permissions", 
"", $ref_id)) {
 
  502                    $obj_id = $a_obj->getId();
 
  505                    foreach ($rs as 
$r) {
 
  510                    if (count($refs) > 1) {
 
  512                        foreach ($refs as 
$r) {
 
  514                            $cont_loc->addContextItems(
$r, 
true);
 
  515                            $links.= $sep . $cont_loc->getHTML();
 
  520                            $lng->txt(
"res_links"),
 
  521                            '<div class="small">' . 
$links . 
'</div>' 
  531            $lng->txt(
"create_date"),
 
  536        if (
$ilUser->getId() != ANONYMOUS_USER_ID and $a_obj->getOwner()) {
 
  537            include_once 
'./Services/Object/classes/class.ilObjectFactory.php';
 
  538            include_once 
'./Services/User/classes/class.ilObjUser.php';
 
  546            if (!is_object($ownerObj) || $ownerObj->getType() != 
"usr") {               
 
  548            } elseif ($ownerObj->hasPublicProfile()) {
 
  549                $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui", 
"user_id", $ownerObj->getId());
 
  550                $this->
addProperty(
$lng->txt(
"owner"), $ownerObj->getPublicName(), 
$ilCtrl->getLinkTargetByClass(
"ilpublicuserprofilegui", 
"getHTML"));
 
  557        require_once 
'Services/WebDAV/classes/class.ilDiskQuotaActivationChecker.php';
 
  558        if (
$ilUser->getId() != ANONYMOUS_USER_ID &&
 
  560            $size = $a_obj->getDiskUsage();
 
  561            if (
$size !== 
null) {
 
  566        require_once 
'Services/Tracking/classes/class.ilChangeEvent.php';
 
  568            if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
 
  572                $count_user_reads = 0;
 
  573                $count_anonymous_reads = 0;
 
  574                foreach ($readEvents as $evt) {
 
  575                    if ($evt[
'usr_id'] == ANONYMOUS_USER_ID) {
 
  576                        $count_anonymous_reads += $evt[
'read_count'];
 
  578                        $count_user_reads += $evt[
'read_count'];
 
  586                if ($count_anonymous_reads > 0) {
 
  587                    $this->
addProperty($this->lng->txt(
"readcount_anonymous_users"), $count_anonymous_reads);
 
  589                if ($count_user_reads > 0) {
 
  590                    $this->
addProperty($this->lng->txt(
"readcount_users"), $count_user_reads);
 
  592                if ($count_users > 0) {
 
  593                    $this->
addProperty($this->lng->txt(
"accesscount_registered_users"), $count_users);
 
  600        require_once(
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
 
  602            if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
 
  603                require_once 
'Services/WebDAV/classes/class.ilDAVServer.php';
 
  607                if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
 
  608                    $locks =&$davLocks->getLocksOnObjectObj($a_obj->getId());
 
  609                    if (count($locks) > 0) {
 
  610                        $lockUser = 
new ilObjUser($locks[0][
'ilias_owner']);
 
  612                            $this->lng->txt(
"in_use_by"),
 
  613                            $lockUser->getPublicName(),
 
  614                            "./ilias.php?user=" . $locks[0][
'ilias_owner'] . 
'&cmd=showUserProfile&cmdClass=ilpersonaldesktopgui&cmdNode=1&baseClass=ilPersonalDesktopGUI' 
  642        include_once(
"Services/Block/classes/class.ilColumnGUI.php");
 
  677        include_once(
"Services/Block/classes/class.ilColumnGUI.php");
 
  681        if (
$ilCtrl->getNextClass() == 
"ilcolumngui" &&
 
  687                if ($this->news_enabled) {
 
  704        $column_gui->setEnableEdit($this->news_editing);
 
  705        $column_gui->setRepositoryMode(
true);
 
  711        $this->open_form_tag = $a_val;
 
  716        $this->close_form_tag = $a_val;
 
  731        $tpl = 
new ilTemplate(
"tpl.infoscreen.html", 
true, 
true, 
"Services/InfoScreen");
 
  734        if ($this->form_action == 
"") {
 
  738        require_once 
'Services/jQuery/classes/class.iljQueryUtil.php';
 
  742            $tpl->touchBlock(
"hidden_js");
 
  743            if ($this->show_hidden_toggle) {
 
  744                $this->
addButton(
$lng->txt(
"show_hidden_sections"), 
"JavaScript:toggleSections(this, '" . 
$lng->txt(
"show_hidden_sections") . 
"', '" . 
$lng->txt(
"hide_visible_sections") . 
"');");
 
  752        if (count($this->top_buttons) > 0) {
 
  753            $tpl->addBlockfile(
"TOP_BUTTONS", 
"top_buttons", 
"tpl.buttons.html");
 
  755            foreach ($this->top_buttons as $button) {
 
  757                $tpl->setCurrentBlock(
"btn_cell");
 
  758                $tpl->setVariable(
"BTN_LINK", $button[
"link"]);
 
  759                $tpl->setVariable(
"BTN_TARGET", $button[
"target"]);
 
  760                $tpl->setVariable(
"BTN_TXT", $button[
"title"]);
 
  761                if ($button[
"primary"]) {
 
  762                    $tpl->setVariable(
"BTN_CLASS", 
" btn-primary");
 
  764                $tpl->parseCurrentBlock();
 
  769        if ((count($this->top_formbuttons) > 0) && (strlen($this->form_action) > 0)) {
 
  770            $tpl->addBlockfile(
"TOP_FORMBUTTONS", 
"top_submitbuttons", 
"tpl.submitbuttons.html", 
"Services/InfoScreen");
 
  772            foreach ($this->top_formbuttons as $button) {
 
  774                $tpl->setCurrentBlock(
"btn_submit_cell");
 
  775                $tpl->setVariable(
"BTN_COMMAND", $button[
"command"]);
 
  776                $tpl->setVariable(
"BTN_NAME", $button[
"title"]);
 
  777                $tpl->parseCurrentBlock();
 
  782        if (strlen($this->form_action) > 0) {
 
  783            if ($this->open_form_tag) {
 
  784                $tpl->setCurrentBlock(
"formtop");
 
  785                $tpl->setVariable(
"FORMACTION", $this->form_action);
 
  786                $tpl->parseCurrentBlock();
 
  789            if ($this->close_form_tag) {
 
  790                $tpl->touchBlock(
"formbottom");
 
  794        if (count($this->hiddenelements)) {
 
  795            foreach ($this->hiddenelements as $hidden) {
 
  796                $tpl->setCurrentBlock(
"hidden_element");
 
  797                $tpl->setVariable(
"HIDDEN_NAME", $hidden[
"name"]);
 
  798                $tpl->setVariable(
"HIDDEN_VALUE", $hidden[
"value"]);
 
  799                $tpl->parseCurrentBlock();
 
  806            $tpl->setCurrentBlock(
"learning_progress");
 
  808            $tpl->parseCurrentBlock();
 
  812        if ($this->private_notes_enabled && !
$ilSetting->get(
'disable_notes')) {
 
  814            $tpl->setCurrentBlock(
"notes");
 
  816            $tpl->parseCurrentBlock();
 
  820        if (is_object($this->gui_object->object)) {
 
  822            if ($tags_set->get(
"enable") && 
$ilUser->getId() != ANONYMOUS_USER_ID) {
 
  827        if (is_object($this->gui_object->object)) {
 
  832        for (
$i = 1; 
$i <= $this->sec_nr; 
$i++) {
 
  833            if (is_array($this->section[
$i][
"properties"])) {
 
  835                foreach ($this->section[
$i][
"properties"] as $property) {
 
  836                    if ($property[
"name"] != 
"") {
 
  837                        if ($property[
"link"] == 
"") {
 
  838                            $tpl->setCurrentBlock(
"pv");
 
  839                            $tpl->setVariable(
"TXT_PROPERTY_VALUE", $property[
"value"]);
 
  840                            $tpl->parseCurrentBlock();
 
  842                            $tpl->setCurrentBlock(
"lpv");
 
  843                            $tpl->setVariable(
"TXT_PROPERTY_LVALUE", $property[
"value"]);
 
  844                            $tpl->setVariable(
"LINK_PROPERTY_VALUE", $property[
"link"]);
 
  845                            $tpl->parseCurrentBlock();
 
  847                        $tpl->setCurrentBlock(
"property_row");
 
  848                        $tpl->setVariable(
"TXT_PROPERTY", $property[
"name"]);
 
  849                        $tpl->parseCurrentBlock();
 
  851                        $tpl->setCurrentBlock(
"property_full_row");
 
  852                        $tpl->setVariable(
"TXT_PROPERTY_FULL_VALUE", $property[
"value"]);
 
  853                        $tpl->parseCurrentBlock();
 
  858                if ($this->section[
$i][
"hidden"]) {
 
  859                    $tpl->setVariable(
"SECTION_HIDDEN", 
" style=\"display:none;\"");
 
  860                    $tpl->setVariable(
"SECTION_ID", 
"hidable_" . 
$i);
 
  862                    $tpl->setVariable(
"SECTION_ID", 
$i);
 
  865                $tpl->setVariable(
"TXT_SECTION", $this->section[
$i][
"title"]);
 
  866                $tpl->touchBlock(
"row");
 
  878        if (!
$rbacsystem->checkAccess(
'read', $this->gui_object->object->getRefId())) {
 
  881        if (
$ilUser->getId() == ANONYMOUS_USER_ID) {
 
  885        include_once(
"Services/Tracking/classes/class.ilObjUserTracking.php");
 
  890        include_once 
'./Services/Object/classes/class.ilObjectLP.php';
 
  896        include_once 
'Services/Tracking/classes/class.ilLPMarks.php';
 
  898        $this->lng->loadLanguageModule(
'trac');
 
  904            $this->lng->txt(
'learning_progress')
 
  906        $a_tpl->parseCurrentBlock();
 
  910        $i_tpl = 
new ilTemplate(
"tpl.lp_edit_manual_info_page.html", 
true, 
true, 
"Services/Tracking");
 
  911        $i_tpl->setVariable(
"INFO_EDITED", $this->lng->txt(
"trac_info_edited"));
 
  915                $this->gui_object->object->getId()
 
  918            array(0 => $this->lng->txt(
'trac_not_completed'),
 
  919                      1 => $this->lng->txt(
'trac_completed')),
 
  923        $i_tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
 
  924        $a_tpl->setCurrentBlock(
"pv");
 
  925        $a_tpl->setVariable(
"TXT_PROPERTY_VALUE", $i_tpl->get());
 
  926        $a_tpl->parseCurrentBlock();
 
  927        $a_tpl->setCurrentBlock(
"property_row");
 
  928        $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_status'));
 
  929        $a_tpl->parseCurrentBlock();
 
  934        if ($this->gui_object->object->getType() == 
'lm' ||
 
  935           $this->gui_object->object->getType() == 
'htlm') {
 
  936            $a_tpl->setCurrentBlock(
"pv");
 
  938            include_once 
'Services/Tracking/classes/class.ilLearningProgress.php';
 
  940            if ($progress[
'access_time']) {
 
  942                    "TXT_PROPERTY_VALUE",
 
  947                    "TXT_PROPERTY_VALUE",
 
  948                    $this->lng->txt(
'trac_not_accessed')
 
  952            $a_tpl->parseCurrentBlock();
 
  953            $a_tpl->setCurrentBlock(
"property_row");
 
  954            $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_last_access'));
 
  955            $a_tpl->parseCurrentBlock();
 
  959            $a_tpl->setCurrentBlock(
"pv");
 
  961                "TXT_PROPERTY_VALUE",
 
  962                (
int) $progress[
'visits']
 
  964            $a_tpl->parseCurrentBlock();
 
  965            $a_tpl->setCurrentBlock(
"property_row");
 
  966            $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_visits'));
 
  967            $a_tpl->parseCurrentBlock();
 
  971            if ($this->gui_object->object->getType() == 
'lm') {
 
  973                $a_tpl->setCurrentBlock(
"pv");
 
  975                    "TXT_PROPERTY_VALUE",
 
  978                $a_tpl->parseCurrentBlock();
 
  979                $a_tpl->setCurrentBlock(
"property_row");
 
  980                $a_tpl->setVariable(
"TXT_PROPERTY", $this->lng->txt(
'trac_spent_time'));
 
  981                $a_tpl->parseCurrentBlock();
 
  987        $a_tpl->touchBlock(
"row");
 
  994        include_once 
'Services/Tracking/classes/class.ilLPMarks.php';
 
  996        $lp_marks = 
new ilLPMarks($this->gui_object->object->getId(), 
$ilUser->getId());
 
  997        $lp_marks->setCompleted((
bool) 
$_POST[
'lp_edit']);
 
 1000        require_once 
'Services/Tracking/classes/class.ilLPStatusWrapper.php';
 
 1003        $this->lng->loadLanguageModule(
'trac');
 
 1005        $this->ctrl->redirect($this, 
""); 
 
 1019        $next_class = $this->ctrl->getNextClass($this);
 
 1020        include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
 
 1022            $this->gui_object->object->getId(),
 
 1024            $this->gui_object->object->getType()
 
 1029            $notes_gui->enablePublicNotes(
false);
 
 1031            $ref_id = $this->gui_object->object->getRefId();
 
 1032            $has_write = $ilAccess->checkAccess(
"write", 
"", $ref_id);
 
 1034            if ($has_write && 
$ilSetting->get(
"comments_del_tutor", 1)) {
 
 1035                $notes_gui->enablePublicNotesDeletion(
true);
 
 1043                $ilAccess->checkAccess(
"edit_permissions", 
"", $ref_id)) {
 
 1044                $notes_gui->enableCommentsSettings();
 
 1052        if ($next_class == 
"ilnotegui") {
 
 1053            $html = $this->ctrl->forwardCommand($notes_gui);
 
 1055            $html = $notes_gui->getNotesHTML();
 
 1070        if (strlen($a_section)) {
 
 1073        include_once(
'Services/LDAP/classes/class.ilLDAPRoleGroupMapping.php');
 
 1075        if ($infos = $ldap_mapping->getInfoStrings($this->gui_object->object->getId())) {
 
 1076            $info_combined = 
'<div style="color:green;">';
 
 1078            foreach ($infos as $info_string) {
 
 1080                    $info_combined .= 
'<br />';
 
 1082                $info_combined .= $info_string;
 
 1084            $info_combined .= 
'</div>';
 
 1085            $this->
addProperty($this->lng->txt(
'applications'), $info_combined);
 
 1094        $this->
getTabs($this->tabs_gui);
 
 1106        $next_class = $this->ctrl->getNextClass($this);
 
 1107        $force_active = ($next_class == 
"ilnotegui")
 
 1113            $this->ctrl->getLinkTarget($this, 
"showSummary"),
 
 1114            array(
"showSummary", 
""),
 
 1130        $lng->loadLanguageModule(
"tagging");
 
 1133        include_once(
"Services/Tagging/classes/class.ilTaggingGUI.php");
 
 1135        $tagging_gui->setObject(
 
 1136            $this->gui_object->object->getId(),
 
 1137            $this->gui_object->object->getType()
 
 1142        if ($tags_set->get(
"enable_all_users")) {
 
 1144                $lng->txt(
"tagging_all_users"),
 
 1145                $tagging_gui->getAllUserTagsForObjectHTML()
 
 1150            $lng->txt(
"tagging_my_tags"),
 
 1151            $tagging_gui->getTaggingInputHTML()
 
 1157        include_once(
"Services/Tagging/classes/class.ilTaggingGUI.php");
 
 1159        $tagging_gui->setObject(
 
 1160            $this->gui_object->object->getId(),
 
 1161            $this->gui_object->object->getType()
 
 1163        $tagging_gui->saveInput();
 
 1166        $this->ctrl->redirect($this, 
""); 
 
 1173        $this->hidden = 
true;
 
 1174        $this->show_hidden_toggle = (bool) $a_add_toggle;
 
 1181        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, $a_skip_day=false, $a_include_wd=false)
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 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)
inits and adds the jQuery JS-File to the global or a passed template
if(!array_key_exists('StateId', $_REQUEST)) $id