4define (
"IL_LIST_AS_TRIGGER", 
"trigger");
 
    5define (
"IL_LIST_FULL", 
"full");
 
  131                $this->rbacsystem = $rbacsystem;
 
  132                $this->
ilias = $ilias;
 
  136                $this->path_enabled = 
false;
 
  148                include_once(
'Services/LDAP/classes/class.ilLDAPRoleGroupMapping.php');
 
  151                $lng->loadLanguageModule(
"obj");
 
  163                $this->container_obj = $container_obj;
 
  175                return $this->container_obj;
 
  187                $this->static_link_enabled = 
true;
 
  188                $this->delete_enabled = 
true;
 
  189                $this->cut_enabled = 
true;
 
  190                $this->subscribe_enabled = 
true;
 
  191                $this->link_enabled = 
false;
 
  192                $this->copy_enabled = 
false;
 
  193                $this->payment_enabled = 
false;
 
  194                $this->progress_enabled = 
false;
 
  195                $this->notice_properties_enabled = 
true;
 
  196                $this->info_screen_enabled = 
false;
 
  198                $this->gui_class_name = 
"";                     
 
  201                include_once(
'./Services/Object/classes/class.ilObjectAccess.php');
 
  214                $this->properties_enabled = $a_status;
 
  236                $this->preconditions_enabled = $a_status;
 
  254                $this->notice_properties_enabled = $a_status;
 
  276                $this->description_enabled = $a_status;
 
  310                $this->search_fragment_enabled = $a_status;
 
  322                $this->path_linked = $a_status;
 
  340                $this->enabled_relevance = $a_status;    
 
  350                $this->relevance = $a_rel; 
 
  370                $this->icons_enabled = $a_status;
 
  390                $this->checkboxes_enabled = $a_status;
 
  410                $this->expand_enabled = $a_status;
 
  425                $this->is_expanded = $a_status;
 
  440                $this->position_enabled = 
true;
 
  441                $this->position_field_index = $a_field_index;
 
  442                $this->position_value = $a_position_value;
 
  453                $this->delete_enabled = $a_status;
 
  465                return $this->delete_enabled;
 
  476                $this->cut_enabled = $a_status;
 
  487                return $this->cut_enabled;
 
  498                $this->copy_enabled = $a_status;
 
  520                $this->subscribe_enabled = $a_status;
 
  531                return $this->subscribe_enabled;
 
  541                $this->payment_enabled = $a_status;
 
  552                return $this->payment_enabled;
 
  562                $this->link_enabled = $a_status;
 
  573                return $this->link_enabled;
 
  585                $this->path_enabled = $a_path;
 
  586                $this->path_start_node = (int)$a_start_node;
 
  596                return $this->path_enabled;
 
  607                $this->commands_enabled = $a_status;
 
  608                $this->std_cmd_only = $a_std_only;
 
  628                $this->info_screen_enabled = $a_info_screen;
 
  638                $this->sub_item_html[] = $a_html;
 
  660                $this->progress_enabled = $a_status;
 
  684                $this->substitutions_enabled = $a_status;
 
  708                $this->item_detail_links_enabled = $a_status;
 
  731                $this->item_detail_links = $a_detail_links;
 
  732                $this->item_detail_links_intro = $a_intro_txt;
 
  744                if(!count($this->item_detail_links))
 
  748                if(strlen($this->item_detail_links_intro))
 
  750                        $this->tpl->setCurrentBlock(
'item_detail_intro');
 
  751                        $this->tpl->setVariable(
'ITEM_DETAIL_INTRO_TXT',$this->item_detail_links_intro);
 
  752                        $this->tpl->parseCurrentBlock();                        
 
  755                foreach($this->item_detail_links as $info)
 
  757                        $this->tpl->setCurrentBlock(
'item_detail_link');
 
  758                        $this->tpl->setVariable(
'ITEM_DETAIL_LINK_TARGET',$info[
'target']);
 
  759                        $this->tpl->setVariable(
'ITEM_DETAIL_LINK_DESC',$info[
'desc']);
 
  760                        $this->tpl->setVariable(
'ITEM_DETAIL_LINK_HREF',$info[
'link']);
 
  761                        $this->tpl->setVariable(
'ITEM_DETAIL_LINK_NAME',$info[
'name']);
 
  762                        $this->tpl->parseCurrentBlock();                        
 
  764                $this->tpl->setCurrentBlock(
'item_detail_links');
 
  765                $this->tpl->parseCurrentBlock();
 
  776                $this->title = $a_title;
 
  795                $this->description = $a_description;
 
  805                return $this->description;
 
  815                $this->search_fragment = $a_text; 
 
  834                $this->separate_commands = $a_val;
 
  867                $this->additional_information = $a_val;
 
  889                $this->details_level = $a_level;
 
  908                $this->repository_transfer_enabled = (bool)$a_value;
 
  918                $this->restrict_to_goto = (bool)$a_value;
 
  936                $cache_prefix = 
null;
 
  937                if($this->context == self::CONTEXT_WORKSPACE || $this->context == self::CONTEXT_WORKSPACE_SHARING)
 
  939                        $cache_prefix = 
"wsp";
 
  940                        if(!$this->ws_access)
 
  942                                include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
 
  947                if (isset($this->access_cache[$a_permission][
"-".$a_cmd][$cache_prefix.$a_ref_id]))
 
  949                        return $this->access_cache[$a_permission][
"-".$a_cmd][$cache_prefix.$a_ref_id];
 
  952                if($this->context == self::CONTEXT_REPOSITORY || $this->context == self::CONTEXT_SHOP)
 
  954                        $access = $ilAccess->checkAccess($a_permission,$a_cmd,$a_ref_id,$a_type,$a_obj_id);
 
  955                        if ($ilAccess->getPreventCachingLastResult())
 
  957                                $this->prevent_access_caching = 
true;
 
  962                        $access = $this->ws_access->checkAccess($a_permission,$a_cmd,$a_ref_id,$a_type);
 
  965                $this->access_cache[$a_permission][
"-".$a_cmd][$cache_prefix.$a_ref_id] = $access;
 
  978        function initItem($a_ref_id, $a_obj_id, $a_title = 
"", $a_description = 
"", $a_context = self::CONTEXT_REPOSITORY)
 
  980                $this->offline_mode = 
false;
 
  981                include_once(
'Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php');
 
  982                if ($this->type == 
"sahs") {
 
  985                $this->access_cache = array();
 
  986                $this->ref_id = $a_ref_id;
 
  987                $this->obj_id = $a_obj_id;
 
  988                $this->context = $a_context;
 
  991                #$this->description = $a_description; 
  994                $this->adm_commands_included = 
false;
 
  995                $this->prevent_access_caching = 
false;
 
 1001                $this->condition_target = array(
 
 1002                        'ref_id' => $a_ref_id,
 
 1003                        'obj_id' => $a_obj_id,
 
 1004                        'target_type' => $a_target_type
 
 1010                $this->condition_target = array();
 
 1015                $this->title_link_disabled = $a_status;
 
 1021                $this->default_command_params = $a_params;
 
 1036                if($this->static_link_enabled and !$this->default_command_params)
 
 1038                        include_once(
'./Services/Link/classes/class.ilLink.php');
 
 1041                                $command[
'link'] = $link;
 
 1042                                $command[
'frame'] = 
'_top';
 
 1045                if($this->default_command_params)
 
 1048                        foreach($this->default_command_params as $name => $value)
 
 1050                                $params[] = $name.
'='.$value;                           
 
 1052                        $params = implode(
'&', $params);
 
 1055                        if(!stristr($command[
'link'], 
'?'))
 
 1057                                $command[
'link'] .= 
'?'.$params;
 
 1061                                $command[
'link'] .= 
'&'.$params;
 
 1081                if($this->context == self::CONTEXT_REPOSITORY || $this->context == self::CONTEXT_SHOP)
 
 1084                        require_once (
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
 
 1087                                require_once (
'Services/WebDAV/classes/class.ilDAVServer.php');
 
 1094                                return $davServer->getMountURI($this->ref_id).
 
 1095                                                        '" folder="'.$davServer->getFolderURI($this->ref_id);
 
 1099                        $this->ctrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", $this->
getCommandId());
 
 1100                        $cmd_link = $this->ctrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
 
 1101                        $this->ctrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", 
$_GET[
"ref_id"]);
 
 1112                        $this->ctrl->setParameterByClass($this->gui_class_name, 
"ref_id", 
"");
 
 1113                        $this->ctrl->setParameterByClass($this->gui_class_name, 
"wsp_id", $this->ref_id);
 
 1114                        return $this->ctrl->getLinkTargetByClass($this->gui_class_name, $a_cmd);
 
 1131                require_once (
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
 
 1137                if($a_cmd == 
'fileManagerLaunch')
 
 1172                global $objDefinition;
 
 1182                if($this->context == self::CONTEXT_REPOSITORY)
 
 1185                        require_once (
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
 
 1188                                require_once (
'Services/WebDAV/classes/class.ilDAVServer.php');
 
 1189                                global $ilias, 
$lng;
 
 1192                                require_once(
'Services/WebDAV/classes/class.ilDAVLocks.php');
 
 1194                                if ($ilias->account->getId() != ANONYMOUS_USER_ID)
 
 1196                                        $locks =& $davLocks->getLocksOnObjectObj($this->obj_id);
 
 1197                                        if (count($locks) > 0)
 
 1199                                                $lockUser = 
new ilObjUser($locks[0][
'ilias_owner']);
 
 1203                                                        "property" => 
$lng->txt(
"in_use_by"),
 
 1204                                                        "value" => $lockUser->getLogin(),
 
 1205                                                        "link" =>       
"./ilias.php?user=".$locks[0][
'ilias_owner'].
'&cmd=showUserProfile&cmdClass=ilpersonaldesktopgui&cmdNode=1&baseClass=ilPersonalDesktopGUI',
 
 1217                                if (preg_match(
'/^(\\.|\\.\\.)$/', $this->title))
 
 1219                                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_interoperability"),
 
 1220                                                "value" => 
$lng->txt(
"filename_special_filename"),
 
 1221                                                'propertyNameVisible' => 
false);
 
 1223                                else if (preg_match(
'/^\\./', $this->title))
 
 1225                                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_visibility"),
 
 1226                                                "value" => 
$lng->txt(
"filename_hidden_unix_file"),
 
 1227                                                'propertyNameVisible' => 
false);
 
 1229                                else if (preg_match(
'/~$/', $this->title))
 
 1231                                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_visibility"),
 
 1232                                                "value" => 
$lng->txt(
"filename_hidden_backup_file"),
 
 1233                                                'propertyNameVisible' => 
false);
 
 1235                                else if (preg_match(
'/[\\/]/', $this->title))
 
 1237                                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_interoperability"),
 
 1238                                                "value" => 
$lng->txt(
"filename_special_characters"),
 
 1239                                                'propertyNameVisible' => 
false);
 
 1241                                else if (preg_match(
'/[\\\\\\/:*?"<>|]/', $this->title))
 
 1243                                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_interoperability"),
 
 1244                                                "value" => 
$lng->txt(
"filename_windows_special_characters"),
 
 1245                                                'propertyNameVisible' => 
false);
 
 1247                                else if (preg_match(
'/\\.$/', $this->title))
 
 1249                                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_interoperability"),
 
 1250                                                "value" => 
$lng->txt(
"filename_windows_empty_extension"),
 
 1251                                                'propertyNameVisible' => 
false);
 
 1253                                else if (preg_match(
'/^(\\.|\\.\\.)$/', $this->title))
 
 1255                                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_interoperability"),
 
 1256                                                "value" => 
$lng->txt(
"filename_special_filename"),
 
 1257                                                'propertyNameVisible' => 
false);
 
 1259                                else if (preg_match(
'/#/', $this->title))
 
 1261                                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_interoperability"),
 
 1262                                                "value" => 
$lng->txt(
"filename_windows_webdav_issue"),
 
 1263                                                'propertyNameVisible' => 
false);
 
 1269                        require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
 
 1273                                if ($ilias->account->getId() != ANONYMOUS_USER_ID)
 
 1279                                        $isContainer = in_array($this->type, array(
'cat', 
'fold', 
'crs', 
'grp'));
 
 1287                                                                "value" => 
$lng->txt(
'state_changed_inside'),
 
 1288                                                                'propertyNameVisible' => 
false);
 
 1296                                        elseif($this->type == 
"file")
 
 1303                                                                "value" => 
$lng->txt(($state == 1) ? 
'state_unread' : 
'state_changed'),
 
 1304                                                                'propertyNameVisible' => 
false);
 
 1319                $a_alert = 
false, $a_newline = 
false)
 
 1321                $this->cust_prop[] = array(
"property" => $a_property, 
"value" => $a_value,
 
 1322                        "alert" => $a_alert, 
"newline" => $a_newline);
 
 1330                if (is_array($this->cust_prop))
 
 1332                        foreach($this->cust_prop as $prop)
 
 1349                        if($prop[
'alert'] == 
true)
 
 1362                $this->notice_prop = array();
 
 1363                if($infos = $this->ldap_mapping->getInfoStrings($this->obj_id,
true))
 
 1365                        foreach($infos as $info)
 
 1367                                $this->notice_prop[] = array(
'value' => $info);
 
 1370                return $this->notice_prop ? $this->notice_prop : array();
 
 1377                $this->cust_commands[] =
 
 1378                        array(
"link" => $a_link, 
"lang_var" => $a_lang_var,
 
 1379                        "frame" => $a_frame, 
"onclick" => $onclick);
 
 1388                $this->force_visible_only = $a_stat;
 
 1427                $ref_commands = array();
 
 1428                foreach($this->commands as $command)
 
 1430                        $permission = $command[
"permission"];
 
 1431                        $cmd = $command[
"cmd"];
 
 1432                        $lang_var = $command[
"lang_var"];
 
 1434                        $info_object = 
null;
 
 1436                        if (isset($command[
"txt"]))
 
 1438                                $txt = $command[
"txt"];
 
 1444                        if ($ilias->account->getId() == ANONYMOUS_USER_ID &&
 
 1445                                $command[
'enable_anonymous'] == 
'false')
 
 1453                        $ilBench->start(
"ilObjectListGUI", 
"4110_get_commands_check_access");
 
 1456                        $ilBench->stop(
"ilObjectListGUI", 
"4110_get_commands_check_access");
 
 1463                                $access_granted = 
true;
 
 1467                                $access_granted = 
false;
 
 1468                                $info_object = $ilAccess->getInfo();
 
 1471                        if (!isset($command[
"default"]))
 
 1473                                $command[
"default"] = 
"";
 
 1475                        $ref_commands[] = array(
 
 1476                                "permission" => $permission,
 
 1478                                "link" => $cmd_link,
 
 1479                                "frame" => $cmd_frame,
 
 1480                                "lang_var" => $lang_var,
 
 1482                                "granted" => $access_granted,
 
 1483                                "access_info" => $info_object,
 
 1484                                "img" => $cmd_image,
 
 1485                                "default" => $command[
"default"]
 
 1489                return $ref_commands;
 
 1502                if ($this->type == 
"sahs" && $this->offline_mode) {
 
 1503                        return $this->type . 
"_offline";        
 
 1518                if($this->restrict_to_goto)
 
 1520                        $this->default_command = array(
"frame" => 
"",
 
 1525                                !$this->default_command || 
 
 1527                                $this->title_link_disabled
 
 1531                        $this->tpl->setCurrentBlock(
"item_title");
 
 1532                        $this->tpl->setVariable(
"TXT_TITLE", $this->
getTitle());
 
 1533                        $this->tpl->parseCurrentBlock();
 
 1537                        $this->default_command[
'link'] = $this->
modifyTitleLink($this->default_command[
'link']);
 
 1539                        $this->default_command[
"link"] = 
 
 1540                                $this->
modifySAHSlaunch($this->default_command[
"link"],$this->default_command[
"frame"]);
 
 1542                        if ($this->default_command[
"frame"] != 
"")
 
 1544                                        $this->tpl->setCurrentBlock(
"title_linked_frame");
 
 1545                                        $this->tpl->setVariable(
"TARGET_TITLE_LINKED", $this->default_command[
"frame"]);
 
 1546                                        $this->tpl->parseCurrentBlock();
 
 1550                        #var_dump("<pre>",$this->default_command['link'],"</pre>");
 
 1551                        $this->default_command[
"link"] = 
 
 1554                        #var_dump("<pre>",$this->default_command['link'],"</pre>");
 
 1558                        $this->tpl->setCurrentBlock(
"item_title_linked");
 
 1559                        $this->tpl->setVariable(
"TXT_TITLE_LINKED", $this->
getTitle());
 
 1560                        $this->tpl->setVariable(
"HREF_TITLE_LINKED", $this->default_command[
"link"]);
 
 1563                        include_once(
"./Services/Preview/classes/class.ilPreview.php");
 
 1566                                include_once(
"./Services/Preview/classes/class.ilPreviewGUI.php");
 
 1569                                $access_handler = 
null;
 
 1571                                switch ($this->context)
 
 1576                                                include_once(
"./Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php");
 
 1583                                                $access_handler = $ilAccess;
 
 1589                                $preview_status_class = 
"";
 
 1590                                $preview_text_topic = 
"preview_show";
 
 1593                                        $preview_status_class = 
"ilPreviewStatusNone";
 
 1594                                        $preview_text_topic = 
"preview_none";
 
 1596                                $this->tpl->setCurrentBlock(
"item_title_linked");
 
 1597                                $this->tpl->setVariable(
"PREVIEW_STATUS_CLASS", $preview_status_class);
 
 1598                                $this->tpl->setVariable(
"SRC_PREVIEW_ICON", 
ilUtil::getImagePath(
"preview.png", 
"Services/Preview"));
 
 1599                                $this->tpl->setVariable(
"TXT_PREVIEW", $this->lng->txt($preview_text_topic));
 
 1600                                $this->tpl->setVariable(
"SCRIPT_PREVIEW_CLICK", 
$preview->getJSCall($this->getUniqueItemId(
true)));
 
 1601                                $this->tpl->parseCurrentBlock();
 
 1604                        $this->tpl->parseCurrentBlock();
 
 1607                if ($this->bold_title == 
true)
 
 1609                        $this->tpl->touchBlock(
'bold_title_start');
 
 1610                        $this->tpl->touchBlock(
'bold_title_end');
 
 1616                switch($this->context)
 
 1619                                include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
 
 1636                $fields_shown = 
false;
 
 1637                foreach($this->substitutions->getParsedSubstitutions($this->ref_id,$this->obj_id) as 
$data)
 
 1641                                $data[
'name'] = 
'<strong>'.$data[
'name'].
'</strong>';
 
 1642                                $data[
'value'] = 
'<strong>'.$data[
'value'].
'</strong>';
 
 1644                        $this->tpl->touchBlock(
"std_prop");
 
 1645                        $this->tpl->setCurrentBlock(
'item_property');
 
 1646                        if(
$data[
'show_field'])
 
 1648                                $this->tpl->setVariable(
'TXT_PROP',
$data[
'name']);
 
 1650                        $this->tpl->setVariable(
'VAL_PROP',
$data[
'value']);
 
 1651                        $this->tpl->parseCurrentBlock();
 
 1653                        if(
$data[
'newline'])
 
 1655                                $this->tpl->touchBlock(
'newline_prop');
 
 1657                        $fields_shown = 
false;
 
 1662                        $this->tpl->touchBlock(
'newline_prop');
 
 1679                        if(!$this->substitutions->isDescriptionEnabled())
 
 1687                $d = strip_tags(
$d, 
"<b>");
 
 1688                $this->tpl->setCurrentBlock(
"item_description");
 
 1689                $this->tpl->setVariable(
"TXT_DESC", 
$d);
 
 1690                $this->tpl->parseCurrentBlock();
 
 1701                        $this->tpl->setCurrentBlock(
'search_fragment');
 
 1702                        $this->tpl->setVariable(
'TXT_SEARCH_FRAGMENT',$this->
getSearchFragment().
' ...');
 
 1703                        $this->tpl->parseCurrentBlock();
 
 1721                include_once 
"Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php";
 
 1725                $this->tpl->setCurrentBlock(
'relevance');
 
 1726                $this->tpl->setVariable(
'REL_PBAR', $pbar->render());           
 
 1727                $this->tpl->parseCurrentBlock();                
 
 1737                $this->mode = $a_mode;
 
 1755                $this->condition_depth = $a_depth;
 
 1767                if ($a_mode == $this->mode)
 
 1789                if($this->context != self::CONTEXT_WORKSPACE && $this->context != self::CONTEXT_WORKSPACE_SHARING)
 
 1792                        include_once 
"Services/Tracking/classes/class.ilLPStatus.php";
 
 1796                                $props[] = array(
"alert" => 
false,
 
 1797                                        "property" => 
$lng->txt(
"learning_progress"),
 
 1804                        if ($this->
ilias->account->getId() == ANONYMOUS_USER_ID)
 
 1806                                if (!$ilAccess->checkAccess(
"read", 
"", $this->ref_id, $this->type, $this->obj_id))
 
 1808                                        $props[] = array(
"alert" => 
true,
 
 1809                                                "value" => 
$lng->txt(
"no_access_item_public"),
 
 1818                if($this->reference_ref_id)
 
 1821                        $note_obj_id = $this->reference_obj_id;
 
 1824                $redraw_js = 
"il.Object.redrawListItem(".$note_ref_id.
");";
 
 1829                        self::$cnt_tags[$note_obj_id] > 0 ||
 
 1830                        is_array(self::$tags[$note_obj_id])) &&
 
 1831                        (
$ilUser->getId() != ANONYMOUS_USER_ID))
 
 1833                        include_once(
"./Services/Notes/classes/class.ilNoteGUI.php");
 
 1834                        include_once(
"./Services/Tagging/classes/class.ilTaggingGUI.php");
 
 1840                                $props[] = array(
"alert" => 
false,
 
 1841                                        "property" => 
$lng->txt(
"notes_comments"),
 
 1842                                        "value" => 
"<a href='#' onclick=\"return ".
 
 1849                        if ($this->notes_enabled && self::$cnt_notes[$note_obj_id][
IL_NOTE_PRIVATE] > 0)
 
 1851                                $props[] = array(
"alert" => 
false,
 
 1852                                        "property" => 
$lng->txt(
"notes"),
 
 1853                                        "value" => 
"<a href='#' onclick=\"return ".
 
 1859                        if ($this->tags_enabled && 
 
 1860                                (self::$cnt_tags[$note_obj_id] > 0 ||
 
 1861                                is_array(self::$tags[$note_obj_id])))
 
 1864                                if ($tags_set->get(
"enable"))
 
 1869                                        if(is_array(self::$tags[$note_obj_id]))
 
 1871                                                $tags_tmp = array();
 
 1872                                                foreach(self::$tags[$note_obj_id] as $tag => $is_tag_owner)
 
 1876                                                                $tags_tmp[] = 
"<a class=\"ilTag ilTagRelHigh\" href='#' onclick=\"return ".
 
 1877                                                                        $tags_url.
"\">".$tag.
"</a>";
 
 1881                                                                $tags_tmp[] = 
"<span class=\"ilTag ilTagRelMiddle\">".$tag.
"</span>";
 
 1884                                                $tags_value = implode(
" ", $tags_tmp);
 
 1891                                                $tags_value = 
"<a href='#' onclick=\"return ".$tags_url.
"\">".
 
 1892                                                        self::$cnt_tags[$note_obj_id].
"</a>";
 
 1893                                                $prop_text = 
$lng->txt(
"tagging_tags");
 
 1895                                        $props[] = array(
"alert" => 
false,
 
 1896                                                        "property" => $prop_text,
 
 1897                                                        "value" => $tags_value,
 
 1905                if (is_array($props) && count($props) > 0)
 
 1907                        foreach($props as $prop)
 
 1912                                        $this->tpl->touchBlock(
"separator_prop");
 
 1916                                if ($prop[
"alert"] == 
true)
 
 1918                                        $this->tpl->touchBlock(
"alert_prop");
 
 1922                                        $this->tpl->touchBlock(
"std_prop");
 
 1924                                if ($prop[
"newline"] == 
true && $cnt > 1)
 
 1926                                        $this->tpl->touchBlock(
"newline_prop");
 
 1929                                if (isset($prop[
"property"]) && $prop[
'propertyNameVisible'] !== 
false && $prop[
"property"] != 
"")
 
 1932                                        $this->tpl->setCurrentBlock(
"prop_name");
 
 1933                                        $this->tpl->setVariable(
"TXT_PROP", $prop[
"property"]);
 
 1934                                        $this->tpl->parseCurrentBlock();
 
 1936                                $this->tpl->setCurrentBlock(
"item_property");
 
 1940                                        $this->tpl->setVariable(
"LINK_PROP", $prop[
'link']);
 
 1941                                        $this->tpl->setVariable(
"LINK_VAL_PROP", $prop[
"value"]);
 
 1945                                        $this->tpl->setVariable(
"VAL_PROP", $prop[
"value"]);
 
 1948                                $this->tpl->parseCurrentBlock();
 
 1952                        $this->tpl->setCurrentBlock(
"item_properties");
 
 1953                        $this->tpl->parseCurrentBlock();
 
 1960                foreach($this->notice_prop as $property)
 
 1962                        $this->tpl->setCurrentBlock(
'notice_item');
 
 1963                        $this->tpl->setVariable(
'NOTICE_ITEM_VALUE',$property[
'value']);
 
 1964                        $this->tpl->parseCurrentBlock();
 
 1966                $this->tpl->setCurrentBlock(
'notice_property');
 
 1967                $this->tpl->parseCurrentBlock();
 
 1978                global $ilAccess,$ilObjDataCache,
$ilUser;
 
 1980                if(IS_PAYMENT_ENABLED && $this->payment_enabled)
 
 1982                        include_once 
'./Services/Payment/classes/class.ilPaymentObject.php';
 
 1983                        include_once 
'./Services/Payment/classes/class.ilPaymentBookings.php';
 
 1985                        if(ilPaymentobject::_requiresPurchaseToAccess($this->ref_id))
 
 1991                                        $order_infos = array();
 
 1994                                        if(count($order_infos) > 0)
 
 1998                                                $pay_lang->loadLanguageModule(
'payment');
 
 2001                                                $a_property = $pay_lang->txt(
'object_purchased_date');
 
 2008                                                $a_property = $this->lng->txt(
'object_duration');
 
 2009                                                if($order_infos[
'duration'] == 0)
 
 2010                                                        $a_value = $pay_lang->txt(
'unlimited_duration');
 
 2012                                                        $a_value = $order_infos[
'duration'] .
' '.$this->lng->txt(
'months');
 
 2019                                                $has_extension_prices = 
true;
 
 2028                                        $this->ctpl = 
new ilTemplate(
"tpl.container_list_item_commands.html", 
true, 
true,
 
 2029                                                "Services/Container", 
"DEFAULT", 
false, 
true);
 
 2030                                        $this->ctpl->setCurrentBlock(
'payment');
 
 2032                                        $this->ctpl->setVariable(
'PAYMENT_ALT_IMG', $this->lng->txt(
'payment_system') . 
': ' . $this->lng->txt(
'payment_buyable'));
 
 2033                                        $this->ctpl->parseCurrentBlock();
 
 2043                $commands = $this->
getCommands($this->ref_id, $this->obj_id);
 
 2044                foreach($commands as $command)
 
 2046                        if($command[
'default'] === 
true)
 
 2054                                                        $command[
'link'] = 
'ilias.php?baseClass=ilSAHSPresentationGUI&ref_id='.$this->ref_id;
 
 2058                                                        $command[
'link'] = 
'ilias.php?baseClass=ilLMPresentationGUI&ref_id='.$this->ref_id;
 
 2062                                                        $command[
'link'] = 
'ilias.php?baseClass=ilShopController&cmdClass=ilshoppurchasegui&ref_id='.$this->ref_id;
 
 2068                                if(strpos($command[
'link'], 
'_'.
$type.
'_') !== 
false)
 
 2070                                        $demo_link = str_replace(
'_'.
$type.
'_', 
'_'.$type.
'purchasetypedemo_', $command[
'link']);
 
 2071                                        $buy_link = str_replace(
'_'.
$type.
'_', 
'_'.$type.
'purchasetypebuy_', $command[
'link']);
 
 2075                                        $demo_link = $command[
'link'].(strpos($command[
'link'], 
'?') === 
false ? 
'?' : 
'&').
'purchasetype=demo';
 
 2076                                        $buy_link = $command[
'link'].(strpos($command[
'link'], 
'?') === 
false ? 
'?' : 
'&').
'purchasetype=buy';
 
 2079                                $this->current_selection_list->addItem($this->lng->txt(
'payment_demo'), 
"", $demo_link, $a_img, $this->lng->txt(
'payment_demo'), $command[
'frame']);
 
 2080                                if($has_extension_prices == 
true)
 
 2082                                        $this->current_selection_list->addItem($this->lng->txt(
'buy_extension'), 
"", $buy_link, $a_img, $this->lng->txt(
'buy_extension'), $command[
'frame']);
 
 2085                                        $this->current_selection_list->addItem($this->lng->txt(
'buy'), 
"", $buy_link, $a_img, $this->lng->txt(
'buy'), $command[
'frame']);
 
 2093                global $ilAccess, 
$lng, $objDefinition,$tree;
 
 2096                $num_optional_required =
 
 2100                $visible_conditions = array();
 
 2101                $passed_optional = 0;
 
 2102                foreach($conditions as $condition)
 
 2104                        if($obligatory and !$condition[
'obligatory'])
 
 2108                        if(!$obligatory and $condition[
'obligatory'])
 
 2113                        if($tree->isDeleted($condition[
'trigger_ref_id']))
 
 2118                        include_once 
'Services/Container/classes/class.ilMemberViewSettings.php';
 
 2124                                $visible_conditions[] = $condition[
'id'];
 
 2127                        if(!$obligatory and 
$ok)
 
 2131                                if($passed_optional >= $num_optional_required)
 
 2138                foreach($conditions as $condition)
 
 2140                        if(!in_array($condition[
'id'], $visible_conditions))
 
 2145                        include_once 
'./Services/AccessControl/classes/class.ilConditionHandlerGUI.php';
 
 2149                        $class = $objDefinition->getClassName($condition[
"trigger_type"]);
 
 2150                        $location = $objDefinition->getLocation($condition[
"trigger_type"]);
 
 2155                        $missing_cond_exist = 
true;
 
 2157                        $full_class = 
"ilObj".$class.
"ListGUI";
 
 2158                        include_once(
$location.
"/class.".$full_class.
".php");
 
 2159                        $item_list_gui = 
new $full_class($this);
 
 2161                        $item_list_gui->enablePath(
false);
 
 2162                        $item_list_gui->enableIcon(
true);
 
 2163                        $item_list_gui->setConditionDepth($this->condition_depth + 1);
 
 2165                        $item_list_gui->addCustomProperty($this->lng->txt(
"precondition_required_itemlist"), $cond_txt, 
false, 
true);
 
 2167                        $item_list_gui->enableCommands($this->commands_enabled, $this->std_cmd_only);
 
 2168                        $item_list_gui->enableProperties($this->properties_enabled);                                    
 
 2170                        $trigger_html = $item_list_gui->getListItemHTML($condition[
'trigger_ref_id'],
 
 2173                        $this->tpl->setCurrentBlock(
"precondition");
 
 2174                        if ($trigger_html == 
"")
 
 2176                                $trigger_html = $this->lng->txt(
"precondition_not_accessible");
 
 2178                        $this->tpl->setVariable(
"TXT_CONDITION", trim($cond_txt));
 
 2179                        $this->tpl->setVariable(
"TRIGGER_ITEM", $trigger_html);
 
 2180                        $this->tpl->parseCurrentBlock();
 
 2183                if ($missing_cond_exist and $obligatory)
 
 2185                        $this->tpl->setCurrentBlock(
"preconditions");
 
 2186                        $this->tpl->setVariable(
"CONDITION_TOGGLE_ID", 
"_obl_".$toggle_id);
 
 2187                        $this->tpl->setVariable(
"TXT_PRECONDITIONS", 
$lng->txt(
"preconditions_obligatory_hint"));
 
 2188                        $this->tpl->parseCurrentBlock();
 
 2191                elseif($missing_cond_exist and !$obligatory)
 
 2193                        $this->tpl->setCurrentBlock(
"preconditions");
 
 2194                        $this->tpl->setVariable(
"CONDITION_TOGGLE_ID", 
"_opt_".$toggle_id);
 
 2195                        $this->tpl->setVariable(
"TXT_PRECONDITIONS", sprintf(
$lng->txt(
"preconditions_optional_hint"),$num_optional_required));
 
 2196                        $this->tpl->parseCurrentBlock();
 
 2199                return !$missing_cond_exist;
 
 2207                global $ilAccess, 
$lng, $objDefinition,$tree;
 
 2209                include_once(
"./Services/AccessControl/classes/class.ilConditionHandler.php");
 
 2211                $missing_cond_exist = 
false;
 
 2214                if ($this->condition_depth > 0)
 
 2227                if($this->condition_target)
 
 2230                                        $this->condition_target[
'ref_id'],
 
 2231                                        $this->condition_target[
'obj_id'],
 
 2232                                        $this->condition_target[
'target_type']
 
 2240                if(
sizeof($conditions))
 
 2242                        for($i = 0; $i < count($conditions); $i++)
 
 2251                        $all_done_obl = $this->
parseConditions(self::$js_unique_id,$conditions,
true);
 
 2252                        $all_done_opt = $this->
parseConditions(self::$js_unique_id,$conditions,
false);
 
 2254                        if(!$all_done_obl || !$all_done_opt)
 
 2256                                $this->tpl->setCurrentBlock(
"preconditions_toggle");
 
 2257                                $this->tpl->setVariable(
"PRECONDITION_TOGGLE_INTRO", $this->lng->txt(
"precondition_toggle"));
 
 2258                                $this->tpl->setVariable(
"PRECONDITION_TOGGLE_TRIGGER", $this->lng->txt(
"show"));
 
 2259                                $this->tpl->setVariable(
"PRECONDITION_TOGGLE_ID", self::$js_unique_id);
 
 2260                                $this->tpl->setVariable(
"TXT_PRECONDITION_SHOW", $this->lng->txt(
"show"));
 
 2261                                $this->tpl->setVariable(
"TXT_PRECONDITION_HIDE", $this->lng->txt(
"hide"));
 
 2262                                $this->tpl->parseCurrentBlock();
 
 2275        function insertCommand($a_href, $a_text, $a_frame = 
"", $a_img = 
"", $a_cmd = 
"", $a_onclick = 
"")
 
 2278                $chksum = md5($a_href.$a_text); 
 
 2279                if($a_href == 
"#" || 
 
 2280                        !in_array($chksum, $this->prevent_duplicate_commands))
 
 2284                                $this->prevent_duplicate_commands[] = $chksum;
 
 2287                        $prevent_background_click = 
false;
 
 2288                        if ($a_cmd ==
'mount_webfolder')
 
 2290                                $prevent_background_click = 
true;
 
 2292                        $this->current_selection_list->addItem($a_text, 
"", $a_href, $a_img, $a_text, $a_frame,
 
 2293                                "", $prevent_background_click, $a_onclick);
 
 2306                if ($this->std_cmd_only)
 
 2319                                $this->adm_commands_included = 
true;
 
 2327                        $this->ctrl->setParameter($this->container_obj, 
"ref_id",
 
 2328                                $this->container_obj->object->getRefId());
 
 2329                        $this->ctrl->setParameter($this->container_obj, 
"item_ref_id", $this->
getCommandId());
 
 2330                        $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, 
"delete");
 
 2331                        $this->
insertCommand($cmd_link, $this->lng->txt(
"delete"), 
"",
 
 2333                        $this->adm_commands_included = 
true;
 
 2348                if ($this->std_cmd_only)
 
 2357                        global $objDefinition;
 
 2365                                $this->adm_commands_included = 
true;
 
 2376                        $this->ctrl->setParameter($this->container_obj, 
"ref_id",
 
 2377                                $this->container_obj->object->getRefId());
 
 2378                        $this->ctrl->setParameter($this->container_obj, 
"item_ref_id", $this->
getCommandId());
 
 2379                        $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, 
"link");
 
 2380                        $this->
insertCommand($cmd_link, $this->lng->txt(
"link"), 
"",
 
 2382                        $this->adm_commands_included = 
true;
 
 2396                if ($this->std_cmd_only)
 
 2409                                $this->adm_commands_included = 
true;
 
 2419                        $this->container_obj->object)
 
 2421                        $this->ctrl->setParameter($this->container_obj, 
"ref_id",
 
 2422                                $this->container_obj->object->getRefId());                                                                      
 
 2423                        $this->ctrl->setParameter($this->container_obj, 
"item_ref_id", $this->
getCommandId());
 
 2425                        if(!$a_to_repository)
 
 2427                                $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, 
"cut");
 
 2428                                $this->
insertCommand($cmd_link, $this->lng->txt(
"move"), 
"",
 
 2433                                $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, 
"cut_for_repository");
 
 2434                                $this->
insertCommand($cmd_link, $this->lng->txt(
"wsp_move_to_repository"), 
"",
 
 2438                        $this->adm_commands_included = 
true;
 
 2449                if($this->std_cmd_only)
 
 2456                        if($this->context != self::CONTEXT_WORKSPACE && $this->context != self::CONTEXT_WORKSPACE_SHARING)
 
 2458                                $this->ctrl->setParameterByClass(
'ilobjectcopygui',
'source_id',$this->
getCommandId());
 
 2459                                $cmd_copy = $this->ctrl->getLinkTargetByClass(
'ilobjectcopygui',
'initTargetSelection');
 
 2464                                $this->ctrl->setParameter($this->container_obj, 
"ref_id",
 
 2465                                        $this->container_obj->object->getRefId());                                                                      
 
 2466                                $this->ctrl->setParameter($this->container_obj, 
"item_ref_id", $this->
getCommandId());
 
 2468                                if(!$a_to_repository)
 
 2470                                        $cmd_copy = $this->ctrl->getLinkTarget($this->container_obj, 
'copy');
 
 2475                                        $cmd_copy = $this->ctrl->getLinkTarget($this->container_obj, 
'copy_to_repository');
 
 2476                                        $this->
insertCommand($cmd_copy, $this->lng->txt(
'wsp_copy_to_repository'));                     
 
 2480                        $this->adm_commands_included = 
true;                    
 
 2491                global $ilAccess, $objDefinition;
 
 2493                if ($this->std_cmd_only)
 
 2510                        $this->adm_commands_included = 
true;
 
 2527                if ($this->std_cmd_only)
 
 2532                if((
int)
$ilSetting->get(
'disable_my_offers'))
 
 2539                if ($ilUser->getId() != ANONYMOUS_USER_ID)
 
 2568                        if (!
$ilUser->isDesktopItem($this->getCommandId(), 
$type))
 
 2572                        if ($this->
checkCommandAccess(
"read", 
"", $this->ref_id, $this->type, $this->obj_id))
 
 2576                                                $this->ctrl->setParameter($this->container_obj, 
"type", 
$type);
 
 2577                                                $this->ctrl->setParameter($this->container_obj, 
"item_ref_id", $this->
getCommandId());
 
 2578                                                $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, 
"addToDesk");
 
 2579                                                $this->
insertCommand($cmd_link, $this->lng->txt(
"to_desktop"), 
"",
 
 2588                                        $this->ctrl->setParameter($this->container_obj, 
"type", 
$type);
 
 2589                                        $this->ctrl->setParameter($this->container_obj, 
"item_ref_id", $this->
getCommandId());
 
 2590                                        $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, 
"removeFromDesk");
 
 2591                                        $this->
insertCommand($cmd_link, $this->lng->txt(
"unsubscribe"), 
"",
 
 2603                if ($this->std_cmd_only)
 
 2609                $this->
insertCommand($cmd_link, $this->lng->txt(
"info_short"), $cmd_frame,
 
 2623                if ($this->std_cmd_only ||
 
 2624                        (
$ilUser->getId() == ANONYMOUS_USER_ID))
 
 2628                $lng->loadLanguageModule(
"notes");
 
 2629                $lng->loadLanguageModule(
"tagging");
 
 2633                include_once(
"./Services/Notes/classes/class.ilNoteGUI.php");
 
 2637                if($this->reference_ref_id)
 
 2642                $js_updater = $a_header_actions
 
 2643                        ? 
"il.Object.redrawActionHeader();" 
 2644                        : 
"il.Object.redrawListItem(".$note_ref_id.
")";
 
 2649                        $this->
insertCommand(
"#", $this->lng->txt(
"notes_comments"), $cmd_frame,
 
 2653                if($this->notes_enabled)
 
 2655                        $this->
insertCommand(
"#", $this->lng->txt(
"notes"), $cmd_frame,
 
 2659                if ($this->tags_enabled)
 
 2661                        include_once(
"./Services/Tagging/classes/class.ilTaggingGUI.php");
 
 2663                        $this->
insertCommand(
"#", $this->lng->txt(
"tagging_set_tag"), $cmd_frame,
 
 2675                if ($this->std_cmd_only || !$this->container_obj->object)
 
 2681                $parent_type = $this->container_obj->object->getType();
 
 2686                        $this->ctrl->setParameterByClass(
'ilobjectactivationgui',
'cadh',
 
 2688                        $this->ctrl->setParameterByClass(
'ilobjectactivationgui',
'parent_id',
 
 2690                        $cmd_lnk = $this->ctrl->getLinkTargetByClass(array($this->gui_class_name, 
'ilcommonactiondispatchergui', 
'ilobjectactivationgui'),
 
 2693                        $this->
insertCommand($cmd_lnk, $this->lng->txt(
'obj_activation_list_gui'));                     
 
 2705                $a_asynch_url = 
"", $a_header_actions = 
false)
 
 2714                include_once(
"Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
 
 2716                $this->current_selection_list->setAsynch($a_use_asynch && !$a_get_asynch_commands);
 
 2717                $this->current_selection_list->setAsynchUrl($a_asynch_url);
 
 2718                if ($a_header_actions)
 
 2720                        $this->current_selection_list->setListTitle(
"<span class='hidden-xs'>".
$lng->txt(
"actions").
"</span>");
 
 2724                        $this->current_selection_list->setListTitle(
"");
 
 2726                $this->current_selection_list->setId(
"act_".$this->
getUniqueItemId(
false));
 
 2727                $this->current_selection_list->setSelectionHeaderClass(
"small");
 
 2728                $this->current_selection_list->setItemLinkClass(
"xsmall");
 
 2729                $this->current_selection_list->setLinksMode(
"il_ContainerItemCommand2");
 
 2731                $this->current_selection_list->setUseImages(
false);
 
 2732                $this->current_selection_list->setAdditionalToggleElement($this->
getUniqueItemId(
true), 
"ilContainerListItemOuterHighlight");
 
 2734                include_once 
'Services/Payment/classes/class.ilPaymentObject.php';
 
 2736                $this->ctrl->setParameterByClass($this->gui_class_name, 
"ref_id", $this->ref_id);
 
 2739                $only_default = 
false;
 
 2740                if ($a_use_asynch && !$a_get_asynch_commands)
 
 2742                        $only_default = 
true;
 
 2745                $this->default_command = 
false;
 
 2746                $this->prevent_duplicate_commands = array();
 
 2749                $valid_header_commands = array(
"mount_webfolder");
 
 2751                $commands = $this->
getCommands($this->ref_id, $this->obj_id);           
 
 2752                foreach($commands as $command)
 
 2754                        if($a_header_actions && !in_array($command[
"cmd"], $valid_header_commands))
 
 2759                        if ($command[
"granted"] == 
true )
 
 2761                                if (!$command[
"default"] === 
true)
 
 2763                                        if (!$this->std_cmd_only && !$only_default)
 
 2769                                                $cmd_link = $command[
"link"];
 
 2770                                                $txt = ($command[
"lang_var"] == 
"")
 
 2772                                                        : $this->lng->txt($command[
"lang_var"]);
 
 2774                                                        $command[
"frame"], $command[
"img"], $command[
"cmd"]);
 
 2783                        elseif($command[
"default"] === 
true)
 
 2785                                $items =& $command[
"access_info"];
 
 2786                                foreach ($items as $item)
 
 2801                        if (is_array($this->cust_commands))
 
 2803                                foreach ($this->cust_commands as $command)
 
 2805                                        $this->
insertCommand($command[
"link"], $this->lng->txt($command[
"lang_var"]),
 
 2806                                                $command[
"frame"], 
"", $command[
"cmd"], $command[
"onclick"]);
 
 2819                                if($this->timings_enabled)
 
 2825                                if ($this->delete_enabled)
 
 2831                                if ($this->link_enabled)
 
 2837                                if ($this->cut_enabled)
 
 2843                                if ($this->copy_enabled)
 
 2849                                if ($this->repository_transfer_enabled)
 
 2856                                if ($this->subscribe_enabled)
 
 2862                                if ($this->multi_download_enabled && $a_header_actions)
 
 2868                                if($this->cut_enabled or $this->link_enabled)
 
 2874                                if(IS_PAYMENT_ENABLED)
 
 2887                if(!$a_header_actions)
 
 2889                        $this->ctrl->clearParametersByClass($this->gui_class_name);
 
 2896                if ($a_use_asynch && !$a_get_asynch_commands && !$a_header_actions)
 
 2898                        if (
$ilUser->getId() == ANONYMOUS_USER_ID && $this->type == 
"cat")
 
 2900                                include_once(
"./Services/Container/classes/class.ilContainer.php");
 
 2901                                include_once(
"./Services/Object/classes/class.ilObjectServiceSettingsGUI.php");
 
 2912                if ($a_use_asynch && $a_get_asynch_commands)
 
 2914                        return $this->current_selection_list->getHTML(
true);
 
 2917                return $this->current_selection_list->getHTML();                
 
 2935                $this->comments_enabled = (bool)$a_value;
 
 2936                $this->comments_settings_enabled = (bool)$a_enable_comments_settings;
 
 2954                $this->notes_enabled = (bool)$a_value;
 
 2965                if (!$tags_set->get(
"enable"))
 
 2969                $this->tags_enabled = (bool)$a_value;
 
 2980        function enableRating($a_value, $a_text = 
null, $a_categories = 
false, array $a_ctrl_path = 
null)
 
 2982                $this->rating_enabled = (bool)$a_value;
 
 2984                if($this->rating_enabled)
 
 2986                        $this->rating_categories_enabled = (bool)$a_categories;
 
 2987                        $this->rating_text = $a_text;
 
 2988                        $this->rating_ctrl_path = $a_ctrl_path;                                                                                                 
 
 3000                if (!$folder_set->get(
"enable_multi_download"))
 
 3004                $this->multi_download_enabled = (bool)$a_value;
 
 3009                global $ilAccess, $objDefinition;
 
 3011                if ($this->std_cmd_only)
 
 3023                        $cmd = 
$_GET[
"cmd"] == 
"enableMultiDownload" ? 
"render" : 
"enableMultiDownload";
 
 3025                        $this->
insertCommand($cmd_link, $this->lng->txt(
"download_multiple_objects"));
 
 3039                        if (in_array($this->type, array(
"file", 
"fold")) &&
 
 3040                                $ilAccess->checkAccess(
"read", 
"", $a_ref_id, $this->type))
 
 3063        static function prepareJsLinks($a_redraw_url, $a_notes_url, $a_tags_url, $a_tpl = 
null)
 
 3067                if (is_null($a_tpl))
 
 3074                        include_once(
"./Services/Notes/classes/class.ilNoteGUI.php");
 
 3080                        include_once(
"./Services/Tagging/classes/class.ilTaggingGUI.php");
 
 3086                        $a_tpl->addOnLoadCode(
"il.Object.setRedrawAHUrl('".
 
 3087                                                $a_redraw_url.
"');");   
 
 3099                $this->sub_obj_type = $a_type;
 
 3100                $this->sub_obj_id = (int)$a_id;
 
 3112        function addHeaderIcon($a_id, $a_img, $a_tooltip = 
null, $a_onclick = 
null, $a_status_text = 
null, $a_href = 
null)
 
 3114                $this->header_icons[$a_id] = array(
"img" => $a_img,
 
 3115                                "tooltip" => $a_tooltip,
 
 3116                                "onclick" => $a_onclick,
 
 3117                                "status_text" => $a_status_text,
 
 3128                $this->header_icons[$a_id] = $a_html;
 
 3133                $this->ajax_hash = $a_hash;
 
 3145                $htpl = 
new ilTemplate(
"tpl.header_action.html", 
true, 
true, 
"Services/Repository");    
 
 3147                $redraw_js = 
"il.Object.redrawActionHeader();";
 
 3150                if($this->tags_enabled)
 
 3152                        include_once(
"./Services/Tagging/classes/class.ilTagging.php");
 
 3155                        if (count(
$tags) > 0)
 
 3157                                include_once(
"./Services/Tagging/classes/class.ilTaggingGUI.php");
 
 3158                                $lng->loadLanguageModule(
"tagging");
 
 3161                                        $lng->txt(
"tagging_tags").
": ".count(
$tags),
 
 3171                        include_once(
"./Services/Notes/classes/class.ilNote.php");
 
 3172                        include_once(
"./Services/Notes/classes/class.ilNoteGUI.php");
 
 3187                                $lng->loadLanguageModule(
"notes");
 
 3191                                        $lng->txt(
"notes_public_comments").
": ".$cnt[$this->obj_id][
IL_NOTE_PUBLIC],
 
 3198                if($this->rating_enabled)
 
 3200                        include_once(
"./Services/Rating/classes/class.ilRatingGUI.php");
 
 3202                        $rating_gui->enableCategories($this->rating_categories_enabled);
 
 3204                        $rating_gui->setObject($this->obj_id, $this->type);                                                                             
 
 3205                        if($this->rating_text)
 
 3207                                $rating_gui->setYourRatingText($this->rating_text);
 
 3210                        $this->ctrl->setParameterByClass(
"ilRatingGUI", 
"cadh", $this->ajax_hash);      
 
 3211                        $this->ctrl->setParameterByClass(
"ilRatingGUI", 
"rnsb", 
true);  
 
 3212                        if($this->rating_ctrl_path)
 
 3214                                $rating_gui->setCtrlPath($this->rating_ctrl_path);              
 
 3215                                $ajax_url = $this->ctrl->getLinkTargetByClass($this->rating_ctrl_path, 
"saveRating", 
"", 
true, 
false);
 
 3220                                $ajax_url = $this->ctrl->getLinkTargetByClass(
"ilRatingGUI", 
"saveRating", 
"", 
true, 
false);
 
 3222                        $tpl->addOnLoadCode(
"il.Object.setRatingUrl('".$ajax_url.
"');");
 
 3225                                $rating_gui->getHtml(
true, 
 
 3226                                        $this->checkCommandAccess(
"read", 
"", $this->ref_id, $this->type), 
 
 3227                                        "il.Object.saveRating(%rating%);"));                                                            
 
 3230                if($this->header_icons)
 
 3232                        include_once(
"./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
 
 3235                        foreach($this->header_icons as $id => $attr)
 
 3241                                        if($attr[
"onclick"])
 
 3243                                                $htpl->setCurrentBlock(
"onclick");
 
 3244                                                $htpl->setVariable(
"PROP_ONCLICK", $attr[
"onclick"]);
 
 3245                                                $htpl->parseCurrentBlock();
 
 3248                                        if($attr[
"status_text"])
 
 3250                                                $htpl->setCurrentBlock(
"status");
 
 3251                                                $htpl->setVariable(
"PROP_TXT", $attr[
"status_text"]);
 
 3252                                                $htpl->parseCurrentBlock();
 
 3257                                                $attr[
"href"] = 
"#";
 
 3260                                        $htpl->setCurrentBlock(
"prop");
 
 3261                                        $htpl->setVariable(
"PROP_ID", $id);
 
 3262                                        $htpl->setVariable(
"IMG", 
ilUtil::img($attr[
"img"]));                                                                           
 
 3263                                        $htpl->setVariable(
"PROP_HREF", $attr[
"href"]);                                                                                                 
 
 3264                                        $htpl->parseCurrentBlock();
 
 3266                                        if($attr[
"tooltip"])
 
 3279                                $htpl->setVariable(
"PROP_CHUNKS", 
 
 3280                                        implode(
"   ", $chunks).
"   ");
 
 3284                $htpl->setVariable(
"ACTION_DROP_DOWN",
 
 3287                return $htpl->get();
 
 3297                $script = substr(strrchr($_SERVER[
"PHP_SELF"],
"/"),1);
 
 3300                if ((strtolower(
$_GET[
"baseClass"]) != 
"ilrepositorygui") &&
 
 3301                        is_int(strpos($a_link,
"baseClass=ilRepositoryGUI")))
 
 3303                        if ($this->type != 
"frm")
 
 3315                if($this->default_command_params)
 
 3318                        foreach($this->default_command_params as $name => $value)
 
 3320                                $params[] = $name.
'='.$value;                           
 
 3322                        $params = implode(
'&', $params);
 
 3326                        if(!stristr($a_default_link, 
'?'))
 
 3328                                $a_default_link = ($a_default_link.
'?'.$params);
 
 3332                                $a_default_link = ($a_default_link.
'&'.$params);
 
 3335                return $a_default_link;
 
 3345                if (strstr($a_link, 
'ilSAHSPresentationGUI') && !$this->offline_mode)
 
 3347                        include_once 
'Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
 
 3349                        $om = $sahs_obj->getOpenMode();
 
 3350                        $width = $sahs_obj->getWidth();
 
 3351                        $height = $sahs_obj->getHeight();
 
 3352                        if ($om != 0 && !$ilBrowser->isMobile())
 
 3354                                $this->default_command[
"frame"]=
"";
 
 3355                                $a_link = 
"javascript:void(0); onclick=startSAHS('".$a_link.
"','".$wtarget.
"',".$om.
",".$width.
",".$height.
");";
 
 3370                        include_once 
'Services/Tree/classes/class.ilPathGUI.php';
 
 3372                        $path_gui->enableTextOnly(!$this->path_linked);
 
 3373                        $path_gui->setUseImages(
false);
 
 3375                        $start_node = $this->path_start_node
 
 3376                                ? $this->path_start_node
 
 3379                        $this->tpl->setCurrentBlock(
"path_item");
 
 3380                        $this->tpl->setVariable(
'PATH_ITEM',$path_gui->getPath($start_node,$this->ref_id));
 
 3381                        $this->tpl->parseCurrentBlock();
 
 3383                        $this->tpl->setCurrentBlock(
"path");
 
 3384                        $this->tpl->setVariable(
"TXT_LOCATION", 
$lng->txt(
"locator"));
 
 3385                        $this->tpl->parseCurrentBlock();
 
 3407                global 
$lng, $objDefinition;
 
 3412                        $this->tpl->setCurrentBlock(
"check");
 
 3413                        $this->tpl->setVariable(
"VAL_ID", $this->
getCommandId());
 
 3414                        $this->tpl->parseCurrentBlock();
 
 3419                        $this->tpl->setCurrentBlock(
"check_download");
 
 3421                                $this->tpl->setVariable(
"VAL_ID", $this->
getCommandId());
 
 3423                                $this->tpl->setVariable(
"VAL_VISIBILITY", 
"visibility: hidden;\" disabled=\"disabled");
 
 3424                        $this->tpl->parseCurrentBlock();
 
 3429                        $this->tpl->setCurrentBlock(
'expand');
 
 3433                                $this->ctrl->setParameter($this->container_obj,
'expand',-1 * $this->obj_id);
 
 3434                                $this->tpl->setVariable(
'EXP_HREF',$this->ctrl->getLinkTarget($this->container_obj,
'',$this->getUniqueItemId(
true)));
 
 3435                                $this->ctrl->clearParameters($this->container_obj);
 
 3437                        $this->tpl->setVariable(
'EXP_ALT',$this->lng->txt(
'collapse'));
 
 3441                                $this->ctrl->setParameter($this->container_obj,
'expand',$this->obj_id);
 
 3442                                $this->tpl->setVariable(
'EXP_HREF',$this->ctrl->getLinkTarget($this->container_obj,
'',$this->getUniqueItemId(
true)));
 
 3443                                $this->ctrl->clearParameters($this->container_obj);
 
 3445                                $this->tpl->setVariable(
'EXP_ALT',$this->lng->txt(
'expand'));
 
 3448                        $this->tpl->parseCurrentBlock();
 
 3456                                $this->tpl->touchBlock(
"i_1");  
 
 3460                        if ($this->title_link_disabled || !$this->default_command || (!$this->
getCommandsStatus() && !$this->restrict_to_goto))
 
 3465                                $this->tpl->setCurrentBlock(
"icon_link_s");
 
 3467                                if ($this->default_command[
"frame"] != 
"")
 
 3469                                        $this->tpl->setVariable(
"ICON_TAR", 
"target='".$this->default_command[
"frame"].
"'");
 
 3472                                $this->tpl->setVariable(
"ICON_HREF",
 
 3473                                        $this->default_command[
"link"]);
 
 3474                                $this->tpl->parseCurrentBlock();
 
 3475                                $this->tpl->touchBlock(
"icon_link_e");
 
 3478                        $this->tpl->setCurrentBlock(
"icon");
 
 3479                        if (!$objDefinition->isPlugin($this->getIconImageType()))
 
 3481                                $this->tpl->setVariable(
"ALT_ICON", 
$lng->txt(
"icon").
" ".
$lng->txt(
"obj_".$this->getIconImageType()));
 
 3485                                include_once(
"Services/Component/classes/class.ilPlugin.php");
 
 3486                                $this->tpl->setVariable(
"ALT_ICON", 
$lng->txt(
"icon").
" ".
 
 3487                                        ilPlugin::lookupTxt(
"rep_robj", $this->getIconImageType(), 
"obj_".$this->getIconImageType()));
 
 3490                        $this->tpl->setVariable(
"SRC_ICON",
 
 3492                        $this->tpl->parseCurrentBlock();
 
 3496                $this->tpl->touchBlock(
"d_".$cnt);      
 
 3504                foreach ($this->sub_item_html as $sub_html)
 
 3506                        $this->tpl->setCurrentBlock(
"subitem");
 
 3507                        $this->tpl->setVariable(
"SUBITEM", $sub_html);
 
 3508                        $this->tpl->parseCurrentBlock();
 
 3517                if ($this->position_enabled)
 
 3519                        $this->tpl->setCurrentBlock(
"position");
 
 3520                        $this->tpl->setVariable(
"POS_ID", $this->position_field_index);
 
 3521                        $this->tpl->setVariable(
"POS_VAL", $this->position_value);
 
 3522                        $this->tpl->parseCurrentBlock();
 
 3532                return $this->adm_commands_included;
 
 3541                if($this->acache->getLastAccessStatus() == 
"miss" &&
 
 3542                        !$this->prevent_access_caching)
 
 3544                        $this->acache->storeEntry(
$ilUser->getId().
":".$this->ref_id,
 
 3545                                serialize($this->access_cache), $this->ref_id);
 
 3564                $a_use_asynch = 
false, $a_get_asynch_commands = 
false, $a_asynch_url = 
"", $a_context = self::CONTEXT_REPOSITORY)
 
 3570                $this->adm_commands_included = 
false;
 
 3576                $ilBench->start(
"ilObjectListGUI", 
"1000_getListHTML_init$type");
 
 3577                $this->
initItem($a_ref_id, $a_obj_id, $a_title, $a_description, $a_context);
 
 3578                $ilBench->stop(
"ilObjectListGUI", 
"1000_getListHTML_init$type");
 
 3581                include_once 
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
 
 3582                if($a_context == self::CONTEXT_REPOSITORY)
 
 3592                if ($a_use_asynch && $a_get_asynch_commands)
 
 3597                if($this->rating_enabled)
 
 3604                                $rating->setObject($this->obj_id, $this->type);
 
 3613                                        $rating->getListGUIProperty($this->ref_id, $may_rate, $this->ajax_hash, $this->parent_ref_id),
 
 3621                include_once(
"Services/Object/classes/class.ilListItemAccessCache.php");
 
 3623                $cres = $this->acache->getEntry(
$ilUser->getId().
":".$a_ref_id);
 
 3624                if($this->acache->getLastAccessStatus() == 
"hit")
 
 3626                        $this->access_cache = unserialize($cres);
 
 3637                        $ilBench->stop(
"ilObjectListGUI", 
"2000_getListHTML_check_visible");
 
 3651                $this->tpl = 
new ilTemplate(
"tpl.container_list_item.html", 
true, 
true,
 
 3652                        "Services/Container", 
"DEFAULT", 
false, 
true);
 
 3655                        ($this->payment_enabled && IS_PAYMENT_ENABLED))
 
 3659                                $this->tpl->setVariable(
"COMMAND_SELECTION_LIST",
 
 3660                                        $this->
insertCommands($a_use_asynch, $a_get_asynch_commands, $a_asynch_url));
 
 3689                $ilBench->start(
"ilObjectListGUI", 
"6000_insert_properties$type");
 
 3694                $ilBench->stop(
"ilObjectListGUI", 
"6000_insert_properties$type");
 
 3697                $ilBench->start(
"ilObjectListGUI", 
"6500_insert_notice_properties$type");
 
 3702                $ilBench->stop(
"ilObjectListGUI", 
"6500_insert_notice_properties$type");
 
 3705                $ilBench->start(
"ilObjectListGUI", 
"7000_insert_preconditions");
 
 3710                $ilBench->stop(
"ilObjectListGUI", 
"7000_insert_preconditions");
 
 3713                $ilBench->start(
"ilObjectListGUI", 
"8000_insert_path");
 
 3715                $ilBench->stop(
"ilObjectListGUI", 
"8000_insert_path");
 
 3717                $ilBench->start(
"ilObjectListGUI", 
"8500_item_detail_links");
 
 3722                $ilBench->stop(
"ilObjectListGUI", 
"8500_item_detail_links");
 
 3741                $this->tpl->setVariable(
"DIV_CLASS",
'ilContainerListItemOuter');
 
 3742                $this->tpl->setVariable(
"DIV_ID", 
'id = "'.$this->
getUniqueItemId(
true).
'"');
 
 3748                return $this->tpl->get();
 
 3757                $this->cust_prop = array();
 
 3758                $this->cust_commands = array();
 
 3759                $this->sub_item_html = array();
 
 3760                $this->position_enabled = 
false;
 
 3770                $this->parent_ref_id = $a_ref_id;
 
 3782                $id_ref = ($this->reference_ref_id > 0)
 
 3783                        ? $this->reference_ref_id
 
 3787                if($this->condition_depth)
 
 3789                        $id_ref .= 
"_pc".$this->condition_depth;
 
 3793                $id_ref .= 
"_pref_".$this->parent_ref_id;               
 
 3802                        return "lg_div_".$id_ref;
 
 3829                $this->bold_title = $a_bold_title;
 
 3853                if($a_context == self::CONTEXT_REPOSITORY)
 
 3855                        $active_notes = !
$ilSetting->get(
"disable_notes");
 
 3856                        $active_comments = !
$ilSetting->get(
"disable_comments");
 
 3858                        if($active_notes || $active_comments)
 
 3860                                include_once(
"./Services/Notes/classes/class.ilNote.php");
 
 3863                        if($active_comments)
 
 3870                        if(
$ilSetting->get(
'comments_tagging_in_lists'))
 
 3872                                if($active_notes || $active_comments)
 
 3876                                        $lng->loadLanguageModule(
"notes");
 
 3880                                if($tags_set->get(
"enable"))
 
 3882                                        $all_users = $tags_set->get(
"enable_all_users");
 
 3884                                        include_once(
"./Services/Tagging/classes/class.ilTagging.php");
 
 3885                                        if(!
$ilSetting->get(
'comments_tagging_in_lists_tags'))
 
 3891                                                $tag_user_id = 
null;
 
 3894                                                        $tag_user_id = 
$ilUser->getId();
 
 3899                                        $lng->loadLanguageModule(
"tagging");
 
 3903                        $lng->loadLanguageModule(
"rating");                     
 
 3906                self::$preload_done = 
true;
 
 3919        protected function isCommentsActivated($a_type, $a_ref_id, $a_obj_id, $a_header_actions, $a_check_write_access = 
true)
 
 3921                if($this->comments_enabled)
 
 3923                        if(!$this->comments_settings_enabled)
 
 3927                        if($a_check_write_access && $this->
checkCommandAccess(
'write',
'', $a_ref_id, $a_type))
 
 3933                        if(!$a_header_actions && self::$preload_done)
 
 3935                                if(self::$comments_activation[$a_obj_id][$a_type])
 
 3942                                include_once(
"./Services/Notes/classes/class.ilNote.php");
 
 3961                $this->timings_enabled = (bool)$a_status;
 
 3972                include_once(
"./Services/FileUpload/classes/class.ilFileUploadUtil.php");
 
 3981                include_once(
"./Services/FileUpload/classes/class.ilFileUploadGUI.php");
 
 3986                $this->tpl->setCurrentBlock(
"fileupload");
 
 3987                $this->tpl->setVariable(
"FILE_UPLOAD", $upload->getHTML());
 
 3988                $this->tpl->parseCurrentBlock();
 
User interface class for advanced drop-down selection lists.
static _lookupChangeState($obj_id, $usr_id)
Returns the change state of the object for the specified user.
static _isActive()
Returns true, if change event tracking is active.
static _lookupInsideChangeState($parent_obj_id, $usr_id)
Returns the changed state of objects which are children of the specified parent object.
static buildAjaxHash($a_node_type, $a_node_id, $a_obj_type, $a_obj_id, $a_sub_type=null, $a_sub_id=null)
Build ajax hash.
static translateOperator($a_obj_id, $a_operator)
Translate operator.
static getOptionalConditionsOfTarget($a_target_ref_id, $a_target_obj_id, $a_obj_type='')
Get optional conditions.
static calculateRequiredTriggers($a_target_ref_id, $a_target_obj_id, $a_target_obj_type='', $a_force_update=false)
calculate number of obligatory items
static _getConditionsOfTarget($a_target_ref_id, $a_target_obj_id, $a_target_type="")
get all conditions of target object
_checkCondition($a_id, $a_usr_id=0)
checks wether a single condition is fulfilled every trigger object type must implement a static metho...
_lookupContainerSetting($a_id, $a_keyword, $a_default_value=NULL)
Lookup a container setting.
static _isActive()
Static getter.
static getInstance()
Get singelton iunstance.
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
static initFileUpload()
Initializes the file upload and loads the needed javascripts and styles.
static isUploadAllowed($a_ref_id, $a_type="")
Determines whether files can be uploaded to the object with the specified reference id.
static _getInstance()
Get singleton instance of this class.
static getListGUIStatus($a_obj_id)
static _getStaticLink($a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
Caches (check) access information on list items.
static getInstance()
Get instance.
getListCommentsJSCall($a_hash, $a_update_code=null)
Get list comments js call.
initJavascript($a_ajax_url)
Init javascript.
getListNotesJSCall($a_hash, $a_update_code=null)
Get list notes js call.
static commentsActivated($a_rep_obj_id, $a_obj_id, $a_obj_type)
Are comments activated for object?
static _countNotesAndComments($a_rep_obj_id, $a_sub_obj_id=null)
Get all notes related to a specific object.
static _countNotesAndCommentsMultiple($a_rep_obj_ids, $a_no_sub_objs=false)
Get all notes related to multiple objcts.
static getRepObjActivation($a_rep_obj_ids)
Get activation for repository objects.
static _isFileHidden($a_file_name)
Returns true, if a file with the specified name, is usually hidden from the user.
static _lookupUserIsOfflineMode($a_obj_id)
Checks offlineMode and returns false if.
Class ilObjSCORMLearningModule.
_getCommands()
get commands
enableDescription($a_status)
En/disable description.
getAdditionalInformation()
Get additional information.
enabledRelevance()
enabled relevance
$search_fragments_enabled
getContainerObject()
get container object
setHeaderSubObject($a_type, $a_id)
Set sub object identifier.
getTitle()
getTitle overwritten in class.ilObjLinkResourceList.php
isTitleBold()
@access public
const DOWNLOAD_CHECKBOX_DISABLED
setBoldTitle($a_bold_title)
@access public @params boolean $a_bold_title set the item title bold
addHeaderIconHTML($a_id, $a_html)
insertProperties($a_item='')
insert properties
setSearchFragment($a_text)
set search fragment
setMode($a_mode)
set output mode
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="", $a_context=self::CONTEXT_REPOSITORY)
inititialize new item (is called by getItemHTML())
setConditionTarget($a_ref_id, $a_obj_id, $a_target_type)
getAlertProperties()
get all alert properties
enableLinkedPath($a_status)
Enable linked path.
storeAccessCache()
Store access cache.
modifyTitleLink($a_default_link)
adminCommandsIncluded()
returns whether any admin commands (link, delete, cut) are included in the output
insertTitle()
insert item title
$rating_categories_enabled
setDetailsLevel($a_level)
Details level Currently used in Search which shows only limited properties of forums Currently used f...
enableDownloadCheckbox($a_ref_id, $a_value)
$notice_properties_enabled
enableCommands($a_status, $a_std_only=false)
En/disable commands.
setDefaultCommandParameters(array $a_params)
getCommandLink($a_cmd)
Get command link url.
const CONTEXT_WORKSPACE_SHARING
enableRepositoryTransfer($a_value)
Enable copy/move to repository (from personal workspace)
getCommands()
get all current commands for a specific ref id (in the permission context of the current user)
insertRelevance()
insert relevance
insertSubstitutions()
Insert substitutions.
enableProperties($a_status)
En/disable properties.
getIconImageType()
Returns the icon image type.
setSeparateCommands($a_val)
Set separate commands.
insertFileUpload()
Inserts a file upload component.
static prepareJsLinks($a_redraw_url, $a_notes_url, $a_tags_url, $a_tpl=null)
Insert js/ajax links into template
insertPreconditions()
insert all missing preconditions
const CONTEXT_PERSONAL_DESKTOP
isCommentsActivated($a_type, $a_ref_id, $a_obj_id, $a_header_actions, $a_check_write_access=true)
Check comments status against comments settings and context.
enableRelevance($a_status)
enable relevance
const DOWNLOAD_CHECKBOX_NONE
parseConditions($toggle_id, $conditions, $obligatory=true)
addCustomCommand($a_link, $a_lang_var, $a_frame="", $onclick="")
add a custom command
isMode($a_mode)
check current output mode
insertPasteCommand()
Insert paste command.
enableLink($a_status)
En/disable link.
getSearchFragmentStatus()
Show hide search result fragments.
$item_detail_links_enabled
insertPayment()
insert payment information
enableSubstitutions($a_status)
Enable substitutions.
isSideBlock()
Returns whether current item is a block in a side column or not.
isVisibleOnlyForced()
Force unreadable.
getProperties($a_item='')
Get item properties.
enableCheckbox($a_status)
En/Dis-able checkboxes.
const DOWNLOAD_CHECKBOX_ENABLED
insertMultiDownloadCommand()
getCommandsHTML()
Get commands HTML (must be called after get list item html)
setConditionDepth($a_depth)
set depth for precondition output (stops at level 5)
getItemDetailLinkStatus()
get item detail link status
resetCustomData()
reset properties and commands
forceVisibleOnly($a_stat)
Force visible access only.
$repository_transfer_enabled
addSubItemHTML($a_html)
Add HTML for subitem (used for sessions)
getCommandFrame($a_cmd)
Get command target frame.
getNoticeProperties()
get notice properties
enableNotes($a_value)
Toogle notes action status.
addCustomProperty($a_property="", $a_value="", $a_alert=false, $a_newline=false)
add custom property
insertTimingsCommand()
insert edit timings command
insertInfoScreenCommand()
insert info screen command
enableNoticeProperties($a_status)
En/disable notices.
enablePayment($a_status)
En/disable payment.
getUniqueItemId($a_as_div=false)
Get unique item identifier (for js-actions)
getCommandImage($a_cmd)
Get command icon image.
setParentRefId($a_ref_id)
Set current parent ref id to enable unique js-ids (sessions, etc.)
enableIcon($a_status)
En/Dis-able icons.
getSearchFragment()
get search fragment
insertSearchFragment()
Insert highlighted search fragment.
getHeaderAction()
Get header action.
insertCutCommand($a_to_repository=false)
insert cut command
createDefaultCommand($command)
Get default command link Overwritten for e.g categories,courses => they return a goto link If search ...
enableSearchFragments($a_status)
En/disable description.
enableCopy($a_status)
En/disable copy.
enableTimings($a_status)
enable timings link
disableTitleLink($a_status)
addHeaderIcon($a_id, $a_img, $a_tooltip=null, $a_onclick=null, $a_status_text=null, $a_href=null)
insertItemDetailLinks()
insert item detail links
static preloadCommonProperties($a_obj_ids, $a_context)
Preload common properties.
getListItemHTML($a_ref_id, $a_obj_id, $a_title, $a_description, $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_context=self::CONTEXT_REPOSITORY)
Get all item information (title, commands, description) in HTML.
enablePreconditions($a_status)
En/disable preconditions.
enableTags($a_value)
Toogle tags action status.
getDescription()
getDescription overwritten in class.ilObjLinkResourceList.php
setPositionInputField($a_field_index, $a_position_value)
Set position input field.
getSubstitutionStatus()
Get substitution status.
enableCut($a_status)
En/disable cut.
setRelevance($a_rel)
set relevance
enableMultiDownload($a_value)
Toggles whether multiple objects can be downloaded at once or not.
enableExpand($a_status)
En/Dis-able expand/collapse link.
insertProgressInfo()
insert progress info
insertDescription()
insert item description
setDescription($a_description)
enableProgressInfo($a_status)
enable progress info
insertPositionField()
Insert field for positioning.
insertSubscribeCommand()
insert subscribe command
$comments_settings_enabled
enableSubscribe($a_status)
En/disable subscribe.
appendRepositoryFrameParameter($a_link)
workaround: all links into the repository (from outside) must tell repository to setup the frameset
getCheckboxStatus()
Are checkboxes enabled?
getDownloadCheckboxState()
insertLinkCommand()
insert link command
isFileUploadAllowed()
Gets a value indicating whether file uploads to this object are allowed or not.
static $comments_activation
insertCommonSocialCommands($a_header_actions=false)
Insert common social commands (comments, notes, tagging)
setContainerObject($container_obj)
set the container object (e.g categorygui) Used for link, delete ... commands
enableRating($a_value, $a_text=null, $a_categories=false, array $a_ctrl_path=null)
Toogle rating action status.
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
enableItemDetailLinks($a_status)
enable item detail links E.g Direct links to chapters or pages
modifySAHSlaunch($a_link, $wtarget)
workaround: SAHS in new javavasript-created window or iframe
insertCopyCommand($a_to_repository=false)
Insert copy command.
getCustomProperties($a_prop)
get custom properties
insertSubItems()
Insert subitems.
enableComments($a_value, $a_enable_comments_settings=true)
Toogle comments action status.
getCommandId()
get command id Normally the ref id.
enableInfoScreen($a_info_screen)
En/disable path.
getProgressInfoStatus()
get progress info status
insertIconsAndCheckboxes()
Insert icons and checkboxes.
enablePath($a_path, $a_start_node=null)
En/disable path.
setAdditionalInformation($a_val)
Set additional information.
setItemDetailLinks($a_detail_links, $a_intro_txt='')
set items detail links
restrictToGoto($a_value)
Restrict all actions/links to goto.
$prevent_duplicate_commands
getDetailsLevel()
Get current details level.
getIconStatus()
Are icons enabled?
getSeparateCommands()
Get separate commands.
ilObjectListGUI()
constructor
insertDeleteCommand()
insert cut command
getExpandStatus()
Is expand/collapse enabled.
insertCommands($a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_header_actions=false)
insert all commands into html code
getRelevance()
get relevance
enableDelete($a_status)
En/disable delete.
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
getNoticePropertiesStatus()
insertPaymentCommand($has_extension_prices=false)
const INFO_TAB_VISIBILITY
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static _lookupType($a_id, $a_reference=false)
lookup object type
Creates a path for a start and endnode.
static _hasAccess($a_pobject_id, $a_user_id=0, $a_transaction=0)
static _lookupOrder($a_pobject_id)
static _hasExtensions($a_ref_id)
static _lookupPobjectId($a_ref_id)
static lookupTxt($a_mod_prefix, $a_pl_id, $a_lang_var)
Lookup language text.
static hasPreview($a_obj_id, $a_type="")
Determines whether the object with the specified reference id has a preview.
static lookupRenderStatus($a_obj_id)
Gets the render status for the object with the specified id.
static getInstance()
Factory.
static hasRatingInListGUI($a_obj_id, $a_obj_type)
getListTagsJSCall($a_hash, $a_update_code=null)
Get tagging js call.
initJavascript($a_ajax_url)
Init javascript.
static getTagsForUserAndObject($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_user_id)
Get tags for a user and an object.
static _getListTagsForObjects(array $a_obj_ids, $a_user_id=null)
Get tags for given object ids.
static _countTags($a_obj_ids, $a_all_users=false)
Count all tags for repository objects.
special template class to simplify handling of ITX/PEAR
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Access handler for personal workspace.
static getGotoLink($a_node_id, $a_obj_id, $a_additional=null)
Interface for GUI classes (PDGUI, LuceneSearchGUI...) that have to handle administration commands (cu...
Interface for gui classes (e.g ilLuceneSearchGUI) that offer add/remove to/from desktop.
redirection script todo: (a better solution should control the processing via a xml file)
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']