ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjectListGUI Class Reference

Class ilObjectListGUI. More...

+ Inheritance diagram for ilObjectListGUI:
+ Collaboration diagram for ilObjectListGUI:

Public Member Functions

 __construct ($a_context=self::CONTEXT_REPOSITORY)
 constructor More...
 
 setContainerObject ($container_obj)
 set the container object (e.g categorygui) Used for link, delete ... More...
 
 getContainerObject ()
 get container object More...
 
 init ()
 initialisation More...
 
 enableProperties ($a_status)
 En/disable properties. More...
 
 getPropertiesStatus ()
 
 enablePreconditions ($a_status)
 En/disable preconditions. More...
 
 getNoticePropertiesStatus ()
 
 enableNoticeProperties ($a_status)
 En/disable notices. More...
 
 getPreconditionsStatus ()
 
 enableDescription ($a_status)
 En/disable description. More...
 
 getDescriptionStatus ()
 
 getSearchFragmentStatus ()
 Show hide search result fragments. More...
 
 enableSearchFragments ($a_status)
 En/disable description. More...
 
 enableLinkedPath ($a_status)
 Enable linked path. More...
 
 enabledRelevance ()
 enabled relevance More...
 
 enableRelevance ($a_status)
 enable relevance More...
 
 setRelevance ($a_rel)
 set relevance More...
 
 getRelevance ()
 get relevance More...
 
 enableIcon ($a_status)
 En/Dis-able icons. More...
 
 getIconStatus ()
 Are icons enabled? More...
 
 enableCheckbox ($a_status)
 En/Dis-able checkboxes. More...
 
 getCheckboxStatus ()
 Are checkboxes enabled? More...
 
 enableExpand ($a_status)
 En/Dis-able expand/collapse link. More...
 
 getExpandStatus ()
 Is expand/collapse enabled. More...
 
 setExpanded ($a_status)
 
 isExpanded ()
 
 setPositionInputField ($a_field_index, $a_position_value)
 Set position input field. More...
 
 enableDelete ($a_status)
 En/disable delete. More...
 
 getDeleteStatus ()
 
 enableCut ($a_status)
 En/disable cut. More...
 
 getCutStatus ()
 
 enableCopy ($a_status)
 En/disable copy. More...
 
 getCopyStatus ()
 
 enableSubscribe ($a_status)
 En/disable subscribe. More...
 
 getSubscribeStatus ()
 
 enableLink ($a_status)
 En/disable link. More...
 
 getLinkStatus ()
 
 enablePath ($a_path, $a_start_node=null, \ilPathGUI $path_gui=null)
 En/disable path. More...
 
 getPathStatus ()
 
 enableCommands ($a_status, $a_std_only=false)
 En/disable commands. More...
 
 getCommandsStatus ()
 
 enableInfoScreen ($a_info_screen)
 En/disable path. More...
 
 addSubItemHTML ($a_html)
 Add HTML for subitem (used for sessions) More...
 
 getInfoScreenStatus ()
 
 enableProgressInfo ($a_status)
 enable progress info More...
 
 getProgressInfoStatus ()
 get progress info status More...
 
 enableSubstitutions ($a_status)
 Enable substitutions. More...
 
 getSubstitutionStatus ()
 Get substitution status. More...
 
 enableItemDetailLinks ($a_status)
 enable item detail links E.g Direct links to chapters or pages More...
 
 getItemDetailLinkStatus ()
 get item detail link status More...
 
 setItemDetailLinks ($a_detail_links, $a_intro_txt='')
 set items detail links More...
 
 insertItemDetailLinks ()
 insert item detail links More...
 
 setTitle ($a_title)
 
 getTitle ()
 getTitle overwritten in class.ilObjLinkResourceList.php More...
 
 setDescription ($a_description)
 
 getDescription ()
 getDescription overwritten in class.ilObjLinkResourceList.php More...
 
 setSearchFragment ($a_text)
 set search fragment More...
 
 getSearchFragment ()
 get search fragment More...
 
 setSeparateCommands ($a_val)
 Set separate commands. More...
 
 getSeparateCommands ()
 Get separate commands. More...
 
 getCommandId ()
 get command id Normally the ref id. More...
 
 setAdditionalInformation ($a_val)
 Set additional information. More...
 
 getAdditionalInformation ()
 Get additional information. More...
 
 setDetailsLevel ($a_level)
 Details level Currently used in Search which shows only limited properties of forums Currently used for Sessions (switch between minimal and extended view for each session) More...
 
 getDetailsLevel ()
 Get current details level. More...
 
 enableRepositoryTransfer ($a_value)
 Enable copy/move to repository (from personal workspace) More...
 
 restrictToGoto ($a_value)
 Restrict all actions/links to goto. More...
 
 getDefaultCommand ()
 Get default command. More...
 
 checkCommandAccess ($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
 
 initItem ($a_ref_id, $a_obj_id, $type, $a_title="", $a_description="")
 inititialize new item (is called by getItemHTML()) More...
 
 setConditionTarget ($a_ref_id, $a_obj_id, $a_target_type)
 
 resetConditionTarget ()
 
 disableTitleLink ($a_status)
 
 setDefaultCommandParameters (array $a_params)
 
 createDefaultCommand ($command)
 Get default command link Overwritten for e.g categories,courses => they return a goto link If search engine visibility is enabled these object type return a goto_CLIENT_ID_cat_99.html link. More...
 
 getCommandLink ($a_cmd)
 Get command link url. More...
 
 getCommandFrame ($a_cmd)
 Get command target frame. More...
 
 getCommandImage ($a_cmd)
 Get command icon image. More...
 
 getProperties ()
 Get item properties. More...
 
 addCustomProperty ( $a_property="", $a_value="", $a_alert=false, $a_newline=false)
 add custom property More...
 
 getCustomProperties ($a_prop)
 get custom properties More...
 
 getAlertProperties ()
 get all alert properties More...
 
 getNoticeProperties ()
 get notice properties More...
 
 addCustomCommand ($a_link, $a_lang_var, $a_frame="", $onclick="")
 add a custom command More...
 
 forceVisibleOnly ($a_stat)
 Force visible access only. More...
 
 isVisibleOnlyForced ()
 Force unreadable. More...
 
 getCommands ()
 get all current commands for a specific ref id (in the permission context of the current user) More...
 
 getIconImageType ()
 Returns the icon image type. More...
 
 insertTitle ()
 insert item title More...
 
 insertSubstitutions ()
 Insert substitutions. More...
 
 insertDescription ()
 insert item description More...
 
 insertSearchFragment ()
 Insert highlighted search fragment. More...
 
 insertRelevance ()
 insert relevance More...
 
 setMode ($a_mode)
 set output mode More...
 
 getMode ()
 get output mode More...
 
 setConditionDepth ($a_depth)
 set depth for precondition output (stops at level 5) More...
 
 isMode ($a_mode)
 check current output mode More...
 
 determineProperties ()
 Determine properties. More...
 
 insertProperties ()
 insert properties More...
 
 insertNoticeProperties ()
 
 insertPreconditions ()
 insert all missing preconditions More...
 
 insertCommand ($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
 insert command button More...
 
 insertDeleteCommand ()
 insert cut command More...
 
 insertLinkCommand ()
 insert link command More...
 
 insertCutCommand ($a_to_repository=false)
 insert cut command More...
 
 insertCopyCommand ($a_to_repository=false)
 Insert copy command. More...
 
 insertPasteCommand ()
 Insert paste command. More...
 
 insertSubscribeCommand ()
 insert subscribe command More...
 
 insertInfoScreenCommand ()
 insert info screen command More...
 
 insertCommonSocialCommands ($a_header_actions=false)
 Insert common social commands (comments, notes, tagging) More...
 
 insertTimingsCommand ()
 insert edit timings command More...
 
 insertCommands ( $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_header_actions=false)
 insert all commands into html code More...
 
 enableComments ($a_value, $a_enable_comments_settings=true)
 Toogle comments action status. More...
 
 enableNotes ($a_value)
 Toogle notes action status. More...
 
 enableTags ($a_value)
 Toogle tags action status. More...
 
 enableRating ($a_value, $a_text=null, $a_categories=false, array $a_ctrl_path=null)
 Toogle rating action status. More...
 
 enableMultiDownload ($a_value)
 Toggles whether multiple objects can be downloaded at once or not. More...
 
 insertMultiDownloadCommand ()
 
 enableDownloadCheckbox ($a_ref_id, $a_value)
 
 getDownloadCheckboxState ()
 
 setHeaderSubObject ($a_type, $a_id)
 Set sub object identifier. More...
 
 addHeaderIcon ($a_id, $a_img, $a_tooltip=null, $a_onclick=null, $a_status_text=null, $a_href=null)
 
 addHeaderIconHTML ($a_id, $a_html)
 
 addHeaderGlyph ($a_id, $a_glyph, $a_onclick=null)
 
 setAjaxHash ($a_hash)
 
 getHeaderAction (ilGlobalTemplateInterface $a_main_tpl=null)
 Get header action. More...
 
 appendRepositoryFrameParameter ($a_link)
 workaround: all links into the repository (from outside) must tell repository to setup the frameset More...
 
 modifySAHSlaunch ($a_link, $wtarget)
 workaround: SAHS in new javavasript-created window or iframe More...
 
 insertPath ()
 insert path More...
 
 insertProgressInfo ()
 insert progress info More...
 
 insertIconsAndCheckboxes ()
 Insert icons and checkboxes. More...
 
 getTypeIcon ()
 Get object type specific type icon. More...
 
 insertSubItems ()
 Insert subitems. More...
 
 insertPositionField ()
 Insert field for positioning. More...
 
 adminCommandsIncluded ()
 returns whether any admin commands (link, delete, cut) are included in the output More...
 
 storeAccessCache ()
 Store access cache. More...
 
 getListItemHTML ( $a_ref_id, $a_obj_id, $a_title, $a_description, $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="")
 Get all item information (title, commands, description) in HTML. More...
 
 setParentRefId ($a_ref_id)
 Set current parent ref id to enable unique js-ids (sessions, etc.) More...
 
 getUniqueItemId ($a_as_div=false)
 Get unique item identifier (for js-actions) More...
 
 getCommandsHTML ()
 Get commands HTML (must be called after get list item html) More...
 
 isSideBlock ()
 Returns whether current item is a block in a side column or not. More...
 
 setBoldTitle ($a_bold_title)
 public boolean $a_bold_title set the item title bold More...
 
 isTitleBold ()
 public More...
 
 enableTimings ($a_status)
 enable timings link More...
 
 isFileUploadAllowed ()
 Gets a value indicating whether file uploads to this object are allowed or not. More...
 
 insertFileUpload ()
 Inserts a file upload component. More...
 
 getAsListItem (int $ref_id, int $obj_id, string $type, string $title, string $description)
 Get list item ui object. More...
 
 getAsCard (int $ref_id, int $obj_id, string $type, string $title, string $description)
 Get card object. More...
 
 checkInfoPageOnAsynchronousRendering ()
 

Static Public Member Functions

static prepareJsLinks ($a_redraw_url, $a_notes_url, $a_tags_url, $a_tpl=null)
 Insert js/ajax links into template. More...
 
static preloadCommonProperties ($a_obj_ids, $a_context)
 Preload common properties. More...
 

Data Fields

const DETAILS_MINIMAL = 10
 
const DETAILS_SEARCH = 20
 
const DETAILS_ALL = 30
 
const CONTEXT_REPOSITORY = 1
 
const CONTEXT_WORKSPACE = 2
 
const CONTEXT_WORKSPACE_SHARING = 4
 
const CONTEXT_PERSONAL_DESKTOP = 5
 
const CONTEXT_SEARCH = 6
 
const DOWNLOAD_CHECKBOX_NONE = 0
 
const DOWNLOAD_CHECKBOX_ENABLED = 1
 
const DOWNLOAD_CHECKBOX_DISABLED = 2
 
 $ctrl
 
 $description_enabled = true
 
 $preconditions_enabled = true
 
 $properties_enabled = true
 
 $notice_properties_enabled = true
 
 $commands_enabled = true
 
 $cust_prop = array()
 
 $cust_commands = array()
 
 $info_screen_enabled = false
 
 $condition_depth = 0
 
 $std_cmd_only = false
 
 $sub_item_html = array()
 
 $multi_download_enabled = false
 
 $download_checkbox_state = self::DOWNLOAD_CHECKBOX_NONE
 

Protected Member Functions

 buildGotoLink ()
 
 parseConditions ($toggle_id, $conditions, $obligatory=true)
 
 modifyTitleLink ($a_default_link)
 
 resetCustomData ()
 reset properties and commands More...
 
 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. More...
 

Protected Attributes

 $access
 
 $lng
 
 $user
 
 $obj_definition
 
 $tree
 
 $settings
 
 $tpl
 
 $obj_id
 
 $ref_id
 
 $type
 
 $sub_obj_id
 
 $sub_obj_type
 
 $substitutions = null
 
 $substitutions_enabled = false
 
 $icons_enabled = false
 
 $checkboxes_enabled = false
 
 $position_enabled = false
 
 $progress_enabled = false
 
 $item_detail_links_enabled = false
 
 $item_detail_links = array()
 
 $item_detail_links_intro = ''
 
 $search_fragments_enabled = false
 
 $search_fragment = ''
 
 $path_linked = false
 
 $enabled_relevance = false
 
 $relevance = 0
 
 $expand_enabled = false
 
 $is_expanded = true
 
 $bold_title = false
 
 $copy_enabled = true
 
 $details_level = self::DETAILS_ALL
 
 $reference_ref_id = false
 
 $separate_commands = false
 
 $search_fragment_enabled = false
 
 $additional_information = false
 
 $static_link_enabled = false
 
 $repository_transfer_enabled = false
 
 $shared = false
 
 $restrict_to_goto = false
 
 $comments_enabled = false
 
 $comments_settings_enabled = false
 
 $notes_enabled = false
 
 $tags_enabled = false
 
 $rating_enabled = false
 
 $rating_categories_enabled = false
 
 $rating_text = false
 
 $rating_ctrl_path = false
 
 $timings_enabled = true
 
 $force_visible_only = false
 
 $prevent_duplicate_commands = array()
 
 $parent_ref_id
 
 $context
 
 $title_link = ''
 
 $title_link_disabled = false
 
 $path_gui = null
 
 $ui
 
 $object_service
 
 $fav_manager
 

Static Protected Attributes

static $cnt_notes = array()
 
static $cnt_tags = array()
 
static $tags = array()
 
static $comments_activation = array()
 
static $preload_done = false
 
static $js_unique_id = 0
 
static $tpl_file_name = "tpl.container_list_item.html"
 
static $tpl_component = "Services/Container"
 

Detailed Description

Class ilObjectListGUI.

Important note:

All access checking should be made within $ilAccess and the checkAccess of the ilObj...Access classes. Do not additionally enable or disable any commands within this GUI class or in derived classes, except when the container (e.g. a search result list) generally refuses them.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e $Id$

Definition at line 23 of file class.ilObjectListGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjectListGUI::__construct (   $a_context = self::CONTEXT_REPOSITORY)

constructor

Definition at line 186 of file class.ilObjectListGUI.php.

References $DIC, ilLDAPRoleGroupMapping\_getInstance(), enableComments(), enableNotes(), enableTags(), IL_LIST_FULL, init(), setParentRefId(), settings(), ui(), and user().

187  {
188  global $DIC;
189  $this->access = $DIC->access();
190  $this->user = $DIC->user();
191  $this->obj_definition = $DIC["objDefinition"];
192  $this->tree = $DIC->repositoryTree();
193  $this->settings = $DIC->settings();
194 
195  $this->ui = $DIC->ui();
196  $this->rbacsystem = $DIC->rbac()->system();
197  $this->ctrl = $DIC->ctrl();
198  $this->lng = $DIC->language();
199  $this->mode = IL_LIST_FULL;
200  $this->path_enabled = false;
201  $this->context = $a_context;
202 
203  $this->object_service = $DIC->object();
204 
205  $this->enableComments(false);
206  $this->enableNotes(false);
207  $this->enableTags(false);
208 
209  // unique js-ids
210  $this->setParentRefId((int) $_REQUEST["ref_id"]);
211 
212  //echo "list";
213  $this->init();
214 
215  include_once('Services/LDAP/classes/class.ilLDAPRoleGroupMapping.php');
216  $this->ldap_mapping = ilLDAPRoleGroupMapping::_getInstance();
217  $this->fav_manager = new ilFavouritesManager();
218 
219  $this->lng->loadLanguageModule("obj");
220  $this->lng->loadLanguageModule("rep");
221  }
settings()
Definition: settings.php:2
init()
initialisation
enableNotes($a_value)
Toogle notes action status.
Manages favourites, currently the interface for other components, needs discussion.
user()
Definition: user.php:4
static _getInstance()
Get singleton instance of this class.
ui()
Definition: ui.php:5
const IL_LIST_FULL
enableComments($a_value, $a_enable_comments_settings=true)
Toogle comments action status.
setParentRefId($a_ref_id)
Set current parent ref id to enable unique js-ids (sessions, etc.)
enableTags($a_value)
Toogle tags action status.
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

Member Function Documentation

◆ addCustomCommand()

ilObjectListGUI::addCustomCommand (   $a_link,
  $a_lang_var,
  $a_frame = "",
  $onclick = "" 
)

add a custom command

Definition at line 1313 of file class.ilObjectListGUI.php.

1314  {
1315  $this->cust_commands[] =
1316  array("link" => $a_link, "lang_var" => $a_lang_var,
1317  "frame" => $a_frame, "onclick" => $onclick);
1318  }

◆ addCustomProperty()

ilObjectListGUI::addCustomProperty (   $a_property = "",
  $a_value = "",
  $a_alert = false,
  $a_newline = false 
)

◆ addHeaderGlyph()

ilObjectListGUI::addHeaderGlyph (   $a_id,
  $a_glyph,
  $a_onclick = null 
)
Parameters
string$a_id
string$a_html

Definition at line 2868 of file class.ilObjectListGUI.php.

Referenced by getHeaderAction().

2869  {
2870  $this->header_icons[$a_id] = array("glyph" => $a_glyph, "onclick" => $a_onclick);
2871  }
+ Here is the caller graph for this function:

◆ addHeaderIcon()

ilObjectListGUI::addHeaderIcon (   $a_id,
  $a_img,
  $a_tooltip = null,
  $a_onclick = null,
  $a_status_text = null,
  $a_href = null 
)
Parameters
string$a_id
string$a_img
string$a_tooltip
string$a_onclick
string$a_status_text
string$a_href

Definition at line 2844 of file class.ilObjectListGUI.php.

2845  {
2846  $this->header_icons[$a_id] = array("img" => $a_img,
2847  "tooltip" => $a_tooltip,
2848  "onclick" => $a_onclick,
2849  "status_text" => $a_status_text,
2850  "href" => $a_href);
2851  }

◆ addHeaderIconHTML()

ilObjectListGUI::addHeaderIconHTML (   $a_id,
  $a_html 
)
Parameters
string$a_id
string$a_html

Definition at line 2858 of file class.ilObjectListGUI.php.

Referenced by getHeaderAction().

2859  {
2860  $this->header_icons[$a_id] = $a_html;
2861  }
+ Here is the caller graph for this function:

◆ addSubItemHTML()

ilObjectListGUI::addSubItemHTML (   $a_html)

Add HTML for subitem (used for sessions)

Parameters
string$a_htmlsubitems HTML

Definition at line 685 of file class.ilObjectListGUI.php.

686  {
687  $this->sub_item_html[] = $a_html;
688  }

◆ adminCommandsIncluded()

ilObjectListGUI::adminCommandsIncluded ( )

returns whether any admin commands (link, delete, cut) are included in the output

Definition at line 3317 of file class.ilObjectListGUI.php.

3318  {
3319  return $this->adm_commands_included;
3320  }

◆ appendRepositoryFrameParameter()

ilObjectListGUI::appendRepositoryFrameParameter (   $a_link)

workaround: all links into the repository (from outside) must tell repository to setup the frameset

Definition at line 3083 of file class.ilObjectListGUI.php.

References $_GET, and ilUtil\appendUrlParameterString().

Referenced by insertCommands(), and insertTitle().

3084  {
3085  // we should get rid of this nonsense with 4.4 (alex)
3086  if ((strtolower($_GET["baseClass"]) != "ilrepositorygui") &&
3087  is_int(strpos($a_link, "baseClass=ilRepositoryGUI"))) {
3088  if ($this->type != "frm") {
3089  $a_link =
3090  ilUtil::appendUrlParameterString($a_link, "rep_frame=1");
3091  }
3092  }
3093 
3094  return $a_link;
3095  }
$_GET["client_id"]
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildGotoLink()

ilObjectListGUI::buildGotoLink ( )
protected

Definition at line 1534 of file class.ilObjectListGUI.php.

References ilWorkspaceAccessHandler\getGotoLink().

Referenced by insertTitle().

1535  {
1536  switch ($this->context) {
1537  case self::CONTEXT_WORKSPACE_SHARING:
1538  include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
1539  return ilWorkspaceAccessHandler::getGotoLink($this->ref_id, $this->obj_id);
1540 
1541  default:
1542  // not implemented yet
1543  break;
1544  }
1545  }
static getGotoLink($a_node_id, $a_obj_id, $a_additional=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkCommandAccess()

ilObjectListGUI::checkCommandAccess (   $a_permission,
  $a_cmd,
  $a_ref_id,
  $a_type,
  $a_obj_id = "" 
)
Parameters

Definition at line 983 of file class.ilObjectListGUI.php.

References $a_type, $access, and isVisibleOnlyForced().

Referenced by getCommands(), getListItemHTML(), insertCopyCommand(), insertCutCommand(), insertDeleteCommand(), insertLinkCommand(), insertSubscribeCommand(), insertTimingsCommand(), and isCommentsActivated().

984  {
985  $ilAccess = $this->access;
986 
987  // e.g: subitems should not be readable since their parent sesssion is readonly.
988  if ($a_permission != 'visible' and $this->isVisibleOnlyForced()) {
989  return false;
990  }
991 
992  $cache_prefix = null;
993  if ($this->context == self::CONTEXT_WORKSPACE || $this->context == self::CONTEXT_WORKSPACE_SHARING) {
994  $cache_prefix = "wsp";
995  if (!$this->ws_access) {
996  include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
997  $this->ws_access = new ilWorkspaceAccessHandler();
998  }
999  }
1000 
1001  if (isset($this->access_cache[$a_permission]["-" . $a_cmd][$cache_prefix . $a_ref_id])) {
1002  return $this->access_cache[$a_permission]["-" . $a_cmd][$cache_prefix . $a_ref_id];
1003  }
1004 
1005  if ($this->context == self::CONTEXT_REPOSITORY) {
1006  $access = $ilAccess->checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id);
1007  if ($ilAccess->getPreventCachingLastResult()) {
1008  $this->prevent_access_caching = true;
1009  }
1010  } else {
1011  $access = $this->ws_access->checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type);
1012  }
1013 
1014  $this->access_cache[$a_permission]["-" . $a_cmd][$cache_prefix . $a_ref_id] = $access;
1015  return $access;
1016  }
Access handler for personal workspace.
isVisibleOnlyForced()
Force unreadable.
$a_type
Definition: workflow.php:92
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkInfoPageOnAsynchronousRendering()

ilObjectListGUI::checkInfoPageOnAsynchronousRendering ( )
Returns
bool

Definition at line 4056 of file class.ilObjectListGUI.php.

Referenced by insertCommands().

4056  : bool
4057  {
4058  return false;
4059  }
+ Here is the caller graph for this function:

◆ createDefaultCommand()

ilObjectListGUI::createDefaultCommand (   $command)

Get default command link Overwritten for e.g categories,courses => they return a goto link If search engine visibility is enabled these object type return a goto_CLIENT_ID_cat_99.html link.

public

Parameters
intcommand link

Definition at line 1089 of file class.ilObjectListGUI.php.

References $name, and ilLink\_getStaticLink().

Referenced by insertCommands().

1090  {
1091  // begin-patch lok
1092  if ($this->static_link_enabled and !$this->default_command_params) {
1093  include_once('./Services/Link/classes/class.ilLink.php');
1094  if ($link = ilLink::_getStaticLink($this->ref_id, $this->type, false)) {
1095  $command['link'] = $link;
1096  $command['frame'] = '_top';
1097  }
1098  }
1099  if ($this->default_command_params) {
1100  $params = array();
1101  foreach ($this->default_command_params as $name => $value) {
1102  $params[] = $name . '=' . $value;
1103  }
1104  $params = implode('&', $params);
1105 
1106  // #12370
1107  if (!stristr($command['link'], '?')) {
1108  $command['link'] .= '?' . $params;
1109  } else {
1110  $command['link'] .= '&' . $params;
1111  }
1112  }
1113  return $command;
1114  }
if($format !==null) $name
Definition: metadata.php:230
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ determineProperties()

ilObjectListGUI::determineProperties ( )

Determine properties.

Returns
array

Definition at line 1685 of file class.ilObjectListGUI.php.

References $access, $ilUser, $lng, $obj_id, $ref_id, $reference_ref_id, $user, getCustomProperties(), ilNoteGUI\getListCommentsJSCall(), ilLPStatus\getListGUIStatus(), ilNoteGUI\getListNotesJSCall(), ilTaggingGUI\getListTagsJSCall(), getProperties(), IL_NOTE_PRIVATE, IL_NOTE_PUBLIC, and isCommentsActivated().

Referenced by getAsCard(), getAsListItem(), and insertProperties().

1686  {
1687  $ilAccess = $this->access;
1688  $lng = $this->lng;
1689  $ilUser = $this->user;
1690 
1691  $props = $this->getProperties();
1692  $props = $this->getCustomProperties($props);
1693 
1694  if ($this->context != self::CONTEXT_WORKSPACE && $this->context != self::CONTEXT_WORKSPACE_SHARING) {
1695  // add learning progress custom property
1696  include_once "Services/Tracking/classes/class.ilLPStatus.php";
1697  $lp = ilLPStatus::getListGUIStatus($this->obj_id);
1698  if ($lp) {
1699  $props[] = array("alert" => false,
1700  "property" => $lng->txt("learning_progress"),
1701  "value" => $lp,
1702  "newline" => true);
1703  }
1704 
1705  // add no item access note in public section
1706  // for items that are visible but not readable
1707  if ($ilUser->getId() == ANONYMOUS_USER_ID) {
1708  if (!$ilAccess->checkAccess("read", "", $this->ref_id, $this->type, $this->obj_id)) {
1709  $props[] = array("alert" => true,
1710  "value" => $lng->txt("no_access_item_public"),
1711  "newline" => true);
1712  }
1713  }
1714  }
1715 
1716  // reference objects have translated ids, revert to originals
1717  $note_ref_id = $this->ref_id;
1718  $note_obj_id = $this->obj_id;
1719  if ($this->reference_ref_id) {
1720  $note_ref_id = $this->reference_ref_id;
1721  $note_obj_id = $this->reference_obj_id;
1722  }
1723  $redraw_js = "il.Object.redrawListItem(" . $note_ref_id . ");";
1724 
1725  // add common properties (comments, notes, tags)
1726  require_once 'Services/Notes/classes/class.ilNote.php';
1727  if ((self::$cnt_notes[$note_obj_id][IL_NOTE_PRIVATE] > 0 ||
1728  self::$cnt_notes[$note_obj_id][IL_NOTE_PUBLIC] > 0 ||
1729  self::$cnt_tags[$note_obj_id] > 0 ||
1730  is_array(self::$tags[$note_obj_id])) &&
1731  ($ilUser->getId() != ANONYMOUS_USER_ID)) {
1732  include_once("./Services/Notes/classes/class.ilNoteGUI.php");
1733  include_once("./Services/Tagging/classes/class.ilTaggingGUI.php");
1734 
1735  $nl = true;
1736  if ($this->isCommentsActivated($this->type, $this->ref_id, $this->obj_id, false, false)
1737  && self::$cnt_notes[$note_obj_id][IL_NOTE_PUBLIC] > 0) {
1738  $props[] = array("alert" => false,
1739  "property" => $lng->txt("notes_comments"),
1740  "value" => "<a href='#' onclick=\"return " .
1741  ilNoteGUI::getListCommentsJSCall($this->ajax_hash, $redraw_js) . "\">" .
1742  self::$cnt_notes[$note_obj_id][IL_NOTE_PUBLIC] . "</a>",
1743  "newline" => $nl);
1744  $nl = false;
1745  }
1746 
1747  if ($this->notes_enabled && self::$cnt_notes[$note_obj_id][IL_NOTE_PRIVATE] > 0) {
1748  $props[] = array("alert" => false,
1749  "property" => $lng->txt("notes"),
1750  "value" => "<a href='#' onclick=\"return " .
1751  ilNoteGUI::getListNotesJSCall($this->ajax_hash, $redraw_js) . "\">" .
1752  self::$cnt_notes[$note_obj_id][IL_NOTE_PRIVATE] . "</a>",
1753  "newline" => $nl);
1754  $nl = false;
1755  }
1756  if ($this->tags_enabled &&
1757  (self::$cnt_tags[$note_obj_id] > 0 ||
1758  is_array(self::$tags[$note_obj_id]))) {
1759  $tags_set = new ilSetting("tags");
1760  if ($tags_set->get("enable")) {
1761  $tags_url = ilTaggingGUI::getListTagsJSCall($this->ajax_hash, $redraw_js);
1762 
1763  // list object tags
1764  if (is_array(self::$tags[$note_obj_id])) {
1765  $tags_tmp = array();
1766  foreach (self::$tags[$note_obj_id] as $tag => $is_tag_owner) {
1767  if ($is_tag_owner) {
1768  $tags_tmp[] = "<a class=\"ilTag ilTagRelHigh\" href='#' onclick=\"return " .
1769  $tags_url . "\">" . $tag . "</a>";
1770  } else {
1771  $tags_tmp[] = "<span class=\"ilTag ilTagRelMiddle\">" . $tag . "</span>";
1772  }
1773  }
1774  $tags_value = implode(" ", $tags_tmp);
1775  $nl = true;
1776  $prop_text = "";
1777  } // tags counter
1778  else {
1779  $tags_value = "<a href='#' onclick=\"return " . $tags_url . "\">" .
1780  self::$cnt_tags[$note_obj_id] . "</a>";
1781  $prop_text = $lng->txt("tagging_tags");
1782  }
1783  $props[] = array("alert" => false,
1784  "property" => $prop_text,
1785  "value" => $tags_value,
1786  "newline" => $nl);
1787  $nl = false;
1788  }
1789  }
1790  }
1791  if (!is_array($props)) {
1792  return [];
1793  }
1794  return $props;
1795  }
const IL_NOTE_PRIVATE
Definition: class.ilNote.php:5
static getListNotesJSCall($a_hash, $a_update_code=null)
Get list notes js call.
getProperties()
Get item properties.
const IL_NOTE_PUBLIC
Definition: class.ilNote.php:6
static getListTagsJSCall($a_hash, $a_update_code=null)
Get tagging js call.
static getListGUIStatus($a_obj_id, $a_image_only=true)
$ilUser
Definition: imgupload.php:18
static getListCommentsJSCall($a_hash, $a_update_code=null)
Get list comments js call.
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.
getCustomProperties($a_prop)
get custom properties
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ disableTitleLink()

ilObjectListGUI::disableTitleLink (   $a_status)

Definition at line 1069 of file class.ilObjectListGUI.php.

Referenced by ilContainerObjectiveGUI\addItemDetails().

1070  {
1071  $this->title_link_disabled = $a_status;
1072  }
+ Here is the caller graph for this function:

◆ enableCheckbox()

ilObjectListGUI::enableCheckbox (   $a_status)

En/Dis-able checkboxes.

Parameters
booleancheckbox on/off

Definition at line 456 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), ilStudyProgrammeExpandableProgressListGUI\configureItemGUI(), ilObjStudyProgrammeListGUI\getListItemHTML(), and ilObjStudyProgrammeReferenceListGUI\getListItemHTML().

457  {
458  $this->checkboxes_enabled = $a_status;
459  }
+ Here is the caller graph for this function:

◆ enableCommands()

ilObjectListGUI::enableCommands (   $a_status,
  $a_std_only = false 
)

En/disable commands.

Parameters
bool
Returns
void

Definition at line 654 of file class.ilObjectListGUI.php.

Referenced by ilContainerObjectiveGUI\addItemDetails(), ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), ilStudyProgrammeExpandableProgressListGUI\configureItemGUI(), getAsCard(), and getAsListItem().

655  {
656  $this->commands_enabled = $a_status;
657  $this->std_cmd_only = $a_std_only;
658  }
+ Here is the caller graph for this function:

◆ enableComments()

ilObjectListGUI::enableComments (   $a_value,
  $a_enable_comments_settings = true 
)

Toogle comments action status.

Parameters
boolean$a_value

Definition at line 2658 of file class.ilObjectListGUI.php.

References $ilSetting, and $settings.

Referenced by __construct(), ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), ilStudyProgrammeExpandableProgressListGUI\configureItemGUI(), and getAsListItem().

2659  {
2661 
2662  // global switch
2663  if ($ilSetting->get("disable_comments")) {
2664  $a_value = false;
2665  }
2666 
2667  $this->comments_enabled = (bool) $a_value;
2668  $this->comments_settings_enabled = (bool) $a_enable_comments_settings;
2669  }
global $ilSetting
Definition: privfeed.php:17
+ Here is the caller graph for this function:

◆ enableCopy()

ilObjectListGUI::enableCopy (   $a_status)

En/disable copy.

Parameters
bool
Returns
void

Definition at line 564 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

565  {
566  $this->copy_enabled = $a_status;
567 
568  return;
569  }
+ Here is the caller graph for this function:

◆ enableCut()

ilObjectListGUI::enableCut (   $a_status)

En/disable cut.

Parameters
bool
Returns
void

Definition at line 542 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

543  {
544  $this->cut_enabled = $a_status;
545 
546  return;
547  }
+ Here is the caller graph for this function:

◆ enableDelete()

ilObjectListGUI::enableDelete (   $a_status)

En/disable delete.

Parameters
bool
Returns
void

Definition at line 519 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

520  {
521  $this->delete_enabled = $a_status;
522 
523  return;
524  }
+ Here is the caller graph for this function:

◆ enableDescription()

ilObjectListGUI::enableDescription (   $a_status)

En/disable description.

Parameters
bool
Returns
void

Definition at line 342 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

343  {
344  $this->description_enabled = $a_status;
345 
346  return;
347  }
+ Here is the caller graph for this function:

◆ enableDownloadCheckbox()

ilObjectListGUI::enableDownloadCheckbox (   $a_ref_id,
  $a_value 
)

Definition at line 2772 of file class.ilObjectListGUI.php.

References $_SESSION, $access, and getContainerObject().

2773  {
2774  $ilAccess = $this->access;
2775 
2776  // TODO: delegate to list object class!
2777  if (!$this->getContainerObject()->isActiveAdministrationPanel() || $_SESSION["clipboard"]) {
2778  if (in_array($this->type, array("file", "fold")) &&
2779  $ilAccess->checkAccess("read", "", $a_ref_id, $this->type)) {
2780  $this->download_checkbox_state = self::DOWNLOAD_CHECKBOX_ENABLED;
2781  } else {
2782  $this->download_checkbox_state = self::DOWNLOAD_CHECKBOX_DISABLED;
2783  }
2784  } else {
2785  $this->download_checkbox_state = self::DOWNLOAD_CHECKBOX_NONE;
2786  }
2787  }
getContainerObject()
get container object
$_SESSION["AccountId"]
+ Here is the call graph for this function:

◆ enabledRelevance()

ilObjectListGUI::enabledRelevance ( )

enabled relevance

Returns

Definition at line 397 of file class.ilObjectListGUI.php.

References $enabled_relevance.

Referenced by getListItemHTML(), and insertRelevance().

398  {
400  }
+ Here is the caller graph for this function:

◆ enableExpand()

ilObjectListGUI::enableExpand (   $a_status)

En/Dis-able expand/collapse link.

Parameters
booleancheckbox on/off

Definition at line 476 of file class.ilObjectListGUI.php.

477  {
478  $this->expand_enabled = $a_status;
479  }

◆ enableIcon()

ilObjectListGUI::enableIcon (   $a_status)

En/Dis-able icons.

Parameters
booleanicons on/off

Definition at line 436 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), ilStudyProgrammeExpandableProgressListGUI\configureItemGUI(), and ilObjOrgUnitListGUI\insertIconsAndCheckboxes().

437  {
438  $this->icons_enabled = $a_status;
439  }
+ Here is the caller graph for this function:

◆ enableInfoScreen()

ilObjectListGUI::enableInfoScreen (   $a_info_screen)

En/disable path.

Parameters
bool
Returns
void

Definition at line 675 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

676  {
677  $this->info_screen_enabled = $a_info_screen;
678  }
+ Here is the caller graph for this function:

◆ enableItemDetailLinks()

ilObjectListGUI::enableItemDetailLinks (   $a_status)

enable item detail links E.g Direct links to chapters or pages

public

Parameters
bool
Returns

Definition at line 755 of file class.ilObjectListGUI.php.

Referenced by ilContainerObjectiveGUI\addItemDetails().

756  {
757  $this->item_detail_links_enabled = $a_status;
758  }
+ Here is the caller graph for this function:

◆ enableLink()

ilObjectListGUI::enableLink (   $a_status)

En/disable link.

Parameters
bool
Returns
void

Definition at line 608 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

609  {
610  $this->link_enabled = $a_status;
611 
612  return;
613  }
+ Here is the caller graph for this function:

◆ enableLinkedPath()

ilObjectListGUI::enableLinkedPath (   $a_status)

Enable linked path.

Parameters
bool
Returns

Definition at line 388 of file class.ilObjectListGUI.php.

389  {
390  $this->path_linked = $a_status;
391  }

◆ enableMultiDownload()

ilObjectListGUI::enableMultiDownload (   $a_value)

Toggles whether multiple objects can be downloaded at once or not.

Parameters
boolean$a_valuetrue, to allow downloading of multiple objects; otherwise, false.

Definition at line 2726 of file class.ilObjectListGUI.php.

2727  {
2728  $folder_set = new ilSetting("fold");
2729  if (!$folder_set->get("enable_multi_download")) {
2730  $a_value = false;
2731  }
2732  $this->multi_download_enabled = (bool) $a_value;
2733  }

◆ enableNotes()

ilObjectListGUI::enableNotes (   $a_value)

Toogle notes action status.

Parameters
boolean$a_value

Definition at line 2676 of file class.ilObjectListGUI.php.

References $ilSetting, and $settings.

Referenced by __construct(), and getAsListItem().

2677  {
2679 
2680  // global switch
2681  if ($ilSetting->get("disable_notes")) {
2682  $a_value = false;
2683  }
2684 
2685  $this->notes_enabled = (bool) $a_value;
2686  }
global $ilSetting
Definition: privfeed.php:17
+ Here is the caller graph for this function:

◆ enableNoticeProperties()

ilObjectListGUI::enableNoticeProperties (   $a_status)

En/disable notices.

Parameters
bool
Returns
void

Definition at line 320 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

321  {
322  $this->notice_properties_enabled = $a_status;
323 
324  return;
325  }
+ Here is the caller graph for this function:

◆ enablePath()

ilObjectListGUI::enablePath (   $a_path,
  $a_start_node = null,
\ilPathGUI  $path_gui = null 
)

En/disable path.

Parameters
bool
int
Returns
void

Definition at line 631 of file class.ilObjectListGUI.php.

References $path_gui.

632  {
633  $this->path_enabled = $a_path;
634  $this->path_start_node = (int) $a_start_node;
635  $this->path_gui = $path_gui;
636  }

◆ enablePreconditions()

ilObjectListGUI::enablePreconditions (   $a_status)

En/disable preconditions.

Parameters
bool
Returns
void

Definition at line 302 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

303  {
304  $this->preconditions_enabled = $a_status;
305 
306  return;
307  }
+ Here is the caller graph for this function:

◆ enableProgressInfo()

ilObjectListGUI::enableProgressInfo (   $a_status)

enable progress info

public

Parameters

Definition at line 707 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

708  {
709  $this->progress_enabled = $a_status;
710  }
+ Here is the caller graph for this function:

◆ enableProperties()

ilObjectListGUI::enableProperties (   $a_status)

En/disable properties.

Parameters
bool
Returns
void

Definition at line 280 of file class.ilObjectListGUI.php.

Referenced by ilContainerObjectiveGUI\addItemDetails(), ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

281  {
282  $this->properties_enabled = $a_status;
283 
284  return;
285  }
+ Here is the caller graph for this function:

◆ enableRating()

ilObjectListGUI::enableRating (   $a_value,
  $a_text = null,
  $a_categories = false,
array  $a_ctrl_path = null 
)

Toogle rating action status.

Parameters
boolean$a_value
string$a_text
boolean$a_categories
array$a_ctrl_path

Definition at line 2710 of file class.ilObjectListGUI.php.

Referenced by getAsListItem().

2711  {
2712  $this->rating_enabled = (bool) $a_value;
2713 
2714  if ($this->rating_enabled) {
2715  $this->rating_categories_enabled = (bool) $a_categories;
2716  $this->rating_text = $a_text;
2717  $this->rating_ctrl_path = $a_ctrl_path;
2718  }
2719  }
+ Here is the caller graph for this function:

◆ enableRelevance()

ilObjectListGUI::enableRelevance (   $a_status)

enable relevance

Returns

Definition at line 406 of file class.ilObjectListGUI.php.

407  {
408  $this->enabled_relevance = $a_status;
409  }

◆ enableRepositoryTransfer()

ilObjectListGUI::enableRepositoryTransfer (   $a_value)

Enable copy/move to repository (from personal workspace)

Parameters
bool$a_value

Definition at line 952 of file class.ilObjectListGUI.php.

953  {
954  $this->repository_transfer_enabled = (bool) $a_value;
955  }

◆ enableSearchFragments()

ilObjectListGUI::enableSearchFragments (   $a_status)

En/disable description.

Parameters
bool
Returns
void

Definition at line 376 of file class.ilObjectListGUI.php.

377  {
378  $this->search_fragment_enabled = $a_status;
379 
380  return;
381  }

◆ enableSubscribe()

ilObjectListGUI::enableSubscribe (   $a_status)

En/disable subscribe.

Parameters
bool
Returns
void

Definition at line 586 of file class.ilObjectListGUI.php.

Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), and ilStudyProgrammeExpandableProgressListGUI\configureItemGUI().

587  {
588  $this->subscribe_enabled = $a_status;
589 
590  return;
591  }
+ Here is the caller graph for this function:

◆ enableSubstitutions()

ilObjectListGUI::enableSubstitutions (   $a_status)

Enable substitutions.

public

Parameters

Definition at line 731 of file class.ilObjectListGUI.php.

Referenced by ilObjIndividualAssessmentListGUI\init(), ilObjGroupListGUI\init(), and ilObjSessionListGUI\init().

732  {
733  $this->substitutions_enabled = $a_status;
734  }
+ Here is the caller graph for this function:

◆ enableTags()

ilObjectListGUI::enableTags (   $a_value)

Toogle tags action status.

Parameters
boolean$a_value

Definition at line 2693 of file class.ilObjectListGUI.php.

Referenced by __construct(), ilStudyProgrammeIndividualPlanProgressListGUI\configureItemGUI(), ilStudyProgrammeExpandableProgressListGUI\configureItemGUI(), getAsListItem(), and ilTaggingClassificationProvider\initListGUI().

2694  {
2695  $tags_set = new ilSetting("tags");
2696  if (!$tags_set->get("enable")) {
2697  $a_value = false;
2698  }
2699  $this->tags_enabled = (bool) $a_value;
2700  }
+ Here is the caller graph for this function:

◆ enableTimings()

ilObjectListGUI::enableTimings (   $a_status)

enable timings link

public

Parameters
bool
Returns

Definition at line 3698 of file class.ilObjectListGUI.php.

3699  {
3700  $this->timings_enabled = (bool) $a_status;
3701  }

◆ forceVisibleOnly()

ilObjectListGUI::forceVisibleOnly (   $a_stat)

Force visible access only.

Parameters
type$a_stat

Definition at line 1324 of file class.ilObjectListGUI.php.

1325  {
1326  $this->force_visible_only = $a_stat;
1327  }

◆ getAdditionalInformation()

ilObjectListGUI::getAdditionalInformation ( )

Get additional information.

Returns
string additional information

Definition at line 921 of file class.ilObjectListGUI.php.

References $additional_information.

Referenced by getListItemHTML().

922  {
924  }
+ Here is the caller graph for this function:

◆ getAlertProperties()

ilObjectListGUI::getAlertProperties ( )

get all alert properties

Returns
array

Definition at line 1286 of file class.ilObjectListGUI.php.

References getProperties().

1287  {
1288  $alert = array();
1289  foreach ((array) $this->getProperties() as $prop) {
1290  if ($prop['alert'] == true) {
1291  $alert[] = $prop;
1292  }
1293  }
1294  return $alert;
1295  }
getProperties()
Get item properties.
+ Here is the call graph for this function:

◆ getAsCard()

ilObjectListGUI::getAsCard ( int  $ref_id,
int  $obj_id,
string  $type,
string  $title,
string  $description 
)

Get card object.

Parameters
int$ref_id
int$obj_id
string$type
string$title
string$description
Returns
|null

Definition at line 3859 of file class.ilObjectListGUI.php.

References $access, $img, $ref_id, $ui, $user, ilSessionAppointment\_appointmentToString(), ilLink\_getLink(), ilSessionAppointment\_lookupAppointment(), ilLPStatus\_lookupPercentage(), determineProperties(), enableCommands(), getDefaultCommand(), ilUtil\getImagePath(), getInfoScreenStatus(), ilLPStatus\getListGUIStatus(), getUniqueItemId(), initItem(), insertCommands(), ilLPStatus\LP_STATUS_COMPLETED_NUM, modifySAHSlaunch(), ui(), and user().

3866  {
3867  $ui = $this->ui;
3868 
3869  $this->initItem(
3870  $ref_id,
3871  $obj_id,
3872  $type,
3873  $title,
3874  $description
3875  );
3876 
3877  $user = $this->user;
3879 
3880  $this->enableCommands(true);
3881 
3882  $sections = [];
3883 
3884  // description, @todo: move to new ks element
3885  if ($description != "") {
3886  $sections[] = $ui->factory()->legacy("<div class='il-multi-line-cap-3'>" . $description . "</div>");
3887  }
3888 
3889  $this->insertCommands();
3890  $actions = [];
3891 
3892  foreach ($this->current_selection_list->getItems() as $item) {
3893  if (!isset($item["onclick"]) || $item["onclick"] == "") {
3894  $actions[] =
3895  $ui->factory()->button()->shy($item["title"], $item["link"]);
3896  } else {
3897  $actions[] =
3898  $ui->factory()->button()->shy($item["title"], "")->withAdditionalOnLoadCode(function ($id) use ($item) {
3899  return
3900  "$('#$id').click(function(e) { " . $item["onclick"] . "});";
3901  });
3902  }
3903  }
3904 
3905  $def_command = $this->getDefaultCommand();
3906 
3907  if ($def_command["frame"] != "") {
3908  /* this seems to be introduced due to #25624, but does not fix it
3909  removed with ##30732
3910  $button =
3911  $ui->factory()->button()->shy("Open", "")->withAdditionalOnLoadCode(function ($id) use ($def_command) {
3912  return
3913  "$('#$id').click(function(e) { window.open('" . str_replace("&amp;", "&",
3914  $def_command["link"]) . "', '" . $def_command["frame"] . "');});";
3915  });
3916  $actions[] = $button;*/
3917  }
3918  $dropdown = $ui->factory()->dropdown()->standard($actions)
3919  ->withAriaLabel(sprintf(
3920  $this->lng->txt('actions_for'),
3921  htmlspecialchars(addslashes($title))
3922  ));
3923 
3924  $img = $this->object_service->commonSettings()->tileImage()->getByObjId((int) $obj_id);
3925  if ($img->exists()) {
3926  $path = $img->getFullPath();
3927  } else {
3928  $path = ilUtil::getImagePath('cont_tile/cont_tile_default_' . $type . '.svg');
3929  if (!is_file($path)) {
3930  $path = ilUtil::getImagePath('cont_tile/cont_tile_default.svg');
3931  }
3932  }
3933 
3934  // workaround for #26205
3935  // we should get rid of _top links completely and gifure our how
3936  // to manage scorm links better
3937  if ($def_command["frame"] == "_top") {
3938  $def_command["frame"] = "";
3939  }
3940 
3941  // workaround for scorm
3942  $modified_link =
3943  $this->modifySAHSlaunch($def_command["link"], $def_command["frame"]);
3944 
3945  $image = $this->ui->factory()
3946  ->image()
3947  ->responsive($path, '');
3948  if ($def_command['link'] != '') { // #24256
3949  if ($def_command["frame"] != "" && ($modified_link == $def_command["link"])) {
3950  $image = $image->withAdditionalOnLoadCode(function ($id) use ($def_command) {
3951  return
3952  "$('#$id').click(function(e) { window.open('" . str_replace("&amp;", "&",
3953  $def_command["link"]) . "', '" . $def_command["frame"] . "');});";
3954  });
3955 
3956  $button =
3957  $ui->factory()->button()->shy($title, "")->withAdditionalOnLoadCode(function ($id) use (
3958  $def_command
3959  ) {
3960  return
3961  "$('#$id').click(function(e) { window.open('" . str_replace("&amp;", "&",
3962  $def_command["link"]) . "', '" . $def_command["frame"] . "');});";
3963  });
3964  $title = $ui->renderer()->render($button);
3965  } else {
3966  $image = $image->withAction($modified_link);
3967  }
3968  }
3969 
3970  if ($type == 'sess') {
3971  if ($title != "") {
3972  $title = ": " . $title;
3973  }
3974  $app_info = ilSessionAppointment::_lookupAppointment($obj_id);
3976  $app_info['start'],
3977  $app_info['end'],
3978  $app_info['fullday']
3979  ) . $title;
3980  }
3981 
3982  $icon = $this->ui->factory()
3983  ->symbol()
3984  ->icon()
3985  ->standard($type, $this->lng->txt('obj_' . $type))
3986  ->withIsOutlined(true);
3987 
3988  // card title action
3989  $card_title_action = "";
3990  if ($def_command["link"] != "" && ($def_command["frame"] == "" || $modified_link != $def_command["link"])) { // #24256
3991  $card_title_action = $modified_link;
3992  } else {
3993  if ($def_command['link'] == "" &&
3994  $this->getInfoScreenStatus() &&
3995  $access->checkAccessOfUser(
3996  $user->getId(),
3997  "visible",
3998  "",
3999  $ref_id
4000  )) {
4001  $card_title_action = ilLink::_getLink($ref_id);
4002  if ($image->getAction() == "") {
4003  $image = $image->withAction($card_title_action);
4004  }
4005  }
4006  }
4007 
4008  $card = $ui->factory()->card()->repositoryObject(
4009  $title . '<span data-list-item-id="' . $this->getUniqueItemId(true) . '"></span>',
4010  $image
4011  )->withObjectIcon(
4012  $icon
4013  )->withActions(
4014  $dropdown
4015  );
4016 
4017  if ($card_title_action != "") {
4018  $card = $card->withTitleAction($card_title_action);
4019  }
4020 
4021  $l = [];
4022  foreach ($this->determineProperties() as $p) {
4023  if ($p["alert"] && $p['property'] !== $this->lng->txt('learning_progress')) {
4024  $l[(string) $p['property']] = (string) $p['value'];
4025  }
4026  }
4027  if (count($l) > 0) {
4028  $prop_list = $ui->factory()->listing()->descriptive($l);
4029  $sections[] = $prop_list;
4030  }
4031  if (count($sections) > 0) {
4032  $card = $card->withSections($sections);
4033  }
4034 
4035  $lp = ilLPStatus::getListGUIStatus($obj_id, false);
4036  if (is_array($lp) && array_key_exists('status', $lp)) {
4037  $percentage = (int) ilLPStatus::_lookupPercentage($obj_id, $this->user->getId());
4038  if ($lp['status'] == ilLPStatus::LP_STATUS_COMPLETED_NUM) {
4039  $percentage = 100;
4040  }
4041 
4042  $card = $card->withProgress(
4043  $ui->factory()
4044  ->chart()
4045  ->progressMeter()
4046  ->mini(100, $percentage)
4047  );
4048  }
4049 
4050  return $card;
4051  }
const LP_STATUS_COMPLETED_NUM
static _lookupPercentage($a_obj_id, $a_user_id)
Lookup percentage.
user()
Definition: user.php:4
initItem($a_ref_id, $a_obj_id, $type, $a_title="", $a_description="")
inititialize new item (is called by getItemHTML())
modifySAHSlaunch($a_link, $wtarget)
workaround: SAHS in new javavasript-created window or iframe
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
determineProperties()
Determine properties.
static _appointmentToString($start, $end, $fulltime)
static getListGUIStatus($a_obj_id, $a_image_only=true)
ui()
Definition: ui.php:5
enableCommands($a_status, $a_std_only=false)
En/disable commands.
getUniqueItemId($a_as_div=false)
Get unique item identifier (for js-actions)
static _lookupAppointment($a_obj_id)
lookup appointment
insertCommands( $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_header_actions=false)
insert all commands into html code
getDefaultCommand()
Get default command.
+ Here is the call graph for this function:

◆ getAsListItem()

ilObjectListGUI::getAsListItem ( int  $ref_id,
int  $obj_id,
string  $type,
string  $title,
string  $description 
)

Get list item ui object.

Parameters
int$ref_id
int$obj_id
string$type
string$title
string$description
Returns
|null

Definition at line 3740 of file class.ilObjectListGUI.php.

References $ui, determineProperties(), enableCommands(), enableComments(), enableNotes(), enableRating(), enableTags(), getDefaultCommand(), getTitle(), initItem(), insertCommands(), modifySAHSlaunch(), and ui().

3747  $ui = $this->ui;
3748 
3749  $this->initItem(
3750  $ref_id,
3751  $obj_id,
3752  $type,
3753  $title,
3754  $description
3755  );
3756 
3757  $this->enableCommands(true);
3758 
3759  // actions
3760  $this->insertCommands();
3761  $actions = [];
3762  foreach ($this->current_selection_list->getItems() as $action_item) {
3763  $action = $ui->factory()
3764  ->button()
3765  ->shy($action_item['title'], $action_item['link']);
3766 
3767  // Dirty hack to remain the "onclick" action of action items
3768  if ($action_item['onclick'] != null && $action_item['onclick'] != '') {
3769  $action = $action->withAdditionalOnLoadCode(function ($id) use ($action_item) {
3770  return "$('#$id').click(function(){" . $action_item['onclick'] . ";});";
3771  });
3772  }
3773 
3774  $actions[] = $action;
3775  }
3776 
3777  $dropdown = $ui->factory()
3778  ->dropdown()
3779  ->standard($actions)
3780  ->withAriaLabel(sprintf(
3781  $this->lng->txt('actions_for'),
3782  htmlspecialchars(addslashes($title))
3783  ));
3784 
3785  $def_command = $this->getDefaultCommand();
3786 
3787  $icon = $this->ui->factory()
3788  ->symbol()
3789  ->icon()
3790  ->custom(ilObject::_getIcon($obj_id), $this->lng->txt("icon") . " " . $this->lng->txt('obj_' . $type))
3791  ->withSize('medium');
3792 
3793 
3794  if ($def_command['link']) {
3795  $def_command['link'] = $this->modifySAHSlaunch($def_command['link'], $def_command['frame']);
3796  $new_viewport = !in_array($this->getDefaultCommand()['frame'], ['', '_top', '_self', '_parent'], true); // Cannot use $def_command['frame']. $this->default_command has been edited.
3797  $link = $this->ui->factory()
3798  ->link()
3799  ->standard($this->getTitle(), $def_command['link'])
3800  ->withOpenInNewViewport($new_viewport);
3801  $list_item = $ui->factory()->item()->standard($link);
3802  } else {
3803  $list_item = $ui->factory()->item()->standard($this->getTitle());
3804  }
3805 
3806  if ($description != "") {
3807  $list_item = $list_item->withDescription($description);
3808  }
3809  $list_item = $list_item->withActions($dropdown)->withLeadIcon($icon);
3810 
3811 
3812  $l = [];
3813  $this->enableComments(true);
3814  $this->enableNotes(true);
3815  $this->enableTags(true);
3816  $this->enableRating(true);
3817 
3818  foreach ($this->determineProperties() as $p) {
3819  //if ($p['property'] !== $this->lng->txt('learning_progress')) {
3820  $l[(string) $p['property']] = (string) $p['value'];
3821  //}
3822  }
3823  if (count($l) > 0) {
3824  $list_item = $list_item->withProperties($l);
3825  }
3826 
3827  // @todo: learning progress
3828 
3829 
3830  /*
3831  $lp = ilLPStatus::getListGUIStatus($item['obj_id'], false);
3832  if (is_array($lp) && array_key_exists('status', $lp)) {
3833  $percentage = (int)ilLPStatus::_lookupPercentage($item['obj_id'], $this->user->getId());
3834  if ($lp['status'] == ilLPStatus::LP_STATUS_COMPLETED_NUM) {
3835  $percentage = 100;
3836  }
3837 
3838  $card = $card->withProgress(
3839  $this->uiFactory
3840  ->chart()
3841  ->progressMeter()
3842  ->mini(100, $percentage)
3843  );
3844  }*/
3845 
3846  return $list_item;
3847  }
enableNotes($a_value)
Toogle notes action status.
enableRating($a_value, $a_text=null, $a_categories=false, array $a_ctrl_path=null)
Toogle rating action status.
initItem($a_ref_id, $a_obj_id, $type, $a_title="", $a_description="")
inititialize new item (is called by getItemHTML())
modifySAHSlaunch($a_link, $wtarget)
workaround: SAHS in new javavasript-created window or iframe
determineProperties()
Determine properties.
Common interface to all items.
Definition: Item.php:10
ui()
Definition: ui.php:5
enableCommands($a_status, $a_std_only=false)
En/disable commands.
enableComments($a_value, $a_enable_comments_settings=true)
Toogle comments action status.
getTitle()
getTitle overwritten in class.ilObjLinkResourceList.php
enableTags($a_value)
Toogle tags action status.
insertCommands( $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_header_actions=false)
insert all commands into html code
getDefaultCommand()
Get default command.
+ Here is the call graph for this function:

◆ getCheckboxStatus()

ilObjectListGUI::getCheckboxStatus ( )

Are checkboxes enabled?

Returns
boolean icons enabled?

Definition at line 466 of file class.ilObjectListGUI.php.

References $checkboxes_enabled.

Referenced by ilObjStudyProgrammeListGUI\getListItemHTML(), ilObjStudyProgrammeReferenceListGUI\getListItemHTML(), ilObjLTIConsumerListGUI\insertIconsAndCheckboxes(), and insertIconsAndCheckboxes().

467  {
469  }
+ Here is the caller graph for this function:

◆ getCommandFrame()

ilObjectListGUI::getCommandFrame (   $a_cmd)

Get command target frame.

Overwrite this method if link frame is not current frame

Parameters
string$a_cmdcommand
Returns
string command target frame

Definition at line 1167 of file class.ilObjectListGUI.php.

Referenced by getCommands(), insertCommonSocialCommands(), ilObjOrgUnitListGUI\insertInfoScreenCommand(), and insertInfoScreenCommand().

1168  {
1169  // begin-patch fm
1170  if ($a_cmd == 'fileManagerLaunch') {
1171  return '_blank';
1172  }
1173  // end-patch fm
1174  return "";
1175  }
+ Here is the caller graph for this function:

◆ getCommandId()

ilObjectListGUI::getCommandId ( )

get command id Normally the ref id.

Overwritten for course and category references

public

Parameters

Definition at line 901 of file class.ilObjectListGUI.php.

References $ref_id.

Referenced by getCommandLink(), insertCopyCommand(), insertCutCommand(), insertDeleteCommand(), ilObjLTIConsumerListGUI\insertIconsAndCheckboxes(), insertIconsAndCheckboxes(), insertLinkCommand(), insertPasteCommand(), and insertSubscribeCommand().

902  {
903  return $this->ref_id;
904  }
+ Here is the caller graph for this function:

◆ getCommandImage()

ilObjectListGUI::getCommandImage (   $a_cmd)

Get command icon image.

Overwrite this method if an icon is provided

Parameters
string$a_cmdcommand
Returns
string image path

Definition at line 1186 of file class.ilObjectListGUI.php.

Referenced by getCommands().

1187  {
1188  return "";
1189  }
+ Here is the caller graph for this function:

◆ getCommandLink()

ilObjectListGUI::getCommandLink (   $a_cmd)

Get command link url.

Overwrite this method, if link target is not build by ctrl class (e.g. "forum.php"). This is the case for all links now, but bringing everything to ilCtrl should be realised in the future.

Parameters
string$a_cmdcommand
Returns
string command link url

Definition at line 1128 of file class.ilObjectListGUI.php.

References $_GET, $DIC, ilDAVActivationChecker\_isActive(), getCommandId(), and ilWebDAVUriBuilder\getUriToMountInstructionModalByRef().

Referenced by getCommands(), and insertInfoScreenCommand().

1129  {
1130  if ($this->context == self::CONTEXT_REPOSITORY) {
1131  // BEGIN WebDAV Get mount webfolder link.
1132  require_once('Services/WebDAV/classes/class.ilDAVActivationChecker.php');
1133  if ($a_cmd == 'mount_webfolder' && ilDAVActivationChecker::_isActive()) {
1134  global $DIC;
1135  $uri_builder = new ilWebDAVUriBuilder($DIC->http()->request());
1136  return $uri_builder->getUriToMountInstructionModalByRef($this->ref_id);
1137  }
1138  // END WebDAV Get mount webfolder link.
1139 
1140  $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->getCommandId());
1141  $cmd_link = $this->ctrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
1142  $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
1143  return $cmd_link;
1144 
1145  /* separate method for this line
1146  $cmd_link = $this->ctrl->getLinkTargetByClass($this->gui_class_name,
1147  $a_cmd);
1148  return $cmd_link;
1149  */
1150  } else {
1151  $this->ctrl->setParameterByClass($this->gui_class_name, "ref_id", "");
1152  $this->ctrl->setParameterByClass($this->gui_class_name, "wsp_id", $this->ref_id);
1153  return $this->ctrl->getLinkTargetByClass($this->gui_class_name, $a_cmd);
1154  }
1155  }
$_GET["client_id"]
static _isActive()
Static getter.
getCommandId()
get command id Normally the ref id.
$DIC
Definition: xapitoken.php:46
getUriToMountInstructionModalByRef(int $a_ref_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCommands()

ilObjectListGUI::getCommands ( )

get all current commands for a specific ref id (in the permission context of the current user)

!!!NOTE!!!: Please use getListHTML() if you want to display the item including all commands

!!!NOTE 2!!!: Please do not overwrite this method in derived classes becaus it will get pretty large and much code will be simply copy-and-pasted. Insert smaller object type related method calls instead. (like getCommandLink() or getCommandFrame())

public

Parameters
int$a_ref_idref id of object
Returns
array array of command arrays including "permission" => permission name "cmd" => command "link" => command link url "frame" => command link frame "lang_var" => language variable of command "granted" => true/false: command granted or not "access_info" => access info object (to do: implementation)

Definition at line 1361 of file class.ilObjectListGUI.php.

References $access, $ilUser, $txt, $user, checkCommandAccess(), getCommandFrame(), getCommandImage(), and getCommandLink().

Referenced by insertCommands().

1362  {
1363  $ilAccess = $this->access;
1364  $ilUser = $this->user;
1365 
1366  $ref_commands = array();
1367  foreach ($this->commands as $command) {
1368  $permission = $command["permission"];
1369  $cmd = $command["cmd"];
1370  $lang_var = $command["lang_var"];
1371  $txt = "";
1372  $info_object = null;
1373 
1374  if (isset($command["txt"])) {
1375  $txt = $command["txt"];
1376  }
1377 
1378  // BEGIN WebDAV: Suppress commands that don't make sense for anonymous users.
1379  // Suppress commands that don't make sense for anonymous users
1380  if ($ilUser->getId() == ANONYMOUS_USER_ID &&
1381  $command['enable_anonymous'] == 'false') {
1382  continue;
1383  }
1384  // END WebDAV: Suppress commands that don't make sense for anonymous users.
1385 
1386  // all access checking should be made within $ilAccess and
1387  // the checkAccess of the ilObj...Access classes
1388  //$access = $ilAccess->checkAccess($permission, $cmd, $this->ref_id, $this->type);
1389  $access = $this->checkCommandAccess($permission, $cmd, $this->ref_id, $this->type);
1390 
1391  if ($access) {
1392  $cmd_link = $this->getCommandLink($command["cmd"]);
1393  $cmd_frame = $this->getCommandFrame($command["cmd"]);
1394  $cmd_image = $this->getCommandImage($command["cmd"]);
1395  $access_granted = true;
1396  } else {
1397  $access_granted = false;
1398  $info_object = $ilAccess->getInfo();
1399  }
1400 
1401  if (!isset($command["default"])) {
1402  $command["default"] = "";
1403  }
1404  $ref_commands[] = array(
1405  "permission" => $permission,
1406  "cmd" => $cmd,
1407  "link" => $cmd_link,
1408  "frame" => $cmd_frame,
1409  "lang_var" => $lang_var,
1410  "txt" => $txt,
1411  "granted" => $access_granted,
1412  "access_info" => $info_object,
1413  "img" => $cmd_image,
1414  "default" => $command["default"]
1415  );
1416  }
1417 
1418  return $ref_commands;
1419  }
getCommandLink($a_cmd)
Get command link url.
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
getCommandFrame($a_cmd)
Get command target frame.
$ilUser
Definition: imgupload.php:18
getCommandImage($a_cmd)
Get command icon image.
$txt
Definition: error.php:13
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCommandsHTML()

ilObjectListGUI::getCommandsHTML ( )

Get commands HTML (must be called after get list item html)

Definition at line 3565 of file class.ilObjectListGUI.php.

References insertCommands().

3566  {
3567  return $this->insertCommands();
3568  }
insertCommands( $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_header_actions=false)
insert all commands into html code
+ Here is the call graph for this function:

◆ getCommandsStatus()

ilObjectListGUI::getCommandsStatus ( )

◆ getContainerObject()

ilObjectListGUI::getContainerObject ( )

◆ getCopyStatus()

ilObjectListGUI::getCopyStatus ( )
Parameters
bool
Returns
bool

Definition at line 575 of file class.ilObjectListGUI.php.

References $copy_enabled.

576  {
577  return $this->copy_enabled;
578  }

◆ getCustomProperties()

ilObjectListGUI::getCustomProperties (   $a_prop)

get custom properties

Definition at line 1272 of file class.ilObjectListGUI.php.

Referenced by determineProperties().

1273  {
1274  if (is_array($this->cust_prop)) {
1275  foreach ($this->cust_prop as $prop) {
1276  $a_prop[] = $prop;
1277  }
1278  }
1279  return $a_prop;
1280  }
+ Here is the caller graph for this function:

◆ getCutStatus()

ilObjectListGUI::getCutStatus ( )
Parameters
bool
Returns
bool

Definition at line 553 of file class.ilObjectListGUI.php.

554  {
555  return $this->cut_enabled;
556  }

◆ getDefaultCommand()

ilObjectListGUI::getDefaultCommand ( )

Get default command.

Returns
array

Definition at line 973 of file class.ilObjectListGUI.php.

Referenced by getAsCard(), and getAsListItem().

974  {
975  return $this->default_command;
976  }
+ Here is the caller graph for this function:

◆ getDeleteStatus()

ilObjectListGUI::getDeleteStatus ( )
Parameters
bool
Returns
bool

Definition at line 531 of file class.ilObjectListGUI.php.

532  {
533  return $this->delete_enabled;
534  }

◆ getDescription()

ilObjectListGUI::getDescription ( )

getDescription overwritten in class.ilObjLinkResourceList.php

Returns
string description

Definition at line 849 of file class.ilObjectListGUI.php.

Referenced by insertDescription().

850  {
851  return $this->description;
852  }
+ Here is the caller graph for this function:

◆ getDescriptionStatus()

ilObjectListGUI::getDescriptionStatus ( )
Parameters
bool
Returns
bool

Definition at line 354 of file class.ilObjectListGUI.php.

References $description_enabled.

Referenced by getListItemHTML().

355  {
357  }
+ Here is the caller graph for this function:

◆ getDetailsLevel()

ilObjectListGUI::getDetailsLevel ( )

Get current details level.

Returns

Definition at line 942 of file class.ilObjectListGUI.php.

References $details_level.

Referenced by ilObjForumListGUI\getProperties(), ilObjSessionListGUI\getProperties(), and getProperties().

943  {
944  return $this->details_level;
945  }
+ Here is the caller graph for this function:

◆ getDownloadCheckboxState()

ilObjectListGUI::getDownloadCheckboxState ( )

Definition at line 2789 of file class.ilObjectListGUI.php.

References $download_checkbox_state.

Referenced by ilObjLTIConsumerListGUI\insertIconsAndCheckboxes(), and insertIconsAndCheckboxes().

2790  {
2792  }
+ Here is the caller graph for this function:

◆ getExpandStatus()

ilObjectListGUI::getExpandStatus ( )

Is expand/collapse enabled.

Returns
boolean icons enabled?

Definition at line 486 of file class.ilObjectListGUI.php.

References $expand_enabled.

Referenced by ilObjLTIConsumerListGUI\insertIconsAndCheckboxes(), and insertIconsAndCheckboxes().

487  {
488  return $this->expand_enabled;
489  }
+ Here is the caller graph for this function:

◆ getHeaderAction()

ilObjectListGUI::getHeaderAction ( ilGlobalTemplateInterface  $a_main_tpl = null)

Get header action.

Returns
string

Definition at line 2883 of file class.ilObjectListGUI.php.

References $comments_enabled, $DIC, Vendor\Package\$f, $ilUser, $lng, $tags, $type, $user, ilNote\_countNotesAndComments(), ilObject\_lookupTitle(), ilObject\_lookupType(), addHeaderGlyph(), addHeaderIconHTML(), ilTooltipGUI\addTooltip(), ilNoteGUI\getListCommentsJSCall(), ilNoteGUI\getListNotesJSCall(), ilTaggingGUI\getListTagsJSCall(), ilTagging\getTagsForUserAndObject(), IL_NOTE_PRIVATE, IL_NOTE_PUBLIC, ilUtil\img(), insertCommands(), isCommentsActivated(), and ui().

2884  {
2885  global $DIC;
2886 
2887  $ilUser = $this->user;
2888  $lng = $this->lng;
2889 
2890  if ($a_main_tpl == null) {
2891  $main_tpl = $DIC["tpl"];
2892  } else {
2893  $main_tpl = $a_main_tpl;
2894  }
2895 
2896  $htpl = new ilTemplate("tpl.header_action.html", true, true, "Services/Repository");
2897 
2898  $redraw_js = "il.Object.redrawActionHeader();";
2899 
2900  // tags
2901  if ($this->tags_enabled) {
2902  include_once("./Services/Tagging/classes/class.ilTagging.php");
2904  $this->obj_id,
2905  ilObject::_lookupType($this->obj_id),
2906  0,
2907  "",
2908  $ilUser->getId()
2909  );
2910  if (count($tags) > 0) {
2911  include_once("./Services/Tagging/classes/class.ilTaggingGUI.php");
2912  $lng->loadLanguageModule("tagging");
2913  /*$this->addHeaderIcon("tags",
2914  ilUtil::getImagePath("icon_tag.svg"),
2915  $lng->txt("tagging_tags").": ".count($tags),
2916  ilTaggingGUI::getListTagsJSCall($this->ajax_hash, $redraw_js),
2917  count($tags));*/
2918 
2919  $f = $this->ui->factory();
2920  $this->addHeaderGlyph(
2921  "tags",
2922  $f->symbol()->glyph()->tag("#")
2923  ->withCounter($f->counter()->status((int) count($tags))),
2924  ilTaggingGUI::getListTagsJSCall($this->ajax_hash, $redraw_js)
2925  );
2926  }
2927  }
2928 
2929  // notes and comments
2930  $comments_enabled = $this->isCommentsActivated($this->type, $this->ref_id, $this->obj_id, true, false);
2931  if ($this->notes_enabled || $comments_enabled) {
2932  include_once("./Services/Notes/classes/class.ilNote.php");
2933  include_once("./Services/Notes/classes/class.ilNoteGUI.php");
2934  $type = ($this->sub_obj_type == "")
2935  ? $this->type
2936  : $this->sub_obj_type;
2937  $cnt = ilNote::_countNotesAndComments($this->obj_id, $this->sub_obj_id, $type);
2938 
2939  if ($this->notes_enabled && $cnt[$this->obj_id][IL_NOTE_PRIVATE] > 0) {
2940  /*$this->addHeaderIcon("notes",
2941  ilUtil::getImagePath("note_unlabeled.svg"),
2942  $lng->txt("private_notes").": ".$cnt[$this->obj_id][IL_NOTE_PRIVATE],
2943  ilNoteGUI::getListNotesJSCall($this->ajax_hash, $redraw_js),
2944  $cnt[$this->obj_id][IL_NOTE_PRIVATE]
2945  );*/
2946 
2947  $f = $this->ui->factory();
2948  $this->addHeaderGlyph(
2949  "notes",
2950  $f->symbol()->glyph()->note("#")
2951  ->withCounter($f->counter()->status((int) $cnt[$this->obj_id][IL_NOTE_PRIVATE])),
2952  ilNoteGUI::getListNotesJSCall($this->ajax_hash, $redraw_js)
2953  );
2954  }
2955 
2956  if ($comments_enabled && $cnt[$this->obj_id][IL_NOTE_PUBLIC] > 0) {
2957  $lng->loadLanguageModule("notes");
2958 
2959  /*$this->addHeaderIcon("comments",
2960  ilUtil::getImagePath("comment_unlabeled.svg"),
2961  $lng->txt("notes_public_comments").": ".$cnt[$this->obj_id][IL_NOTE_PUBLIC],
2962  ilNoteGUI::getListCommentsJSCall($this->ajax_hash, $redraw_js),
2963  $cnt[$this->obj_id][IL_NOTE_PUBLIC]);*/
2964 
2965  $f = $this->ui->factory();
2966  $this->addHeaderGlyph(
2967  "comments",
2968  $f->symbol()->glyph()->comment("#")
2969  ->withCounter($f->counter()->status((int) $cnt[$this->obj_id][IL_NOTE_PUBLIC])),
2970  ilNoteGUI::getListCommentsJSCall($this->ajax_hash, $redraw_js)
2971  );
2972  }
2973  }
2974 
2975  // rating
2976  if ($this->rating_enabled) {
2977  include_once("./Services/Rating/classes/class.ilRatingGUI.php");
2978  $rating_gui = new ilRatingGUI();
2979  $rating_gui->enableCategories($this->rating_categories_enabled);
2980  // never rate sub objects from header action!
2981  $rating_gui->setObject($this->obj_id, $this->type);
2982  if ($this->rating_text) {
2983  $rating_gui->setYourRatingText($this->rating_text);
2984  }
2985 
2986  $this->ctrl->setParameterByClass("ilRatingGUI", "cadh", $this->ajax_hash);
2987  $this->ctrl->setParameterByClass("ilRatingGUI", "rnsb", true);
2988  if ($this->rating_ctrl_path) {
2989  $rating_gui->setCtrlPath($this->rating_ctrl_path);
2990  $ajax_url = $this->ctrl->getLinkTargetByClass($this->rating_ctrl_path, "saveRating", "", true, false);
2991  } else {
2992  // ???
2993  $ajax_url = $this->ctrl->getLinkTargetByClass("ilRatingGUI", "saveRating", "", true, false);
2994  }
2995  $main_tpl->addOnLoadCode("il.Object.setRatingUrl('" . $ajax_url . "');");
2996  $this->addHeaderIconHTML(
2997  "rating",
2998  $rating_gui->getHtml(
2999  true,
3000  $this->checkCommandAccess("read", "", $this->ref_id, $this->type),
3001  "il.Object.saveRating(%rating%);"
3002  )
3003  );
3004  }
3005 
3006  if ($this->header_icons) {
3007  include_once("./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
3008 
3009  $chunks = array();
3010  foreach ($this->header_icons as $id => $attr) {
3011  $id = "headp_" . $id;
3012 
3013  if (is_array($attr)) {
3014  if ($attr["glyph"]) {
3015  if ($attr["onclick"]) {
3016  $htpl->setCurrentBlock("prop_glyph_oc");
3017  $htpl->setVariable("GLYPH_ONCLICK", $attr["onclick"]);
3018  $htpl->parseCurrentBlock();
3019  }
3020  $renderer = $this->ui->renderer();
3021  $html = $renderer->render($attr["glyph"]);
3022  $htpl->setCurrentBlock("prop_glyph");
3023  $htpl->setVariable("GLYPH", $html);
3024  $htpl->parseCurrentBlock();
3025  } else {
3026  if ($attr["onclick"]) {
3027  $htpl->setCurrentBlock("onclick");
3028  $htpl->setVariable("PROP_ONCLICK", $attr["onclick"]);
3029  $htpl->parseCurrentBlock();
3030  }
3031 
3032  if ($attr["status_text"]) {
3033  $htpl->setCurrentBlock("status");
3034  $htpl->setVariable("PROP_TXT", $attr["status_text"]);
3035  $htpl->parseCurrentBlock();
3036  }
3037 
3038 
3039  $htpl->setCurrentBlock("prop");
3040  if ($attr["href"] || $attr["onclick"]) {
3041  $htpl->setVariable("TAG", "a");
3042  } else {
3043  $htpl->setVariable("TAG", "span");
3044  }
3045  $htpl->setVariable("PROP_ID", $id);
3046  $htpl->setVariable("IMG", ilUtil::img($attr["img"], $attr["tooltip"]));
3047  if ($attr["href"] != "") {
3048  $htpl->setVariable("PROP_HREF", ' href="' . $attr["href"] . '" ');
3049  }
3050  $htpl->parseCurrentBlock();
3051 
3052  if ($attr["tooltip"]) {
3053  ilTooltipGUI::addTooltip($id, $attr["tooltip"]);
3054  }
3055  }
3056  } else {
3057  $chunks[] = $attr;
3058  }
3059  }
3060 
3061  if (sizeof($chunks)) {
3062  $htpl->setVariable(
3063  "PROP_CHUNKS",
3064  implode("&nbsp;&nbsp;&nbsp;", $chunks) . "&nbsp;&nbsp;&nbsp;"
3065  );
3066  }
3067  }
3068 
3069  $this->title = ilObject::_lookupTitle($this->obj_id);
3070  $htpl->setVariable(
3071  "ACTION_DROP_DOWN",
3072  $this->insertCommands(false, false, "", true)
3073  );
3074 
3075  return $htpl->get();
3076  }
static addTooltip( $a_el_id, $a_text, $a_container="", $a_my="bottom center", $a_at="top center", $a_use_htmlspecialchars=true)
Adds a tooltip to an HTML element.
const IL_NOTE_PRIVATE
Definition: class.ilNote.php:5
static _lookupTitle($a_id)
lookup object title
static getListNotesJSCall($a_hash, $a_update_code=null)
Get list notes js call.
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.
Class ilRatingGUI.
static _countNotesAndComments( $a_rep_obj_id, $a_sub_obj_id=null, $a_obj_type="", $a_news_id=0)
Get all notes related to a specific object.
const IL_NOTE_PUBLIC
Definition: class.ilNote.php:6
static getListTagsJSCall($a_hash, $a_update_code=null)
Get tagging js call.
$ilUser
Definition: imgupload.php:18
ui()
Definition: ui.php:5
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static _lookupType($a_id, $a_reference=false)
lookup object type
static getListCommentsJSCall($a_hash, $a_update_code=null)
Get list comments js call.
addHeaderIconHTML($a_id, $a_html)
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.
addHeaderGlyph($a_id, $a_glyph, $a_onclick=null)
$DIC
Definition: xapitoken.php:46
insertCommands( $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_header_actions=false)
insert all commands into html code
+ Here is the call graph for this function:

◆ getIconImageType()

ilObjectListGUI::getIconImageType ( )

Returns the icon image type.

For most objects, this is same as the object type, e.g. 'cat','fold'. We can return here other values, to express a specific state of an object, e.g. 'crs_offline", and/or to express a specific kind of object, e.g. 'file_inline'.

Definition at line 1429 of file class.ilObjectListGUI.php.

References $type.

Referenced by ilObjLTIConsumerListGUI\getIconHref(), getTypeIcon(), ilObjLTIConsumerListGUI\insertIconsAndCheckboxes(), ilObjOrgUnitListGUI\insertIconsAndCheckboxes(), and insertIconsAndCheckboxes().

1430  {
1431  if ($this->type == "sahs" && $this->offline_mode) {
1432  return $this->type . "_offline";
1433  }
1434  return $this->type;
1435  }
+ Here is the caller graph for this function:

◆ getIconStatus()

ilObjectListGUI::getIconStatus ( )

Are icons enabled?

Returns
boolean icons enabled?

Definition at line 446 of file class.ilObjectListGUI.php.

References $icons_enabled.

Referenced by ilObjLTIConsumerListGUI\insertIconsAndCheckboxes(), and insertIconsAndCheckboxes().

447  {
448  return $this->icons_enabled;
449  }
+ Here is the caller graph for this function:

◆ getInfoScreenStatus()

ilObjectListGUI::getInfoScreenStatus ( )
Parameters
bool
Returns
bool

Definition at line 695 of file class.ilObjectListGUI.php.

References $info_screen_enabled.

Referenced by getAsCard(), and insertCommands().

696  {
698  }
+ Here is the caller graph for this function:

◆ getItemDetailLinkStatus()

ilObjectListGUI::getItemDetailLinkStatus ( )

get item detail link status

public

Returns
bool

Definition at line 766 of file class.ilObjectListGUI.php.

References $item_detail_links_enabled.

Referenced by getListItemHTML().

767  {
769  }
+ Here is the caller graph for this function:

◆ getLinkStatus()

ilObjectListGUI::getLinkStatus ( )
Parameters
bool
Returns
bool

Definition at line 619 of file class.ilObjectListGUI.php.

620  {
621  return $this->link_enabled;
622  }

◆ getListItemHTML()

ilObjectListGUI::getListItemHTML (   $a_ref_id,
  $a_obj_id,
  $a_title,
  $a_description,
  $a_use_asynch = false,
  $a_get_asynch_commands = false,
  $a_asynch_url = "" 
)

Get all item information (title, commands, description) in HTML.

public

Parameters
int$a_ref_iditem reference id
int$a_obj_iditem object id
int$a_titleitem title
int$a_descriptionitem description
bool$a_use_asynch
bool$a_get_asynch_commands
string$a_asynch_url
bool$a_contextworkspace/tree context
Returns
string html code

Definition at line 3352 of file class.ilObjectListGUI.php.

References $ilUser, $type, $user, ilObjFileAccess\_isFileHidden(), ilObject\_lookupType(), addCustomProperty(), checkCommandAccess(), enabledRelevance(), getAdditionalInformation(), getCommandsStatus(), getContainerObject(), getDescriptionStatus(), getItemDetailLinkStatus(), getNoticePropertiesStatus(), getPreconditionsStatus(), getProgressInfoStatus(), getPropertiesStatus(), getSearchFragmentStatus(), getSeparateCommands(), getUniqueItemId(), ilRating\hasRatingInListGUI(), IL_LIST_AS_TRIGGER, initItem(), insertCommands(), insertDescription(), insertFileUpload(), insertIconsAndCheckboxes(), insertItemDetailLinks(), insertNoticeProperties(), insertPath(), insertPositionField(), insertPreconditions(), insertProgressInfo(), insertProperties(), insertRelevance(), insertSearchFragment(), insertSubItems(), insertTitle(), isFileUploadAllowed(), isMode(), resetCustomData(), and storeAccessCache().

Referenced by ilObjStudyProgrammeReferenceListGUI\getListItemHTML().

3360  {
3361  $ilUser = $this->user;
3362 
3363  // this variable stores wheter any admin commands
3364  // are included in the output
3365  $this->adm_commands_included = false;
3366 
3367  // only for permformance exploration
3368  $type = ilObject::_lookupType($a_obj_id);
3369 
3370  // initialization
3371  $this->initItem($a_ref_id, $a_obj_id, $type, $a_title, $a_description);
3372 
3373  if ($a_use_asynch && $a_get_asynch_commands) {
3374  return $this->insertCommands(true, true);
3375  }
3376 
3377  if ($this->rating_enabled) {
3378  if (ilRating::hasRatingInListGUI($this->obj_id, $this->type)) {
3379  $may_rate = $this->checkCommandAccess("read", "", $this->ref_id, $this->type);
3380 
3381  $rating = new ilRatingGUI();
3382  $rating->setObject($this->obj_id, $this->type);
3383  /* $this->addCustomProperty(
3384  $this->lng->txt("rating_average_rating"),
3385  $rating->getListGUIProperty($this->ref_id, $may_rate, $this->ajax_hash, $this->parent_ref_id),
3386  false,
3387  true
3388  );*/
3389  $this->addCustomProperty(
3390  "",
3391  $rating->getListGUIProperty($this->ref_id, $may_rate, $this->ajax_hash, $this->parent_ref_id),
3392  false,
3393  true
3394  );
3395  }
3396  }
3397 
3398  // read from cache
3399  include_once("Services/Object/classes/class.ilListItemAccessCache.php");
3400  $this->acache = new ilListItemAccessCache();
3401  $cres = $this->acache->getEntry($ilUser->getId() . ":" . $a_ref_id);
3402  if ($this->acache->getLastAccessStatus() == "hit") {
3403  $this->access_cache = unserialize($cres);
3404  } else {
3405  // write to cache
3406  $this->storeAccessCache();
3407  }
3408 
3409  // visible check
3410  if (!$this->checkCommandAccess("visible", "", $a_ref_id, "", $a_obj_id)) {
3411  $this->resetCustomData();
3412  return "";
3413  }
3414 
3415  // BEGIN WEBDAV
3416  if ($type == 'file' and ilObjFileAccess::_isFileHidden($a_title)) {
3417  $this->resetCustomData();
3418  return "";
3419  }
3420  // END WEBDAV
3421 
3422 
3423  $this->tpl = new ilTemplate(
3424  static::$tpl_file_name,
3425  true,
3426  true,
3427  static::$tpl_component,
3428  "DEFAULT",
3429  false,
3430  true
3431  );
3432 
3433  if ($this->getCommandsStatus()) {
3434  if (!$this->getSeparateCommands()) {
3435  $this->tpl->setVariable(
3436  "COMMAND_SELECTION_LIST",
3437  $this->insertCommands($a_use_asynch, $a_get_asynch_commands, $a_asynch_url)
3438  );
3439  }
3440  }
3441 
3442  if ($this->getProgressInfoStatus()) {
3443  $this->insertProgressInfo();
3444  }
3445 
3446  // insert title and describtion
3447  $this->insertTitle();
3448  if (!$this->isMode(IL_LIST_AS_TRIGGER)) {
3449  if ($this->getDescriptionStatus()) {
3450  $this->insertDescription();
3451  }
3452  }
3453 
3454  if ($this->getSearchFragmentStatus()) {
3455  $this->insertSearchFragment();
3456  }
3457  if ($this->enabledRelevance()) {
3458  $this->insertRelevance();
3459  }
3460 
3461  // properties
3462  if ($this->getPropertiesStatus()) {
3463  $this->insertProperties();
3464  }
3465 
3466  // notice properties
3467  if ($this->getNoticePropertiesStatus()) {
3468  $this->insertNoticeProperties();
3469  }
3470 
3471  // preconditions
3472  if ($this->getPreconditionsStatus()) {
3473  $this->insertPreconditions();
3474  }
3475 
3476  // path
3477  $this->insertPath();
3478 
3479  if ($this->getItemDetailLinkStatus()) {
3480  $this->insertItemDetailLinks();
3481  }
3482 
3483  // icons and checkboxes
3484  $this->insertIconsAndCheckboxes();
3485 
3486  // input field for position
3487  $this->insertPositionField();
3488 
3489  // subitems
3490  $this->insertSubItems();
3491 
3492  // file upload
3493  if ($this->isFileUploadAllowed()) {
3494  $this->insertFileUpload();
3495  }
3496 
3497  $this->resetCustomData();
3498 
3499  $this->tpl->setVariable("DIV_CLASS", 'ilContainerListItemOuter');
3500  $this->tpl->setVariable("DIV_ID", 'data-list-item-id="' . $this->getUniqueItemId(true) . '" id = "' . $this->getUniqueItemId(true) . '"');
3501  $this->tpl->setVariable("ADDITIONAL", $this->getAdditionalInformation());
3502 
3503  if (is_object($this->getContainerObject())) {
3504  // #11554 - make sure that internal ids are reset
3505  $this->ctrl->setParameter($this->getContainerObject(), "item_ref_id", "");
3506  }
3507 
3508  return $this->tpl->get();
3509  }
getProgressInfoStatus()
get progress info status
insertTitle()
insert item title
insertIconsAndCheckboxes()
Insert icons and checkboxes.
insertSearchFragment()
Insert highlighted search fragment.
isMode($a_mode)
check current output mode
getContainerObject()
get container object
storeAccessCache()
Store access cache.
const IL_LIST_AS_TRIGGER
insertPreconditions()
insert all missing preconditions
static _isFileHidden($a_file_name)
Returns true, if a file with the specified name, is usually hidden from the user. ...
resetCustomData()
reset properties and commands
getAdditionalInformation()
Get additional information.
getItemDetailLinkStatus()
get item detail link status
static hasRatingInListGUI($a_obj_id, $a_obj_type)
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
insertPositionField()
Insert field for positioning.
addCustomProperty( $a_property="", $a_value="", $a_alert=false, $a_newline=false)
add custom property
initItem($a_ref_id, $a_obj_id, $type, $a_title="", $a_description="")
inititialize new item (is called by getItemHTML())
isFileUploadAllowed()
Gets a value indicating whether file uploads to this object are allowed or not.
Class ilRatingGUI.
insertProgressInfo()
insert progress info
insertProperties()
insert properties
insertSubItems()
Insert subitems.
enabledRelevance()
enabled relevance
$ilUser
Definition: imgupload.php:18
getSearchFragmentStatus()
Show hide search result fragments.
insertItemDetailLinks()
insert item detail links
static _lookupType($a_id, $a_reference=false)
lookup object type
Caches (check) access information on list items.
getUniqueItemId($a_as_div=false)
Get unique item identifier (for js-actions)
getSeparateCommands()
Get separate commands.
insertCommands( $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_header_actions=false)
insert all commands into html code
insertDescription()
insert item description
insertFileUpload()
Inserts a file upload component.
insertRelevance()
insert relevance
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMode()

ilObjectListGUI::getMode ( )

get output mode

Returns
string output mode (IL_LIST_FULL | IL_LIST_AS_TRIGGER)

Definition at line 1652 of file class.ilObjectListGUI.php.

1653  {
1654  return $this->mode;
1655  }

◆ getNoticeProperties()

ilObjectListGUI::getNoticeProperties ( )

get notice properties

Definition at line 1300 of file class.ilObjectListGUI.php.

Referenced by insertNoticeProperties().

1301  {
1302  $this->notice_prop = array();
1303  if ($infos = $this->ldap_mapping->getInfoStrings($this->obj_id, true)) {
1304  foreach ($infos as $info) {
1305  $this->notice_prop[] = array('value' => $info);
1306  }
1307  }
1308  return $this->notice_prop ? $this->notice_prop : array();
1309  }
+ Here is the caller graph for this function:

◆ getNoticePropertiesStatus()

ilObjectListGUI::getNoticePropertiesStatus ( )

Definition at line 309 of file class.ilObjectListGUI.php.

References $notice_properties_enabled.

Referenced by getListItemHTML().

310  {
312  }
+ Here is the caller graph for this function:

◆ getPathStatus()

ilObjectListGUI::getPathStatus ( )
Parameters
bool
Returns
bool

Definition at line 643 of file class.ilObjectListGUI.php.

Referenced by insertPath().

644  {
645  return $this->path_enabled;
646  }
+ Here is the caller graph for this function:

◆ getPreconditionsStatus()

ilObjectListGUI::getPreconditionsStatus ( )
Parameters
bool
Returns
bool

Definition at line 332 of file class.ilObjectListGUI.php.

References $preconditions_enabled.

Referenced by getListItemHTML().

333  {
335  }
+ Here is the caller graph for this function:

◆ getProgressInfoStatus()

ilObjectListGUI::getProgressInfoStatus ( )

get progress info status

public

Parameters

Definition at line 719 of file class.ilObjectListGUI.php.

References $progress_enabled.

Referenced by getListItemHTML().

720  {
722  }
+ Here is the caller graph for this function:

◆ getProperties()

ilObjectListGUI::getProperties ( )

Get item properties.

Overwrite this method to add properties at the bottom of the item html

Returns
array array of property arrays: "alert" (boolean) => display as an alert property (usually in red) "property" (string) => property name "value" (string) => property value

Definition at line 1202 of file class.ilObjectListGUI.php.

References $ilUser, $lng, $user, ilDAVActivationChecker\_isActive(), getDetailsLevel(), and ilObject\lookupOfflineStatus().

Referenced by determineProperties(), and getAlertProperties().

1203  {
1204  $lng = $this->lng;
1205  $ilUser = $this->user;
1206 
1207  $props = array();
1208  // please list alert properties first
1209  // example (use $lng->txt instead of "Status"/"Offline" strings):
1210  // $props[] = array("alert" => true, "property" => "Status", "value" => "Offline");
1211  // $props[] = array("alert" => false, "property" => ..., "value" => ...);
1212  // ...
1213 
1214  // #8280: WebDav is only supported in repository
1215  if ($this->context == self::CONTEXT_REPOSITORY) {
1216  // add centralized offline status
1217  if (ilObject::lookupOfflineStatus($this->obj_id)) {
1218  $props[] =
1219  [
1220  'alert' => true,
1221  'property' => $lng->txt("status"),
1222  'value' => $lng->txt("offline")
1223  ];
1224  }
1225 
1226  // BEGIN WebDAV Display locking information
1227  require_once('Services/WebDAV/classes/class.ilDAVActivationChecker.php');
1229  // Show lock info
1230  require_once('Services/WebDAV/classes/lock/class.ilWebDAVLockBackend.php');
1231  $webdav_lock_backend = new ilWebDAVLockBackend();
1232  if ($ilUser->getId() != ANONYMOUS_USER_ID) {
1233  if ($lock = $webdav_lock_backend->getLocksOnObjectId($this->obj_id)) {
1234  $lock_user = new ilObjUser($lock->getIliasOwner());
1235 
1236  $props[] = array(
1237  "alert" => false,
1238  "property" => $lng->txt("in_use_by"),
1239  "value" => $lock_user->getLogin(),
1240  "link" => "./ilias.php?user=" . $lock_user->getId() . '&cmd=showUserProfile&cmdClass=ildashboardgui&baseClass=ilDashboardGUI',
1241  );
1242  }
1243  }
1244  // END WebDAV Display locking information
1245 
1246  if ($this->getDetailsLevel() == self::DETAILS_SEARCH) {
1247  return $props;
1248  }
1249  }
1250  // END WebDAV Display warning for invisible files and files with special characters
1251  }
1252 
1253  return $props;
1254  }
static _isActive()
Static getter.
static lookupOfflineStatus($a_obj_id)
Lookup offline status using objectDataCache.
$ilUser
Definition: imgupload.php:18
getDetailsLevel()
Get current details level.
Class ilWebDAVLockBackend.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPropertiesStatus()

ilObjectListGUI::getPropertiesStatus ( )
Parameters
bool
Returns
bool

Definition at line 292 of file class.ilObjectListGUI.php.

References $properties_enabled.

Referenced by getListItemHTML().

293  {
295  }
+ Here is the caller graph for this function:

◆ getRelevance()

ilObjectListGUI::getRelevance ( )

get relevance

Parameters

Definition at line 426 of file class.ilObjectListGUI.php.

References $relevance.

Referenced by insertRelevance().

427  {
428  return $this->relevance;
429  }
+ Here is the caller graph for this function:

◆ getSearchFragment()

ilObjectListGUI::getSearchFragment ( )

get search fragment

Returns

Definition at line 868 of file class.ilObjectListGUI.php.

References $search_fragment.

Referenced by insertSearchFragment().

869  {
870  return $this->search_fragment;
871  }
+ Here is the caller graph for this function:

◆ getSearchFragmentStatus()

ilObjectListGUI::getSearchFragmentStatus ( )

Show hide search result fragments.

Parameters
bool
Returns
bool

Definition at line 365 of file class.ilObjectListGUI.php.

References $search_fragment_enabled.

Referenced by getListItemHTML().

366  {
368  }
+ Here is the caller graph for this function:

◆ getSeparateCommands()

ilObjectListGUI::getSeparateCommands ( )

Get separate commands.

Returns
boolean separate commands

Definition at line 888 of file class.ilObjectListGUI.php.

References $separate_commands.

Referenced by getListItemHTML().

889  {
891  }
+ Here is the caller graph for this function:

◆ getSubscribeStatus()

ilObjectListGUI::getSubscribeStatus ( )
Parameters
bool
Returns
bool

Definition at line 597 of file class.ilObjectListGUI.php.

598  {
599  return $this->subscribe_enabled;
600  }

◆ getSubstitutionStatus()

ilObjectListGUI::getSubstitutionStatus ( )

Get substitution status.

public

Definition at line 742 of file class.ilObjectListGUI.php.

References $substitutions_enabled.

Referenced by insertDescription().

743  {
745  }
+ Here is the caller graph for this function:

◆ getTitle()

ilObjectListGUI::getTitle ( )

getTitle overwritten in class.ilObjLinkResourceList.php

Returns
string title

Definition at line 830 of file class.ilObjectListGUI.php.

Referenced by getAsListItem(), insertCommands(), ilCourseObjectiveListGUI\insertTitle(), and insertTitle().

831  {
832  return $this->title;
833  }
+ Here is the caller graph for this function:

◆ getTypeIcon()

ilObjectListGUI::getTypeIcon ( )

Get object type specific type icon.

Returns
string

Definition at line 3279 of file class.ilObjectListGUI.php.

References getIconImageType().

Referenced by insertIconsAndCheckboxes().

3280  {
3281  return ilObject::_getIcon(
3282  $this->obj_id,
3283  'small',
3284  $this->getIconImageType()
3285  );
3286  }
getIconImageType()
Returns the icon image type.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getUniqueItemId()

ilObjectListGUI::getUniqueItemId (   $a_as_div = false)

Get unique item identifier (for js-actions)

Parameters
bool$a_as_div
Returns
string

Definition at line 3539 of file class.ilObjectListGUI.php.

References $condition_depth, and $parent_ref_id.

Referenced by getAsCard(), getListItemHTML(), insertCommands(), insertFileUpload(), and parseConditions().

3540  {
3541  // use correct id for references
3542  $id_ref = ($this->reference_ref_id > 0)
3543  ? $this->reference_ref_id
3544  : $this->ref_id;
3545 
3546  // add unique identifier for preconditions (objects can appear twice in same container)
3547  if ($this->condition_depth) {
3548  $id_ref .= "_pc" . $this->condition_depth;
3549  }
3550 
3551  // unique
3552  $id_ref .= "_pref_" . $this->parent_ref_id;
3553 
3554  if (!$a_as_div) {
3555  return $id_ref;
3556  } else {
3557  // action menu [yellow] toggle
3558  return "lg_div_" . $id_ref;
3559  }
3560  }
+ Here is the caller graph for this function:

◆ init()

ilObjectListGUI::init ( )

initialisation

this method should be overwritten by derived classes

Definition at line 253 of file class.ilObjectListGUI.php.

References ilObjectAccess\_getCommands().

Referenced by __construct().

254  {
255  // Create static links for default command (linked title) or not
256  $this->static_link_enabled = true;
257  $this->delete_enabled = true;
258  $this->cut_enabled = true;
259  $this->subscribe_enabled = true;
260  $this->link_enabled = false;
261  $this->copy_enabled = false;
262  $this->progress_enabled = false;
263  $this->notice_properties_enabled = true;
264  $this->info_screen_enabled = false;
265  $this->type = ""; // "cat", "course", ...
266  $this->gui_class_name = ""; // "ilobjcategorygui", "ilobjcoursegui", ...
267 
268  // general commands array, e.g.
269  include_once('./Services/Object/classes/class.ilObjectAccess.php');
270  $this->commands = ilObjectAccess::_getCommands();
271  }
static _getCommands()
get commands
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initItem()

ilObjectListGUI::initItem (   $a_ref_id,
  $a_obj_id,
  $type,
  $a_title = "",
  $a_description = "" 
)

inititialize new item (is called by getItemHTML())

Parameters
int$a_ref_idreference id
int$a_obj_idobject id
string$a_titletitle
string$a_descriptiondescription
int$a_contexttree/workspace

Definition at line 1027 of file class.ilObjectListGUI.php.

References $type, ilObjSAHSLearningModuleAccess\_lookupUserIsOfflineMode(), ilCommonActionDispatcherGUI\buildAjaxHash(), setAjaxHash(), setDescription(), setTitle(), ilCommonActionDispatcherGUI\TYPE_REPOSITORY, and ilCommonActionDispatcherGUI\TYPE_WORKSPACE.

Referenced by getAsCard(), getAsListItem(), getListItemHTML(), and ilCourseObjectiveListGUI\getObjectiveListItemHTML().

1028  {
1029  $this->offline_mode = false;
1030  if ($this->type == "sahs") {
1031  include_once('Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php');
1032  $this->offline_mode = ilObjSAHSLearningModuleAccess::_lookupUserIsOfflineMode($a_obj_id);
1033  }
1034  $this->access_cache = array();
1035  $this->ref_id = $a_ref_id;
1036  $this->obj_id = $a_obj_id;
1037  $this->setTitle($a_title);
1038  $this->setDescription($a_description);
1039  #$this->description = $a_description;
1040 
1041  // checks, whether any admin commands are included in the output
1042  $this->adm_commands_included = false;
1043  $this->prevent_access_caching = false;
1044 
1045  // prepare ajax calls
1046  include_once "Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
1047  if ($this->context == self::CONTEXT_REPOSITORY) {
1049  } else {
1051  }
1052  $this->setAjaxHash(ilCommonActionDispatcherGUI::buildAjaxHash($node_type, $a_ref_id, $type, $a_obj_id));
1053  }
static _lookupUserIsOfflineMode($a_obj_id)
Checks offlineMode and returns false if.
setDescription($a_description)
static buildAjaxHash( $a_node_type, $a_node_id, $a_obj_type, $a_obj_id, $a_sub_type=null, $a_sub_id=null, $a_news_id=0)
Build ajax hash.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertCommand()

ilObjectListGUI::insertCommand (   $a_href,
  $a_text,
  $a_frame = "",
  $a_img = "",
  $a_cmd = "",
  $a_onclick = "" 
)

insert command button

private

Parameters
string$a_hreflink url target
string$a_textlink text
string$a_framelink frame target

Definition at line 2014 of file class.ilObjectListGUI.php.

References ilWebDAVMountInstructionsModalGUI\maybeRenderWebDAVModalInGlobalTpl().

Referenced by insertCommands(), insertCommonSocialCommands(), insertCopyCommand(), insertCutCommand(), insertDeleteCommand(), ilObjOrgUnitListGUI\insertInfoScreenCommand(), insertInfoScreenCommand(), insertLinkCommand(), insertMultiDownloadCommand(), insertPasteCommand(), insertSubscribeCommand(), and insertTimingsCommand().

2015  {
2016  // #11099
2017  $chksum = md5($a_href . $a_text);
2018  if ($a_href == "#" ||
2019  !in_array($chksum, $this->prevent_duplicate_commands)) {
2020  if ($a_href != "#") {
2021  $this->prevent_duplicate_commands[] = $chksum;
2022  }
2023 
2024  $prevent_background_click = false;
2025  if ($a_cmd == 'mount_webfolder') {
2026  $a_onclick = "triggerWebDAVModal('$a_href')";
2027  $a_href = "#";
2029  }
2030 
2031  $this->current_selection_list->addItem(
2032  $a_text,
2033  "",
2034  $a_href,
2035  $a_img,
2036  $a_text,
2037  $a_frame,
2038  "",
2039  $prevent_background_click,
2040  $a_onclick
2041  );
2042  }
2043  }
static maybeRenderWebDAVModalInGlobalTpl()
This is kind of a singleton pattern.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertCommands()

ilObjectListGUI::insertCommands (   $a_use_asynch = false,
  $a_get_asynch_commands = false,
  $a_asynch_url = "",
  $a_header_actions = false 
)

insert all commands into html code

private

Parameters
object$a_tpltemplate object
int$a_ref_iditem reference id

Definition at line 2467 of file class.ilObjectListGUI.php.

References $ilUser, $lng, $txt, $user, ilContainer\_lookupContainerSetting(), appendRepositoryFrameParameter(), checkInfoPageOnAsynchronousRendering(), createDefaultCommand(), ilAdvancedSelectionListGUI\DOWN_ARROW_DARK, getCommands(), getCommandsStatus(), getInfoScreenStatus(), getTitle(), getUniqueItemId(), IL_LIST_AS_TRIGGER, ilObjectServiceSettingsGUI\INFO_TAB_VISIBILITY, insertCommand(), insertCommonSocialCommands(), insertCopyCommand(), insertCutCommand(), insertDeleteCommand(), insertInfoScreenCommand(), insertLinkCommand(), insertMultiDownloadCommand(), insertPasteCommand(), insertSubscribeCommand(), insertTimingsCommand(), and isMode().

Referenced by getAsCard(), getAsListItem(), getCommandsHTML(), getHeaderAction(), and getListItemHTML().

2472  {
2473  $lng = $this->lng;
2474  $ilUser = $this->user;
2475 
2476  if (!$this->getCommandsStatus()) {
2477  return;
2478  }
2479 
2480  include_once("Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
2481  $this->current_selection_list = new ilAdvancedSelectionListGUI();
2482  $this->current_selection_list->setAriaListTitle(
2483  sprintf(
2484  $this->lng->txt('actions_for'),
2485  htmlspecialchars(addslashes($this->getTitle()))
2486  )
2487  );
2488  $this->current_selection_list->setAsynch($a_use_asynch && !$a_get_asynch_commands);
2489  $this->current_selection_list->setAsynchUrl($a_asynch_url);
2490  if ($a_header_actions) {
2491  $this->current_selection_list->setListTitle("<span class='hidden-xs'>" . $lng->txt("actions") . "</span>");
2492  } else {
2493  $this->current_selection_list->setListTitle("");
2494  }
2495  $this->current_selection_list->setId("act_" . $this->getUniqueItemId(false));
2496  $this->current_selection_list->setSelectionHeaderClass("small");
2497  $this->current_selection_list->setItemLinkClass("xsmall");
2498  $this->current_selection_list->setLinksMode("il_ContainerItemCommand2");
2499  $this->current_selection_list->setHeaderIcon(ilAdvancedSelectionListGUI::DOWN_ARROW_DARK);
2500  $this->current_selection_list->setUseImages(false);
2501  $this->current_selection_list->setAdditionalToggleElement($this->getUniqueItemId(true), "ilContainerListItemOuterHighlight");
2502 
2503  $this->ctrl->setParameterByClass($this->gui_class_name, "ref_id", $this->ref_id);
2504 
2505  // only standard command?
2506  $only_default = false;
2507  if ($a_use_asynch && !$a_get_asynch_commands) {
2508  $only_default = true;
2509  }
2510 
2511  $this->default_command = false;
2512  $this->prevent_duplicate_commands = array();
2513 
2514  // we only allow the following commands inside the header actions
2515  $valid_header_commands = array("mount_webfolder");
2516 
2517  $commands = $this->getCommands($this->ref_id, $this->obj_id);
2518  foreach ($commands as $command) {
2519  if ($a_header_actions && !in_array($command["cmd"], $valid_header_commands)) {
2520  continue;
2521  }
2522 
2523  if ($command["granted"] == true) {
2524  if (!$command["default"] === true) {
2525  if (!$this->std_cmd_only && !$only_default) {
2526  // workaround for repository frameset
2527  $command["link"] =
2528  $this->appendRepositoryFrameParameter($command["link"]);
2529 
2530  $cmd_link = $command["link"];
2531  $txt = ($command["lang_var"] == "")
2532  ? $command["txt"]
2533  : $this->lng->txt($command["lang_var"]);
2534  $this->insertCommand(
2535  $cmd_link,
2536  $txt,
2537  $command["frame"],
2538  $command["img"],
2539  $command["cmd"]
2540  );
2541  }
2542  } else {
2543  $this->default_command = $this->createDefaultCommand($command);
2544  //$this->default_command = $command;
2545  }
2546  }
2547  }
2548 
2549  if (!$only_default) {
2550  // custom commands
2551  if (is_array($this->cust_commands)) {
2552  foreach ($this->cust_commands as $command) {
2553  $this->insertCommand(
2554  $command["link"],
2555  $this->lng->txt($command["lang_var"]),
2556  $command["frame"],
2557  "",
2558  $command["cmd"],
2559  $command["onclick"]
2560  );
2561  }
2562  }
2563 
2564  // info screen commmand
2565  if ($this->getInfoScreenStatus()) {
2566  $this->insertInfoScreenCommand();
2567  }
2568 
2569  if (!$this->isMode(IL_LIST_AS_TRIGGER)) {
2570  // edit timings
2571  if ($this->timings_enabled) {
2572  $this->insertTimingsCommand();
2573  }
2574 
2575  // delete
2576  if ($this->delete_enabled) {
2577  $this->insertDeleteCommand();
2578  }
2579 
2580  // link
2581  if ($this->link_enabled) {
2582  $this->insertLinkCommand();
2583  }
2584 
2585  // cut
2586  if ($this->cut_enabled) {
2587  $this->insertCutCommand();
2588  }
2589 
2590  // copy
2591  if ($this->copy_enabled) {
2592  $this->insertCopyCommand();
2593  }
2594 
2595  // cut/copy from workspace to repository
2596  if ($this->repository_transfer_enabled) {
2597  $this->insertCutCommand(true);
2598  $this->insertCopyCommand(true);
2599  }
2600 
2601  // subscribe
2602  if ($this->subscribe_enabled) {
2603  $this->insertSubscribeCommand();
2604  }
2605 
2606  // multi download
2607  if ($this->multi_download_enabled && $a_header_actions) {
2608  $this->insertMultiDownloadCommand();
2609  }
2610 
2611  // BEGIN PATCH Lucene search
2612  if ($this->cut_enabled or $this->link_enabled) {
2613  $this->insertPasteCommand();
2614  }
2615  // END PATCH Lucene Search
2616  }
2617  }
2618 
2619  // common social commands (comment, notes, tags)
2620  if (!$only_default && !$this->isMode(IL_LIST_AS_TRIGGER)) {
2621  $this->insertCommonSocialCommands($a_header_actions);
2622  }
2623 
2624  if (!$a_header_actions) {
2625  $this->ctrl->clearParametersByClass($this->gui_class_name);
2626  }
2627 
2628  // fix bug #12417
2629  // there is one case, where no action menu should be displayed:
2630  // public area, category, no info tab
2631  // todo: make this faster and remove type specific implementation if possible
2632  if ($a_use_asynch && !$a_get_asynch_commands && !$a_header_actions) {
2633  if ($ilUser->getId() == ANONYMOUS_USER_ID && $this->checkInfoPageOnAsynchronousRendering()) {
2634  include_once("./Services/Container/classes/class.ilContainer.php");
2635  include_once("./Services/Object/classes/class.ilObjectServiceSettingsGUI.php");
2637  $this->obj_id,
2639  true
2640  )) {
2641  return;
2642  }
2643  }
2644  }
2645 
2646  if ($a_use_asynch && $a_get_asynch_commands) {
2647  return $this->current_selection_list->getHTML(true);
2648  }
2649 
2650  return $this->current_selection_list->getHTML();
2651  }
getCommands()
get all current commands for a specific ref id (in the permission context of the current user) ...
isMode($a_mode)
check current output mode
insertLinkCommand()
insert link command
const IL_LIST_AS_TRIGGER
insertCopyCommand($a_to_repository=false)
Insert copy command.
insertPasteCommand()
Insert paste command.
createDefaultCommand($command)
Get default command link Overwritten for e.g categories,courses => they return a goto link If search ...
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
insertSubscribeCommand()
insert subscribe command
insertDeleteCommand()
insert cut command
insertInfoScreenCommand()
insert info screen command
$ilUser
Definition: imgupload.php:18
$txt
Definition: error.php:13
appendRepositoryFrameParameter($a_link)
workaround: all links into the repository (from outside) must tell repository to setup the frameset ...
getTitle()
getTitle overwritten in class.ilObjLinkResourceList.php
insertTimingsCommand()
insert edit timings command
getUniqueItemId($a_as_div=false)
Get unique item identifier (for js-actions)
insertCommonSocialCommands($a_header_actions=false)
Insert common social commands (comments, notes, tagging)
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
insertCutCommand($a_to_repository=false)
insert cut command
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertCommonSocialCommands()

ilObjectListGUI::insertCommonSocialCommands (   $a_header_actions = false)

Insert common social commands (comments, notes, tagging)

Parameters

Definition at line 2355 of file class.ilObjectListGUI.php.

References $comments_enabled, $ilUser, $lng, $ref_id, $reference_ref_id, $user, getCommandFrame(), ilNoteGUI\getListCommentsJSCall(), ilNoteGUI\getListNotesJSCall(), ilTaggingGUI\getListTagsJSCall(), insertCommand(), and isCommentsActivated().

Referenced by insertCommands().

2356  {
2357  $lng = $this->lng;
2358  $ilUser = $this->user;
2359 
2360  if ($this->std_cmd_only ||
2361  ($ilUser->getId() == ANONYMOUS_USER_ID)) {
2362  return;
2363  }
2364  $lng->loadLanguageModule("notes");
2365  $lng->loadLanguageModule("tagging");
2366  $cmd_frame = $this->getCommandFrame("infoScreen");
2367  include_once("./Services/Notes/classes/class.ilNoteGUI.php");
2368 
2369  // reference objects have translated ids, revert to originals
2370  $note_ref_id = $this->ref_id;
2371  if ($this->reference_ref_id) {
2372  $note_ref_id = $this->reference_ref_id;
2373  }
2374 
2375  $js_updater = $a_header_actions
2376  ? "il.Object.redrawActionHeader();"
2377  : "il.Object.redrawListItem(" . $note_ref_id . ")";
2378 
2379  $comments_enabled = $this->isCommentsActivated($this->type, $this->ref_id, $this->obj_id, $a_header_actions, true);
2380  if ($comments_enabled) {
2381  $this->insertCommand(
2382  "#",
2383  $this->lng->txt("notes_comments"),
2384  $cmd_frame,
2385  "",
2386  "",
2387  ilNoteGUI::getListCommentsJSCall($this->ajax_hash, $js_updater)
2388  );
2389  }
2390 
2391  if ($this->notes_enabled) {
2392  $this->insertCommand(
2393  "#",
2394  $this->lng->txt("notes"),
2395  $cmd_frame,
2396  "",
2397  "",
2398  ilNoteGUI::getListNotesJSCall($this->ajax_hash, $js_updater)
2399  );
2400  }
2401 
2402  if ($this->tags_enabled) {
2403  include_once("./Services/Tagging/classes/class.ilTaggingGUI.php");
2404  //$this->insertCommand($cmd_tag_link, $this->lng->txt("tagging_set_tag"), $cmd_frame);
2405  $this->insertCommand(
2406  "#",
2407  $this->lng->txt("tagging_set_tag"),
2408  $cmd_frame,
2409  "",
2410  "",
2411  ilTaggingGUI::getListTagsJSCall($this->ajax_hash, $js_updater)
2412  );
2413  }
2414  }
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
static getListNotesJSCall($a_hash, $a_update_code=null)
Get list notes js call.
getCommandFrame($a_cmd)
Get command target frame.
static getListTagsJSCall($a_hash, $a_update_code=null)
Get tagging js call.
$ilUser
Definition: imgupload.php:18
static getListCommentsJSCall($a_hash, $a_update_code=null)
Get list comments js call.
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.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertCopyCommand()

ilObjectListGUI::insertCopyCommand (   $a_to_repository = false)

Insert copy command.

Parameters
bool$a_to_repository

Definition at line 2203 of file class.ilObjectListGUI.php.

References $obj_definition, checkCommandAccess(), getCommandId(), and insertCommand().

Referenced by insertCommands().

2204  {
2205  $objDefinition = $this->obj_definition;
2206 
2207  if ($this->std_cmd_only) {
2208  return;
2209  }
2210 
2211  if ($this->checkCommandAccess('copy', 'copy', $this->ref_id, $this->type) &&
2212  $objDefinition->allowCopy($this->type)) {
2213  if ($this->context != self::CONTEXT_WORKSPACE && $this->context != self::CONTEXT_WORKSPACE_SHARING) {
2214  $this->ctrl->setParameterByClass('ilobjectcopygui', 'source_id', $this->getCommandId());
2215  $cmd_copy = $this->ctrl->getLinkTargetByClass('ilobjectcopygui', 'initTargetSelection');
2216  $this->insertCommand($cmd_copy, $this->lng->txt('copy'));
2217  } else {
2218  $this->ctrl->setParameter(
2219  $this->container_obj,
2220  "ref_id",
2221  $this->container_obj->object->getRefId()
2222  );
2223  $this->ctrl->setParameter($this->container_obj, "item_ref_id", $this->getCommandId());
2224 
2225  if (!$a_to_repository) {
2226  $cmd_copy = $this->ctrl->getLinkTarget($this->container_obj, 'copy');
2227  $this->insertCommand($cmd_copy, $this->lng->txt('copy'));
2228  } else {
2229  $cmd_copy = $this->ctrl->getLinkTarget($this->container_obj, 'copy_to_repository');
2230  $this->insertCommand($cmd_copy, $this->lng->txt('wsp_copy_to_repository'));
2231  }
2232  }
2233 
2234  $this->adm_commands_included = true;
2235  }
2236  return;
2237  }
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
getCommandId()
get command id Normally the ref id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertCutCommand()

ilObjectListGUI::insertCutCommand (   $a_to_repository = false)

insert cut command

protected

Parameters
bool$a_to_repository

Definition at line 2146 of file class.ilObjectListGUI.php.

References checkCommandAccess(), getCommandId(), getContainerObject(), and insertCommand().

Referenced by insertCommands().

2147  {
2148  if ($this->std_cmd_only) {
2149  return;
2150  }
2151  // BEGIN PATCH Lucene search
2152  if (is_object($this->getContainerObject()) and
2154  if ($this->checkCommandAccess('delete', '', $this->ref_id, $this->type)) {
2155  $this->ctrl->setParameter($this->getContainerObject(), 'item_ref_id', $this->getCommandId());
2156  $cmd_link = $this->ctrl->getLinkTarget($this->getContainerObject(), "cut");
2157  $this->insertCommand($cmd_link, $this->lng->txt("move"));
2158  $this->adm_commands_included = true;
2159  return true;
2160  }
2161  return false;
2162  }
2163  // END PATCH Lucene Search
2164 
2165  // if the permission is changed here, it has
2166  // also to be changed in ilContainerContentGUI, determineAdminCommands
2167  if ($this->checkCommandAccess('delete', '', $this->ref_id, $this->type) &&
2168  $this->container_obj->object) {
2169  $this->ctrl->setParameter(
2170  $this->container_obj,
2171  "ref_id",
2172  $this->container_obj->object->getRefId()
2173  );
2174  $this->ctrl->setParameter($this->container_obj, "item_ref_id", $this->getCommandId());
2175 
2176  if (!$a_to_repository) {
2177  $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, "cut");
2178  $this->insertCommand(
2179  $cmd_link,
2180  $this->lng->txt("move"),
2181  "",
2182  ""
2183  );
2184  } else {
2185  $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, "cut_for_repository");
2186  $this->insertCommand(
2187  $cmd_link,
2188  $this->lng->txt("wsp_move_to_repository"),
2189  "",
2190  ""
2191  );
2192  }
2193 
2194  $this->adm_commands_included = true;
2195  }
2196  }
getContainerObject()
get container object
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
getCommandId()
get command id Normally the ref id.
Interface for GUI classes (PDGUI, LuceneSearchGUI...) that have to handle administration commands (cu...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertDeleteCommand()

ilObjectListGUI::insertDeleteCommand ( )

insert cut command

private

Parameters
object$a_tpltemplate object
int$a_ref_iditem reference id

Definition at line 2052 of file class.ilObjectListGUI.php.

References checkCommandAccess(), getCommandId(), getContainerObject(), and insertCommand().

Referenced by insertCommands().

2053  {
2054  if ($this->std_cmd_only) {
2055  return;
2056  }
2057 
2058  if (is_object($this->getContainerObject()) and
2060  if ($this->checkCommandAccess('delete', '', $this->ref_id, $this->type)) {
2061  $this->ctrl->setParameter($this->getContainerObject(), 'item_ref_id', $this->getCommandId());
2062  $cmd_link = $this->ctrl->getLinkTarget($this->getContainerObject(), "delete");
2063  $this->insertCommand($cmd_link, $this->lng->txt("delete"));
2064  $this->adm_commands_included = true;
2065  return true;
2066  }
2067  return false;
2068  }
2069 
2070  if ($this->checkCommandAccess('delete', '', $this->ref_id, $this->type)) {
2071  $this->ctrl->setParameter(
2072  $this->container_obj,
2073  "ref_id",
2074  $this->container_obj->object->getRefId()
2075  );
2076  $this->ctrl->setParameter($this->container_obj, "item_ref_id", $this->getCommandId());
2077  $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, "delete");
2078  $this->insertCommand(
2079  $cmd_link,
2080  $this->lng->txt("delete"),
2081  "",
2082  ""
2083  );
2084  $this->adm_commands_included = true;
2085  }
2086  }
getContainerObject()
get container object
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
getCommandId()
get command id Normally the ref id.
Interface for GUI classes (PDGUI, LuceneSearchGUI...) that have to handle administration commands (cu...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertDescription()

ilObjectListGUI::insertDescription ( )

insert item description

private

Parameters
object$a_tpltemplate object
string$a_descitem description

Definition at line 1587 of file class.ilObjectListGUI.php.

References $d, getDescription(), getSubstitutionStatus(), and insertSubstitutions().

Referenced by getListItemHTML(), and ilCourseObjectiveListGUI\getObjectiveListItemHTML().

1588  {
1589  if ($this->getSubstitutionStatus()) {
1590  $this->insertSubstitutions();
1591  if (!$this->substitutions->isDescriptionEnabled()) {
1592  return true;
1593  }
1594  }
1595 
1596  // see bug #16519
1597  $d = $this->getDescription();
1598  $d = strip_tags($d, "<b>");
1599  $this->tpl->setCurrentBlock("item_description");
1600  $this->tpl->setVariable("TXT_DESC", $d);
1601  $this->tpl->parseCurrentBlock();
1602  }
getDescription()
getDescription overwritten in class.ilObjLinkResourceList.php
getSubstitutionStatus()
Get substitution status.
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
Definition: date.php:296
insertSubstitutions()
Insert substitutions.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertFileUpload()

ilObjectListGUI::insertFileUpload ( )

Inserts a file upload component.

Definition at line 3718 of file class.ilObjectListGUI.php.

References getUniqueItemId(), and ilFileUploadGUI\initFileUpload().

Referenced by getListItemHTML().

3719  {
3720  include_once("./Services/FileUpload/classes/class.ilFileUploadGUI.php");
3722 
3723  $upload = new ilFileUploadGUI($this->getUniqueItemId(true), $this->ref_id);
3724 
3725  $this->tpl->setCurrentBlock("fileupload");
3726  $this->tpl->setVariable("FILE_UPLOAD", $upload->getHTML());
3727  $this->tpl->parseCurrentBlock();
3728  }
static initFileUpload()
Initializes the file upload and loads the needed javascripts and styles.
getUniqueItemId($a_as_div=false)
Get unique item identifier (for js-actions)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertIconsAndCheckboxes()

ilObjectListGUI::insertIconsAndCheckboxes ( )

Insert icons and checkboxes.

Definition at line 3188 of file class.ilObjectListGUI.php.

References $lng, $obj_definition, getCheckboxStatus(), getCommandId(), getCommandsStatus(), getDownloadCheckboxState(), getExpandStatus(), getIconImageType(), getIconStatus(), ilUtil\getImagePath(), getTypeIcon(), isExpanded(), and ilObjectPlugin\lookupTxtById().

Referenced by getListItemHTML(), and ilCourseObjectiveListGUI\getObjectiveListItemHTML().

3189  {
3190  $lng = $this->lng;
3191  $objDefinition = $this->obj_definition;
3192 
3193  $cnt = 0;
3194  if ($this->getCheckboxStatus()) {
3195  $this->tpl->setCurrentBlock("check");
3196  $this->tpl->setVariable("VAL_ID", $this->getCommandId());
3197  $this->tpl->parseCurrentBlock();
3198  $cnt += 1;
3199  } elseif ($this->getDownloadCheckboxState() != self::DOWNLOAD_CHECKBOX_NONE) {
3200  $this->tpl->setCurrentBlock("check_download");
3201  if ($this->getDownloadCheckboxState() == self::DOWNLOAD_CHECKBOX_ENABLED) {
3202  $this->tpl->setVariable("VAL_ID", $this->getCommandId());
3203  } else {
3204  $this->tpl->setVariable("VAL_VISIBILITY", "visibility: hidden;\" disabled=\"disabled");
3205  }
3206  $this->tpl->parseCurrentBlock();
3207  $cnt += 1;
3208  } elseif ($this->getExpandStatus()) {
3209  $this->tpl->setCurrentBlock('expand');
3210 
3211  if ($this->isExpanded()) {
3212  $this->ctrl->setParameter($this->container_obj, 'expand', -1 * $this->obj_id);
3213  // "view" added, see #19922
3214  $this->tpl->setVariable('EXP_HREF', $this->ctrl->getLinkTarget($this->container_obj, 'view', $this->getUniqueItemId(true)));
3215  $this->ctrl->clearParameters($this->container_obj);
3216  $this->tpl->setVariable('EXP_IMG', ilUtil::getImagePath('tree_exp.svg'));
3217  $this->tpl->setVariable('EXP_ALT', $this->lng->txt('collapse'));
3218  } else {
3219  $this->ctrl->setParameter($this->container_obj, 'expand', $this->obj_id);
3220  // "view" added, see #19922
3221  $this->tpl->setVariable('EXP_HREF', $this->ctrl->getLinkTarget($this->container_obj, 'view', $this->getUniqueItemId(true)));
3222  $this->ctrl->clearParameters($this->container_obj);
3223  $this->tpl->setVariable('EXP_IMG', ilUtil::getImagePath('tree_col.svg'));
3224  $this->tpl->setVariable('EXP_ALT', $this->lng->txt('expand'));
3225  }
3226 
3227  $this->tpl->parseCurrentBlock();
3228  $cnt += 1;
3229  }
3230 
3231  if ($this->getIconStatus()) {
3232  if ($cnt == 1) {
3233  $this->tpl->touchBlock("i_1"); // indent
3234  }
3235 
3236  // icon link
3237  if ($this->title_link_disabled || !$this->default_command || (!$this->getCommandsStatus() && !$this->restrict_to_goto)) {
3238  } else {
3239  /* see #28926
3240  $this->tpl->setCurrentBlock("icon_link_s");
3241 
3242  if ($this->default_command["frame"] != "") {
3243  $this->tpl->setVariable("ICON_TAR", "target='" . $this->default_command["frame"] . "'");
3244  }
3245 
3246  $this->tpl->setVariable(
3247  "ICON_HREF",
3248  $this->default_command["link"]
3249  );
3250  $this->tpl->parseCurrentBlock();
3251  $this->tpl->touchBlock("icon_link_e");
3252  */
3253  }
3254 
3255  $this->tpl->setCurrentBlock("icon");
3256  if (!$objDefinition->isPlugin($this->getIconImageType())) {
3257  $this->tpl->setVariable("ALT_ICON", $lng->txt("obj_" . $this->getIconImageType()));
3258  } else {
3259  include_once("Services/Component/classes/class.ilPlugin.php");
3260  $this->tpl->setVariable("ALT_ICON",
3261  ilObjectPlugin::lookupTxtById($this->getIconImageType(), "obj_" . $this->getIconImageType()));
3262  }
3263 
3264  $this->tpl->setVariable(
3265  "SRC_ICON",
3266  $this->getTypeIcon()
3267  );
3268  $this->tpl->parseCurrentBlock();
3269  $cnt += 1;
3270  }
3271 
3272  $this->tpl->touchBlock("d_" . $cnt); // indent main div
3273  }
getIconStatus()
Are icons enabled?
static lookupTxtById($plugin_id, $lang_var)
getTypeIcon()
Get object type specific type icon.
getCheckboxStatus()
Are checkboxes enabled?
getCommandId()
get command id Normally the ref id.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getIconImageType()
Returns the icon image type.
getExpandStatus()
Is expand/collapse enabled.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertInfoScreenCommand()

ilObjectListGUI::insertInfoScreenCommand ( )

insert info screen command

Definition at line 2334 of file class.ilObjectListGUI.php.

References getCommandFrame(), getCommandLink(), ilUtil\getImagePath(), and insertCommand().

Referenced by insertCommands().

2335  {
2336  if ($this->std_cmd_only) {
2337  return;
2338  }
2339  $cmd_link = $this->getCommandLink("infoScreen");
2340  $cmd_frame = $this->getCommandFrame("infoScreen");
2341  $this->insertCommand(
2342  $cmd_link,
2343  $this->lng->txt("info_short"),
2344  $cmd_frame,
2345  ilUtil::getImagePath("icon_info.svg")
2346  );
2347  }
getCommandLink($a_cmd)
Get command link url.
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
getCommandFrame($a_cmd)
Get command target frame.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertItemDetailLinks()

ilObjectListGUI::insertItemDetailLinks ( )

insert item detail links

public

Parameters

Definition at line 791 of file class.ilObjectListGUI.php.

Referenced by getListItemHTML().

792  {
793  if (!count($this->item_detail_links)) {
794  return true;
795  }
796  if (strlen($this->item_detail_links_intro)) {
797  $this->tpl->setCurrentBlock('item_detail_intro');
798  $this->tpl->setVariable('ITEM_DETAIL_INTRO_TXT', $this->item_detail_links_intro);
799  $this->tpl->parseCurrentBlock();
800  }
801 
802  foreach ($this->item_detail_links as $info) {
803  $this->tpl->setCurrentBlock('item_detail_link');
804  $this->tpl->setVariable('ITEM_DETAIL_LINK_TARGET', $info['target']);
805  $this->tpl->setVariable('ITEM_DETAIL_LINK_DESC', $info['desc']);
806  $this->tpl->setVariable('ITEM_DETAIL_LINK_HREF', $info['link']);
807  $this->tpl->setVariable('ITEM_DETAIL_LINK_NAME', $info['name']);
808  $this->tpl->parseCurrentBlock();
809  }
810  $this->tpl->setCurrentBlock('item_detail_links');
811  $this->tpl->parseCurrentBlock();
812  }
+ Here is the caller graph for this function:

◆ insertLinkCommand()

ilObjectListGUI::insertLinkCommand ( )

insert link command

private

Parameters
object$a_tpltemplate object
int$a_ref_iditem reference id

Definition at line 2095 of file class.ilObjectListGUI.php.

References $obj_definition, checkCommandAccess(), getCommandId(), getContainerObject(), and insertCommand().

Referenced by insertCommands().

2096  {
2097  $objDefinition = $this->obj_definition;
2098 
2099  if ($this->std_cmd_only) {
2100  return;
2101  }
2102 
2103  // #17307
2104  if (!$this->checkCommandAccess('delete', '', $this->ref_id, $this->type) or
2105  !$objDefinition->allowLink($this->type)) {
2106  return false;
2107  }
2108 
2109  // BEGIN PATCH Lucene search
2110 
2111  if (is_object($this->getContainerObject()) and
2113  $this->ctrl->setParameter($this->getContainerObject(), 'item_ref_id', $this->getCommandId());
2114  $cmd_link = $this->ctrl->getLinkTarget($this->getContainerObject(), "link");
2115  $this->insertCommand($cmd_link, $this->lng->txt("link"));
2116  $this->adm_commands_included = true;
2117  return true;
2118  }
2119  // END PATCH Lucene Search
2120 
2121  // if the permission is changed here, it has
2122  // also to be changed in ilContainerGUI, admin command check
2123  $this->ctrl->setParameter(
2124  $this->container_obj,
2125  "ref_id",
2126  $this->container_obj->object->getRefId()
2127  );
2128  $this->ctrl->setParameter($this->container_obj, "item_ref_id", $this->getCommandId());
2129  $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, "link");
2130  $this->insertCommand(
2131  $cmd_link,
2132  $this->lng->txt("link"),
2133  "",
2134  ""
2135  );
2136  $this->adm_commands_included = true;
2137  return true;
2138  }
getContainerObject()
get container object
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
getCommandId()
get command id Normally the ref id.
Interface for GUI classes (PDGUI, LuceneSearchGUI...) that have to handle administration commands (cu...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertMultiDownloadCommand()

ilObjectListGUI::insertMultiDownloadCommand ( )

Definition at line 2735 of file class.ilObjectListGUI.php.

References $_GET, $obj_definition, ilObject\_lookupType(), getContainerObject(), insertCommand(), and user().

Referenced by insertCommands().

2736  {
2737  $objDefinition = $this->obj_definition;
2738 
2739  if ($this->std_cmd_only) {
2740  return;
2741  }
2742 
2743  if (!$objDefinition->isContainer(ilObject::_lookupType($this->obj_id))) {
2744  return false;
2745  }
2746 
2747  if (is_object($this->getContainerObject()) &&
2748  $this->getContainerObject() instanceof ilContainerGUI) {
2749  $this->ctrl->setParameter($this->getContainerObject(), "type", "");
2750  $this->ctrl->setParameter($this->getContainerObject(), "item_ref_id", "");
2751  $this->ctrl->setParameter($this->getContainerObject(), "active_node", "");
2752  // bugfix mantis 24559
2753  // undoing an erroneous change inside mantis 23516 by adding "Download Multiple Objects"-functionality for non-admins
2754  // as they don't have the possibility to use the multi-download-capability of the manage-tab
2755  $user_id = $this->user->getId();
2756  $hasAdminAccess = $this->access->checkAccessOfUser($user_id, "crs_admin", $this->ctrl->getCmd(), $_GET['ref_id']);
2757  // to still prevent duplicate download functions for admins the following if-else statement keeps the redirection for admins
2758  // while letting other course members access the original multi-download functionality
2759  if ($hasAdminAccess) {
2760  $cmd = $_GET["cmd"] == "enableAdministrationPanel" ? "render" : "enableAdministrationPanel";
2761  } else {
2762  $cmd = $_GET["cmd"] == "enableMultiDownload" ? "render" : "enableMultiDownload";
2763  }
2764  $cmd_link = $this->ctrl->getLinkTarget($this->getContainerObject(), $cmd);
2765  $this->insertCommand($cmd_link, $this->lng->txt("download_multiple_objects"));
2766  return true;
2767  }
2768 
2769  return false;
2770  }
getContainerObject()
get container object
$_GET["client_id"]
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
user()
Definition: user.php:4
static _lookupType($a_id, $a_reference=false)
lookup object type
Class ilContainerGUI.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertNoticeProperties()

ilObjectListGUI::insertNoticeProperties ( )

Definition at line 1847 of file class.ilObjectListGUI.php.

References getNoticeProperties().

Referenced by getListItemHTML().

1848  {
1849  $this->getNoticeProperties();
1850  foreach ($this->notice_prop as $property) {
1851  $this->tpl->setCurrentBlock('notice_item');
1852  $this->tpl->setVariable('NOTICE_ITEM_VALUE', $property['value']);
1853  $this->tpl->parseCurrentBlock();
1854  }
1855  $this->tpl->setCurrentBlock('notice_property');
1856  $this->tpl->parseCurrentBlock();
1857  }
getNoticeProperties()
get notice properties
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertPasteCommand()

ilObjectListGUI::insertPasteCommand ( )

Insert paste command.

Definition at line 2243 of file class.ilObjectListGUI.php.

References $_SESSION, $obj_definition, ilObject\_lookupType(), getCommandId(), getContainerObject(), and insertCommand().

Referenced by insertCommands().

2244  {
2245  $objDefinition = $this->obj_definition;
2246 
2247  if ($this->std_cmd_only) {
2248  return;
2249  }
2250 
2251  if (!$objDefinition->isContainer(ilObject::_lookupType($this->obj_id))) {
2252  return false;
2253  }
2254 
2255  if (is_object($this->getContainerObject()) and
2256  $this->getContainerObject() instanceof ilAdministrationCommandHandling and
2257  isset($_SESSION['clipboard'])) {
2258  $this->ctrl->setParameter($this->getContainerObject(), 'item_ref_id', $this->getCommandId());
2259  $cmd_link = $this->ctrl->getLinkTarget($this->getContainerObject(), "paste");
2260  $this->insertCommand($cmd_link, $this->lng->txt("paste"));
2261  $this->adm_commands_included = true;
2262  return true;
2263  }
2264  return false;
2265  }
getContainerObject()
get container object
$_SESSION["AccountId"]
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
getCommandId()
get command id Normally the ref id.
static _lookupType($a_id, $a_reference=false)
lookup object type
Interface for GUI classes (PDGUI, LuceneSearchGUI...) that have to handle administration commands (cu...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertPath()

ilObjectListGUI::insertPath ( )

insert path

Definition at line 3144 of file class.ilObjectListGUI.php.

References $lng, $path_gui, and getPathStatus().

Referenced by getListItemHTML().

3145  {
3146  $lng = $this->lng;
3147 
3148  if ($this->getPathStatus() != false) {
3149  if (!$this->path_gui instanceof \ilPathGUI) {
3150  $path_gui = new \ilPathGUI();
3151  } else {
3153  }
3154 
3155  $path_gui->enableTextOnly(!$this->path_linked);
3156  $path_gui->setUseImages(false);
3157 
3158  $start_node = $this->path_start_node
3159  ? $this->path_start_node
3160  : ROOT_FOLDER_ID;
3161 
3162  $this->tpl->setCurrentBlock("path_item");
3163  $this->tpl->setVariable('PATH_ITEM', $path_gui->getPath($start_node, $this->ref_id));
3164  $this->tpl->parseCurrentBlock();
3165 
3166  $this->tpl->setCurrentBlock("path");
3167  $this->tpl->setVariable("TXT_LOCATION", $lng->txt("locator"));
3168  $this->tpl->parseCurrentBlock();
3169  return true;
3170  }
3171  }
Creates a path for a start and endnode.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertPositionField()

ilObjectListGUI::insertPositionField ( )

Insert field for positioning.

Definition at line 3303 of file class.ilObjectListGUI.php.

Referenced by getListItemHTML(), and ilCourseObjectiveListGUI\getObjectiveListItemHTML().

3304  {
3305  if ($this->position_enabled) {
3306  $this->tpl->setCurrentBlock("position");
3307  $this->tpl->setVariable("POS_ID", $this->position_field_index);
3308  $this->tpl->setVariable("POS_VAL", $this->position_value);
3309  $this->tpl->parseCurrentBlock();
3310  }
3311  }
+ Here is the caller graph for this function:

◆ insertPreconditions()

ilObjectListGUI::insertPreconditions ( )

insert all missing preconditions

Definition at line 1963 of file class.ilObjectListGUI.php.

References $i, ilObject\_lookupTitle(), parseConditions(), and ilUtil\sortArray().

Referenced by getListItemHTML().

1964  {
1965  include_once("./Services/Conditions/classes/class.ilConditionHandler.php");
1966 
1967  // do not show multi level conditions (messes up layout)
1968  if ($this->condition_depth > 0) {
1969  return;
1970  }
1971 
1972  if ($this->condition_target) {
1973  $conditions = ilConditionHandler::_getEffectiveConditionsOfTarget(
1974  $this->condition_target['ref_id'],
1975  $this->condition_target['obj_id'],
1976  $this->condition_target['target_type']
1977  );
1978  } else {
1979  $conditions = ilConditionHandler::_getEffectiveConditionsOfTarget($this->ref_id, $this->obj_id);
1980  }
1981 
1982  if (sizeof($conditions)) {
1983  for ($i = 0; $i < count($conditions); $i++) {
1984  $conditions[$i]['title'] = ilObject::_lookupTitle($conditions[$i]['trigger_obj_id']);
1985  }
1986  $conditions = ilUtil::sortArray($conditions, 'title', 'DESC');
1987 
1988  ++self::$js_unique_id;
1989 
1990  // Show obligatory and optional preconditions seperated
1991  $all_done_obl = $this->parseConditions(self::$js_unique_id, $conditions, true);
1992  $all_done_opt = $this->parseConditions(self::$js_unique_id, $conditions, false);
1993 
1994  if (!$all_done_obl || !$all_done_opt) {
1995  $this->tpl->setCurrentBlock("preconditions_toggle");
1996  $this->tpl->setVariable("PRECONDITION_TOGGLE_INTRO", $this->lng->txt("precondition_toggle"));
1997  $this->tpl->setVariable("PRECONDITION_TOGGLE_TRIGGER", $this->lng->txt("show"));
1998  $this->tpl->setVariable("PRECONDITION_TOGGLE_ID", self::$js_unique_id);
1999  $this->tpl->setVariable("TXT_PRECONDITION_SHOW", $this->lng->txt("show"));
2000  $this->tpl->setVariable("TXT_PRECONDITION_HIDE", $this->lng->txt("hide"));
2001  $this->tpl->parseCurrentBlock();
2002  }
2003  }
2004  }
parseConditions($toggle_id, $conditions, $obligatory=true)
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static _lookupTitle($a_id)
lookup object title
$i
Definition: metadata.php:24
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertProgressInfo()

ilObjectListGUI::insertProgressInfo ( )

insert progress info

public

Returns

Definition at line 3179 of file class.ilObjectListGUI.php.

Referenced by getListItemHTML().

3180  {
3181  return true;
3182  }
+ Here is the caller graph for this function:

◆ insertProperties()

ilObjectListGUI::insertProperties ( )

insert properties

private

Definition at line 1802 of file class.ilObjectListGUI.php.

References determineProperties().

Referenced by getListItemHTML().

1803  {
1804  $props = $this->determineProperties();
1805  $cnt = 1;
1806  if (is_array($props) && count($props) > 0) {
1807  foreach ($props as $prop) {
1808  // BEGIN WebDAV: Display a separator between properties.
1809  if ($cnt > 1) {
1810  $this->tpl->touchBlock("separator_prop");
1811  }
1812  // END WebDAV: Display a separator between properties.
1813 
1814  if ($prop["alert"] == true) {
1815  $this->tpl->touchBlock("alert_prop");
1816  } else {
1817  $this->tpl->touchBlock("std_prop");
1818  }
1819  if ($prop["newline"] == true && $cnt > 1) {
1820  $this->tpl->touchBlock("newline_prop");
1821  }
1822  //BEGIN WebDAV: Support hidden property names.
1823  if (isset($prop["property"]) && $prop['propertyNameVisible'] !== false && $prop["property"] != "") {
1824  //END WebDAV: Support hidden property names.
1825  $this->tpl->setCurrentBlock("prop_name");
1826  $this->tpl->setVariable("TXT_PROP", $prop["property"]);
1827  $this->tpl->parseCurrentBlock();
1828  }
1829  $this->tpl->setCurrentBlock("item_property");
1830  //BEGIN WebDAV: Support links in property values.
1831  if ($prop['link']) {
1832  $this->tpl->setVariable("LINK_PROP", $prop['link']);
1833  $this->tpl->setVariable("LINK_VAL_PROP", $prop["value"]);
1834  } else {
1835  $this->tpl->setVariable("VAL_PROP", $prop["value"]);
1836  }
1837  //END WebDAV: Support links in property values.
1838  $this->tpl->parseCurrentBlock();
1839 
1840  $cnt++;
1841  }
1842  $this->tpl->setCurrentBlock("item_properties");
1843  $this->tpl->parseCurrentBlock();
1844  }
1845  }
determineProperties()
Determine properties.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertRelevance()

ilObjectListGUI::insertRelevance ( )

insert relevance

Parameters

Definition at line 1622 of file class.ilObjectListGUI.php.

References enabledRelevance(), ilProgressBar\getInstance(), and getRelevance().

Referenced by getListItemHTML().

1623  {
1624  if (!$this->enabledRelevance() or !(int) $this->getRelevance()) {
1625  return false;
1626  }
1627 
1628  include_once "Services/UIComponent/ProgressBar/classes/class.ilProgressBar.php";
1629  $pbar = ilProgressBar::getInstance();
1630  $pbar->setCurrent($this->getRelevance());
1631 
1632  $this->tpl->setCurrentBlock('relevance');
1633  $this->tpl->setVariable('REL_PBAR', $pbar->render());
1634  $this->tpl->parseCurrentBlock();
1635  }
static getInstance()
Factory.
enabledRelevance()
enabled relevance
getRelevance()
get relevance
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertSearchFragment()

ilObjectListGUI::insertSearchFragment ( )

Insert highlighted search fragment.

Returns

Definition at line 1608 of file class.ilObjectListGUI.php.

References getSearchFragment().

Referenced by getListItemHTML().

1609  {
1610  if (strlen($this->getSearchFragment())) {
1611  $this->tpl->setCurrentBlock('search_fragment');
1612  $this->tpl->setVariable('TXT_SEARCH_FRAGMENT', $this->getSearchFragment() . ' ...');
1613  $this->tpl->parseCurrentBlock();
1614  }
1615  }
getSearchFragment()
get search fragment
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertSubItems()

ilObjectListGUI::insertSubItems ( )

Insert subitems.

Definition at line 3291 of file class.ilObjectListGUI.php.

Referenced by getListItemHTML(), and ilCourseObjectiveListGUI\getObjectiveListItemHTML().

3292  {
3293  foreach ($this->sub_item_html as $sub_html) {
3294  $this->tpl->setCurrentBlock("subitem");
3295  $this->tpl->setVariable("SUBITEM", $sub_html);
3296  $this->tpl->parseCurrentBlock();
3297  }
3298  }
+ Here is the caller graph for this function:

◆ insertSubscribeCommand()

ilObjectListGUI::insertSubscribeCommand ( )

insert subscribe command

private

Parameters
object$a_tpltemplate object
int$a_ref_iditem reference id

Definition at line 2274 of file class.ilObjectListGUI.php.

References $ilSetting, $ilUser, $settings, $type, $user, ilObject\_lookupObjId(), ilObject\_lookupType(), checkCommandAccess(), getCommandId(), getContainerObject(), and insertCommand().

Referenced by insertCommands().

2275  {
2277  $ilUser = $this->user;
2278 
2279  if ($this->std_cmd_only) {
2280  return;
2281  }
2282 
2283  // note: the setting disable_my_offers is used for
2284  // presenting the favourites in the main section of the dashboard
2285  // see also bug #32014
2286  //if ((int) $ilSetting->get('disable_my_offers')) {
2287  // return;
2288  //}
2289 
2291 
2292  if ($ilUser->getId() != ANONYMOUS_USER_ID) {
2293  // #17467 - add ref_id to link (in repository only!)
2294  if (is_object($this->container_obj) &&
2295  !($this->container_obj instanceof ilAdministrationCommandHandling) &&
2296  is_object($this->container_obj->object)) {
2297  $this->ctrl->setParameter($this->container_obj, "ref_id", $this->container_obj->object->getRefId());
2298  }
2299 
2300  if (!$this->fav_manager->ifIsFavourite($ilUser->getId(), $this->getCommandId())) {
2301  // Pass type and object ID to ilAccess to improve performance
2302  if ($this->checkCommandAccess("read", "", $this->ref_id, $this->type, $this->obj_id)) {
2303  if ($this->getContainerObject() instanceof ilDesktopItemHandling) {
2304  $this->ctrl->setParameter($this->container_obj, "type", $type);
2305  $this->ctrl->setParameter($this->container_obj, "item_ref_id", $this->getCommandId());
2306  $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, "addToDesk");
2307  $this->insertCommand(
2308  $cmd_link,
2309  $this->lng->txt("rep_add_to_favourites"),
2310  "",
2311  ""
2312  );
2313  }
2314  }
2315  } else {
2316  if ($this->getContainerObject() instanceof ilDesktopItemHandling) {
2317  $this->ctrl->setParameter($this->container_obj, "type", $type);
2318  $this->ctrl->setParameter($this->container_obj, "item_ref_id", $this->getCommandId());
2319  $cmd_link = $this->ctrl->getLinkTarget($this->container_obj, "removeFromDesk");
2320  $this->insertCommand(
2321  $cmd_link,
2322  $this->lng->txt("rep_remove_from_favourites"),
2323  "",
2324  ""
2325  );
2326  }
2327  }
2328  }
2329  }
getContainerObject()
get container object
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
getCommandId()
get command id Normally the ref id.
static _lookupObjId($a_id)
$ilUser
Definition: imgupload.php:18
static _lookupType($a_id, $a_reference=false)
lookup object type
Interface for gui classes (e.g ilLuceneSearchGUI) that offer add/remove to/from desktop.
global $ilSetting
Definition: privfeed.php:17
Interface for GUI classes (PDGUI, LuceneSearchGUI...) that have to handle administration commands (cu...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertSubstitutions()

ilObjectListGUI::insertSubstitutions ( )

Insert substitutions.

public

Definition at line 1553 of file class.ilObjectListGUI.php.

References $data.

Referenced by insertDescription().

1554  {
1555  $fields_shown = false;
1556  foreach ($this->substitutions->getParsedSubstitutions($this->ref_id, $this->obj_id) as $data) {
1557  if ($data['bold']) {
1558  $data['name'] = '<strong>' . $data['name'] . '</strong>';
1559  $data['value'] = '<strong>' . $data['value'] . '</strong>';
1560  }
1561  $this->tpl->touchBlock("std_prop");
1562  $this->tpl->setCurrentBlock('item_property');
1563  if ($data['show_field']) {
1564  $this->tpl->setVariable('TXT_PROP', $data['name']);
1565  }
1566  $this->tpl->setVariable('VAL_PROP', $data['value']);
1567  $this->tpl->parseCurrentBlock();
1568 
1569  if ($data['newline']) {
1570  $this->tpl->touchBlock('newline_prop');
1571  }
1572  $fields_shown = false;
1573  }
1574  if ($fields_shown) {
1575  $this->tpl->touchBlock('newline_prop');
1576  }
1577  }
$data
Definition: storeScorm.php:23
+ Here is the caller graph for this function:

◆ insertTimingsCommand()

ilObjectListGUI::insertTimingsCommand ( )

insert edit timings command

protected

Definition at line 2421 of file class.ilObjectListGUI.php.

References $parent_ref_id, checkCommandAccess(), and insertCommand().

Referenced by insertCommands().

2422  {
2423  if ($this->std_cmd_only || !$this->container_obj->object) {
2424  return;
2425  }
2426 
2427  $parent_ref_id = $this->container_obj->object->getRefId();
2428  $parent_type = $this->container_obj->object->getType();
2429 
2430  // #18737
2431  if ($this->reference_ref_id) {
2432  $this->ctrl->setParameterByClass('ilobjectactivationgui', 'ref_id', $this->reference_ref_id);
2433  }
2434 
2435  if ($this->checkCommandAccess('write', '', $parent_ref_id, $parent_type) ||
2436  $this->checkCommandAccess('write', '', $this->ref_id, $this->type)) {
2437  $this->ctrl->setParameterByClass(
2438  'ilobjectactivationgui',
2439  'cadh',
2440  $this->ajax_hash
2441  );
2442  $this->ctrl->setParameterByClass(
2443  'ilobjectactivationgui',
2444  'parent_id',
2446  );
2447  $cmd_lnk = $this->ctrl->getLinkTargetByClass(
2448  array($this->gui_class_name, 'ilcommonactiondispatchergui', 'ilobjectactivationgui'),
2449  'edit'
2450  );
2451 
2452  $this->insertCommand($cmd_lnk, $this->lng->txt('obj_activation_list_gui'));
2453  }
2454 
2455  if ($this->reference_ref_id) {
2456  $this->ctrl->setParameterByClass('ilobjectactivationgui', 'ref_id', $this->ref_id);
2457  }
2458  }
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertTitle()

ilObjectListGUI::insertTitle ( )

insert item title

private

Parameters
object$a_tpltemplate object
string$a_titleitem title

Definition at line 1445 of file class.ilObjectListGUI.php.

References $access, $context, $preview, appendRepositoryFrameParameter(), buildGotoLink(), ilPreviewGUI\CONTEXT_REPOSITORY, ilPreviewGUI\CONTEXT_WORKSPACE, getCommandsStatus(), ilUtil\getImagePath(), getTitle(), ilPreview\hasPreview(), ilPreview\lookupRenderStatus(), modifySAHSlaunch(), modifyTitleLink(), and ilPreview\RENDER_STATUS_NONE.

Referenced by getListItemHTML().

1446  {
1447  if ($this->restrict_to_goto) {
1448  $this->default_command = array("frame" => "",
1449  "link" => $this->buildGotoLink());
1450  }
1451  // begin-patch lok
1452  if (
1453  !$this->default_command ||
1454  (!$this->getCommandsStatus() && !$this->restrict_to_goto) ||
1455  $this->title_link_disabled
1456  ) {
1457  // end-patch lok
1458  $this->tpl->setCurrentBlock("item_title");
1459  $this->tpl->setVariable("TXT_TITLE", $this->getTitle());
1460  $this->tpl->parseCurrentBlock();
1461  } else {
1462  $this->default_command['link'] = $this->modifyTitleLink($this->default_command['link']);
1463 
1464  $this->default_command["link"] =
1465  $this->modifySAHSlaunch($this->default_command["link"], $this->default_command["frame"]);
1466 
1467  if ($this->default_command["frame"] != "") {
1468  $this->tpl->setCurrentBlock("title_linked_frame");
1469  $this->tpl->setVariable("TARGET_TITLE_LINKED", $this->default_command["frame"]);
1470  $this->tpl->parseCurrentBlock();
1471  }
1472 
1473  // workaround for repository frameset
1474  #var_dump("<pre>",$this->default_command['link'],"</pre>");
1475  $this->default_command["link"] =
1476  $this->appendRepositoryFrameParameter($this->default_command["link"]);
1477 
1478  #var_dump("<pre>",$this->default_command['link'],"</pre>");
1479 
1480 
1481  // the default command is linked with the title
1482  $this->tpl->setCurrentBlock("item_title_linked");
1483  $this->tpl->setVariable("TXT_TITLE_LINKED", $this->getTitle());
1484  $this->tpl->setVariable("HREF_TITLE_LINKED", $this->default_command["link"]);
1485 
1486  // has preview?
1487  include_once("./Services/Preview/classes/class.ilPreview.php");
1488  if (ilPreview::hasPreview($this->obj_id, $this->type)) {
1489  include_once("./Services/Preview/classes/class.ilPreviewGUI.php");
1490 
1491  // get context for access checks later on
1492  $access_handler = null;
1493  switch ($this->context) {
1494  case self::CONTEXT_WORKSPACE:
1495  case self::CONTEXT_WORKSPACE_SHARING:
1497  include_once("./Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php");
1498  $access_handler = new ilWorkspaceAccessHandler();
1499  break;
1500 
1501  default:
1502  $ilAccess = $this->access;
1504  $access_handler = $ilAccess;
1505  break;
1506  }
1507 
1508  $preview = new ilPreviewGUI($this->ref_id, $context, $this->obj_id, $access_handler);
1509  $preview_status = ilPreview::lookupRenderStatus($this->obj_id);
1510  $preview_status_class = "";
1511  $preview_text_topic = "preview_show";
1512  if ($preview_status == ilPreview::RENDER_STATUS_NONE) {
1513  $preview_status_class = "ilPreviewStatusNone";
1514  $preview_text_topic = "preview_none";
1515  }
1516  $this->tpl->setCurrentBlock("item_title_linked");
1517  $this->tpl->setVariable("PREVIEW_STATUS_CLASS", $preview_status_class);
1518  $this->tpl->setVariable("SRC_PREVIEW_ICON", ilUtil::getImagePath("preview.png"));
1519  $this->tpl->setVariable("ALT_PREVIEW_ICON", $this->lng->txt($preview_text_topic));
1520  $this->tpl->setVariable("TXT_PREVIEW", $this->lng->txt($preview_text_topic));
1521  $this->tpl->setVariable("SCRIPT_PREVIEW_CLICK", $preview->getJSCall($this->getUniqueItemId(true)));
1522  $this->tpl->parseCurrentBlock();
1523  }
1524 
1525  $this->tpl->parseCurrentBlock();
1526  }
1527 
1528  if ($this->bold_title == true) {
1529  $this->tpl->touchBlock('bold_title_start');
1530  $this->tpl->touchBlock('bold_title_end');
1531  }
1532  }
$preview
Access handler for personal workspace.
const RENDER_STATUS_NONE
static lookupRenderStatus($a_obj_id)
Gets the render status for the object with the specified id.
modifySAHSlaunch($a_link, $wtarget)
workaround: SAHS in new javavasript-created window or iframe
static hasPreview($a_obj_id, $a_type="")
Determines whether the object with the specified reference id has a preview.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
appendRepositoryFrameParameter($a_link)
workaround: all links into the repository (from outside) must tell repository to setup the frameset ...
getTitle()
getTitle overwritten in class.ilObjLinkResourceList.php
modifyTitleLink($a_default_link)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isCommentsActivated()

ilObjectListGUI::isCommentsActivated (   $a_type,
  $a_ref_id,
  $a_obj_id,
  $a_header_actions,
  $a_check_write_access = true 
)
protected

Check comments status against comments settings and context.

Parameters
string$a_type
int$a_ref_id
int$a_obj_id
bool$a_header_actions
bool$a_check_write_access
Returns
bool

Definition at line 3666 of file class.ilObjectListGUI.php.

References $a_type, checkCommandAccess(), and ilNote\commentsActivated().

Referenced by determineProperties(), getHeaderAction(), and insertCommonSocialCommands().

3667  {
3668  if ($this->comments_enabled) {
3669  if (!$this->comments_settings_enabled) {
3670  return true;
3671  }
3672  if ($a_check_write_access && $this->checkCommandAccess('write', '', $a_ref_id, $a_type)) {
3673  return true;
3674  }
3675  // fallback to single object check if no preloaded data
3676  // only the repository does preloadCommonProperties() yet
3677  if (!$a_header_actions && self::$preload_done) {
3678  if (self::$comments_activation[$a_obj_id][$a_type]) {
3679  return true;
3680  }
3681  } else {
3682  include_once("./Services/Notes/classes/class.ilNote.php");
3683  if (ilNote::commentsActivated($a_obj_id, 0, $a_type)) {
3684  return true;
3685  }
3686  }
3687  }
3688  return false;
3689  }
static commentsActivated($a_rep_obj_id, $a_obj_id, $a_obj_type, $a_news_id=0)
Are comments activated for object?
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
$a_type
Definition: workflow.php:92
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isExpanded()

ilObjectListGUI::isExpanded ( )

Definition at line 496 of file class.ilObjectListGUI.php.

References $is_expanded.

Referenced by ilObjLTIConsumerListGUI\insertIconsAndCheckboxes(), and insertIconsAndCheckboxes().

497  {
498  return $this->is_expanded;
499  }
+ Here is the caller graph for this function:

◆ isFileUploadAllowed()

ilObjectListGUI::isFileUploadAllowed ( )

Gets a value indicating whether file uploads to this object are allowed or not.

Returns
bool true, if file upload is allowed; otherwise, false.

Definition at line 3708 of file class.ilObjectListGUI.php.

References ilFileUploadUtil\isUploadAllowed().

Referenced by getListItemHTML().

3709  {
3710  // check if file upload allowed
3711  include_once("./Services/FileUpload/classes/class.ilFileUploadUtil.php");
3712  return ilFileUploadUtil::isUploadAllowed($this->ref_id, $this->type);
3713  }
static isUploadAllowed($a_ref_id, $a_type="")
Determines whether files can be uploaded to the object with the specified reference id...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isMode()

ilObjectListGUI::isMode (   $a_mode)

check current output mode

Parameters
string$a_mode(IL_LIST_FULL | IL_LIST_AS_TRIGGER)
Returns
boolen true if current mode is $a_mode

Definition at line 1672 of file class.ilObjectListGUI.php.

Referenced by getListItemHTML(), and insertCommands().

1673  {
1674  if ($a_mode == $this->mode) {
1675  return true;
1676  } else {
1677  return false;
1678  }
1679  }
+ Here is the caller graph for this function:

◆ isSideBlock()

ilObjectListGUI::isSideBlock ( )

Returns whether current item is a block in a side column or not.

Definition at line 3573 of file class.ilObjectListGUI.php.

3574  {
3575  return false;
3576  }

◆ isTitleBold()

ilObjectListGUI::isTitleBold ( )

public

Returns
boolean returns if the item title is bold or not

Definition at line 3593 of file class.ilObjectListGUI.php.

References $bold_title.

3594  {
3595  return $this->bold_title;
3596  }

◆ isVisibleOnlyForced()

ilObjectListGUI::isVisibleOnlyForced ( )

Force unreadable.

Returns
type

Definition at line 1333 of file class.ilObjectListGUI.php.

References $force_visible_only.

Referenced by checkCommandAccess().

1334  {
1336  }
+ Here is the caller graph for this function:

◆ modifySAHSlaunch()

ilObjectListGUI::modifySAHSlaunch (   $a_link,
  $wtarget 
)

workaround: SAHS in new javavasript-created window or iframe

Definition at line 3120 of file class.ilObjectListGUI.php.

References $DIC.

Referenced by getAsCard(), getAsListItem(), and insertTitle().

3121  {
3122  global $DIC;
3123 
3124  if (strstr($a_link, 'ilSAHSPresentationGUI') && !$this->offline_mode) {
3125  include_once 'Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
3126  $sahs_obj = new ilObjSAHSLearningModule($this->ref_id);
3127  $om = $sahs_obj->getOpenMode();
3128  $width = $sahs_obj->getWidth();
3129  $height = $sahs_obj->getHeight();
3130  if (($om == 5 || $om == 1) && $width > 0 && $height > 0) {
3131  $om++;
3132  }
3133  if ($om != 0 && !$DIC['ilBrowser']->isMobile()) {
3134  $this->default_command["frame"] = "";
3135  $a_link = "javascript:void(0); onclick=startSAHS('" . $a_link . "','" . $wtarget . "'," . $om . "," . $width . "," . $height . ");";
3136  }
3137  }
3138  return $a_link;
3139  }
$DIC
Definition: xapitoken.php:46
Class ilObjSCORMLearningModule.
+ Here is the caller graph for this function:

◆ modifyTitleLink()

ilObjectListGUI::modifyTitleLink (   $a_default_link)
protected

Definition at line 3097 of file class.ilObjectListGUI.php.

References $name.

Referenced by insertTitle().

3098  {
3099  if ($this->default_command_params) {
3100  $params = array();
3101  foreach ($this->default_command_params as $name => $value) {
3102  $params[] = $name . '=' . $value;
3103  }
3104  $params = implode('&', $params);
3105 
3106 
3107  // #12370
3108  if (!stristr($a_default_link, '?')) {
3109  $a_default_link = ($a_default_link . '?' . $params);
3110  } else {
3111  $a_default_link = ($a_default_link . '&' . $params);
3112  }
3113  }
3114  return $a_default_link;
3115  }
if($format !==null) $name
Definition: metadata.php:230
+ Here is the caller graph for this function:

◆ parseConditions()

ilObjectListGUI::parseConditions (   $toggle_id,
  $conditions,
  $obligatory = true 
)
protected

Definition at line 1859 of file class.ilObjectListGUI.php.

References $lng, $location, $obj_definition, $ok, $tree, ilConditionHandler\_checkCondition(), ilObject\_lookupTitle(), ilConditionHandler\calculateEffectiveRequiredTriggers(), ilConditionHandler\getEffectiveOptionalConditionsOfTarget(), ilMemberViewSettings\getInstance(), getUniqueItemId(), IL_LIST_AS_TRIGGER, and ilConditionHandlerGUI\translateOperator().

Referenced by insertPreconditions().

1860  {
1861  $lng = $this->lng;
1862  $objDefinition = $this->obj_definition;
1863  $tree = $this->tree;
1864 
1865  $num_required = ilConditionHandler::calculateEffectiveRequiredTriggers($this->ref_id, $this->obj_id);
1866  $num_optional_required =
1867  $num_required - count($conditions) + count(ilConditionHandler::getEffectiveOptionalConditionsOfTarget($this->ref_id, $this->obj_id));
1868 
1869  // Check if all conditions are fullfilled
1870  $visible_conditions = array();
1871  $passed_optional = 0;
1872  foreach ($conditions as $condition) {
1873  if ($obligatory and !$condition['obligatory']) {
1874  continue;
1875  }
1876  if (!$obligatory and $condition['obligatory']) {
1877  continue;
1878  }
1879 
1880  if ($tree->isDeleted($condition['trigger_ref_id'])) {
1881  continue;
1882  }
1883 
1884  include_once 'Services/Container/classes/class.ilMemberViewSettings.php';
1885  $ok = ilConditionHandler::_checkCondition($condition) and
1886  !ilMemberViewSettings::getInstance()->isActive();
1887 
1888  if (!$ok) {
1889  $visible_conditions[] = $condition['id'];
1890  }
1891 
1892  if (!$obligatory and $ok) {
1893  ++$passed_optional;
1894  // optional passed
1895  if ($passed_optional >= $num_optional_required) {
1896  return true;
1897  }
1898  }
1899  }
1900 
1901  foreach ($conditions as $condition) {
1902  if (!in_array($condition['id'], $visible_conditions)) {
1903  continue;
1904  }
1905 
1906  include_once './Services/Conditions/classes/class.ilConditionHandlerGUI.php';
1907  $cond_txt = ilConditionHandlerGUI::translateOperator($condition['trigger_obj_id'], $condition['operator']) . ' ' . $condition['value'];
1908 
1909  // display trigger item
1910  $class = $objDefinition->getClassName($condition["trigger_type"]);
1911  $location = $objDefinition->getLocation($condition["trigger_type"]);
1912  if ($class == "" && $location == "") {
1913  continue;
1914  }
1915  $missing_cond_exist = true;
1916 
1917  $full_class = "ilObj" . $class . "ListGUI";
1918  include_once($location . "/class." . $full_class . ".php");
1919  $item_list_gui = new $full_class($this);
1920  $item_list_gui->setMode(IL_LIST_AS_TRIGGER);
1921  $item_list_gui->enablePath(false);
1922  $item_list_gui->enableIcon(true);
1923  $item_list_gui->setConditionDepth($this->condition_depth + 1);
1924  $item_list_gui->setParentRefId($this->getUniqueItemId()); // yes we can
1925  $item_list_gui->addCustomProperty($this->lng->txt("precondition_required_itemlist"), $cond_txt, false, true);
1926 
1927  $item_list_gui->enableCommands($this->commands_enabled, $this->std_cmd_only);
1928  $item_list_gui->enableProperties($this->properties_enabled);
1929 
1930  $trigger_html = $item_list_gui->getListItemHTML(
1931  $condition['trigger_ref_id'],
1932  $condition['trigger_obj_id'],
1933  ilObject::_lookupTitle($condition["trigger_obj_id"]),
1934  ""
1935  );
1936  $this->tpl->setCurrentBlock("precondition");
1937  if ($trigger_html == "") {
1938  $trigger_html = $this->lng->txt("precondition_not_accessible");
1939  }
1940  $this->tpl->setVariable("TXT_CONDITION", trim($cond_txt));
1941  $this->tpl->setVariable("TRIGGER_ITEM", $trigger_html);
1942  $this->tpl->parseCurrentBlock();
1943  }
1944 
1945  if ($missing_cond_exist and $obligatory) {
1946  $this->tpl->setCurrentBlock("preconditions");
1947  $this->tpl->setVariable("CONDITION_TOGGLE_ID", "_obl_" . $toggle_id);
1948  $this->tpl->setVariable("TXT_PRECONDITIONS", $lng->txt("preconditions_obligatory_hint"));
1949  $this->tpl->parseCurrentBlock();
1950  } elseif ($missing_cond_exist and !$obligatory) {
1951  $this->tpl->setCurrentBlock("preconditions");
1952  $this->tpl->setVariable("CONDITION_TOGGLE_ID", "_opt_" . $toggle_id);
1953  $this->tpl->setVariable("TXT_PRECONDITIONS", sprintf($lng->txt("preconditions_optional_hint"), $num_optional_required));
1954  $this->tpl->parseCurrentBlock();
1955  }
1956 
1957  return !$missing_cond_exist;
1958  }
const IL_LIST_AS_TRIGGER
$location
Definition: buildRTE.php:44
static translateOperator($a_obj_id, $a_operator)
Translate operator.
static _checkCondition($condition, $a_usr_id=0)
checks wether a single condition is fulfilled every trigger object type must implement a static metho...
static _lookupTitle($a_id)
lookup object title
static calculateEffectiveRequiredTriggers($a_target_ref_id, $a_target_obj_id, $a_target_obj_type='')
calculate number of obligatory items
static getEffectiveOptionalConditionsOfTarget($a_target_ref_id, $a_target_obj_id, $a_obj_type='')
Get optional conditions.
getUniqueItemId($a_as_div=false)
Get unique item identifier (for js-actions)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ preloadCommonProperties()

static ilObjectListGUI::preloadCommonProperties (   $a_obj_ids,
  $a_context 
)
static

Preload common properties.

Parameters

Definition at line 3604 of file class.ilObjectListGUI.php.

References $DIC, $ilSetting, $ilUser, $lng, ilNote\_countNotesAndCommentsMultiple(), ilTagging\_countTags(), ilTagging\_getListTagsForObjects(), and ilNote\getRepObjActivation().

Referenced by ilObjectListGUIPreloader\preload().

3605  {
3606  global $DIC;
3607  $lng = $DIC->language();
3608  $ilSetting = $DIC->settings();
3609  $ilUser = $DIC->user();
3610  if ($a_context == self::CONTEXT_REPOSITORY) {
3611  $active_notes = !$ilSetting->get("disable_notes");
3612  $active_comments = !$ilSetting->get("disable_comments");
3613 
3614  if ($active_notes || $active_comments) {
3615  include_once("./Services/Notes/classes/class.ilNote.php");
3616  }
3617 
3618  if ($active_comments) {
3619  // needed for action
3620  self::$comments_activation = ilNote::getRepObjActivation($a_obj_ids);
3621  }
3622 
3623  // properties are optional
3624  if ($ilSetting->get('comments_tagging_in_lists')) {
3625  if ($active_notes || $active_comments) {
3626  self::$cnt_notes = ilNote::_countNotesAndCommentsMultiple($a_obj_ids, true);
3627 
3628  $lng->loadLanguageModule("notes");
3629  }
3630 
3631  $tags_set = new ilSetting("tags");
3632  if ($tags_set->get("enable")) {
3633  $all_users = $tags_set->get("enable_all_users");
3634 
3635  include_once("./Services/Tagging/classes/class.ilTagging.php");
3636  if (!$ilSetting->get('comments_tagging_in_lists_tags')) {
3637  self::$cnt_tags = ilTagging::_countTags($a_obj_ids, $all_users);
3638  } else {
3639  $tag_user_id = null;
3640  if (!$all_users) {
3641  $tag_user_id = $ilUser->getId();
3642  }
3643  self::$tags = ilTagging::_getListTagsForObjects($a_obj_ids, $tag_user_id);
3644  }
3645 
3646  $lng->loadLanguageModule("tagging");
3647  }
3648  }
3649 
3650  $lng->loadLanguageModule("rating");
3651  }
3652 
3653  self::$preload_done = true;
3654  }
static getRepObjActivation($a_rep_obj_ids)
Get activation for repository objects.
$ilUser
Definition: imgupload.php:18
static _countTags($a_obj_ids, $a_all_users=false)
Count all tags for repository objects.
global $ilSetting
Definition: privfeed.php:17
$DIC
Definition: xapitoken.php:46
static _getListTagsForObjects(array $a_obj_ids, $a_user_id=null)
Get tags for given object ids.
static _countNotesAndCommentsMultiple($a_rep_obj_ids, $a_no_sub_objs=false)
Get all notes related to multiple objcts.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareJsLinks()

static ilObjectListGUI::prepareJsLinks (   $a_redraw_url,
  $a_notes_url,
  $a_tags_url,
  $a_tpl = null 
)
static

Insert js/ajax links into template.

Definition at line 2797 of file class.ilObjectListGUI.php.

References $DIC, $tpl, IL_NOTE_PRIVATE, ilTaggingGUI\initJavascript(), and ilNoteGUI\initJavascript().

Referenced by ilObjWorkspaceFolderGUI\render().

2798  {
2799  global $DIC;
2800 
2801  $tpl = $DIC["tpl"];
2802 
2803  if (is_null($a_tpl)) {
2804  $a_tpl = $tpl;
2805  }
2806 
2807  if ($a_notes_url) {
2808  include_once("./Services/Notes/classes/class.ilNoteGUI.php");
2809  ilNoteGUI::initJavascript($a_notes_url, IL_NOTE_PRIVATE, $a_tpl);
2810  }
2811 
2812  if ($a_tags_url) {
2813  include_once("./Services/Tagging/classes/class.ilTaggingGUI.php");
2814  ilTaggingGUI::initJavascript($a_tags_url, $a_tpl);
2815  }
2816 
2817  if ($a_redraw_url) {
2818  $a_tpl->addOnLoadCode("il.Object.setRedrawAHUrl('" .
2819  $a_redraw_url . "');");
2820  }
2821  }
const IL_NOTE_PRIVATE
Definition: class.ilNote.php:5
static initJavascript($a_ajax_url, $a_type=IL_NOTE_PRIVATE, ilGlobalTemplateInterface $a_main_tpl=null)
Init javascript.
static initJavascript($a_ajax_url, ilGlobalTemplateInterface $a_main_tpl=null)
Init javascript.
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetConditionTarget()

ilObjectListGUI::resetConditionTarget ( )

Definition at line 1064 of file class.ilObjectListGUI.php.

1065  {
1066  $this->condition_target = array();
1067  }

◆ resetCustomData()

ilObjectListGUI::resetCustomData ( )
protected

reset properties and commands

Definition at line 3514 of file class.ilObjectListGUI.php.

Referenced by getListItemHTML().

3515  {
3516  // #15747
3517  $this->cust_prop = array();
3518  $this->cust_commands = array();
3519  $this->sub_item_html = array();
3520  $this->position_enabled = false;
3521  }
+ Here is the caller graph for this function:

◆ restrictToGoto()

ilObjectListGUI::restrictToGoto (   $a_value)

Restrict all actions/links to goto.

Parameters
bool$a_value

Definition at line 962 of file class.ilObjectListGUI.php.

963  {
964  $this->restrict_to_goto = (bool) $a_value;
965  }

◆ setAdditionalInformation()

ilObjectListGUI::setAdditionalInformation (   $a_val)

Set additional information.

Parameters
stringadditional information

Definition at line 911 of file class.ilObjectListGUI.php.

Referenced by ilObjStudyProgrammeListGUI\getListItemHTML(), and ilObjStudyProgrammeReferenceListGUI\getListItemHTML().

912  {
913  $this->additional_information = $a_val;
914  }
+ Here is the caller graph for this function:

◆ setAjaxHash()

ilObjectListGUI::setAjaxHash (   $a_hash)

Definition at line 2873 of file class.ilObjectListGUI.php.

Referenced by initItem().

2874  {
2875  $this->ajax_hash = $a_hash;
2876  }
+ Here is the caller graph for this function:

◆ setBoldTitle()

ilObjectListGUI::setBoldTitle (   $a_bold_title)

public boolean $a_bold_title set the item title bold

Definition at line 3583 of file class.ilObjectListGUI.php.

3584  {
3585  $this->bold_title = $a_bold_title;
3586  }

◆ setConditionDepth()

ilObjectListGUI::setConditionDepth (   $a_depth)

set depth for precondition output (stops at level 5)

Definition at line 1660 of file class.ilObjectListGUI.php.

1661  {
1662  $this->condition_depth = $a_depth;
1663  }

◆ setConditionTarget()

ilObjectListGUI::setConditionTarget (   $a_ref_id,
  $a_obj_id,
  $a_target_type 
)

Definition at line 1055 of file class.ilObjectListGUI.php.

Referenced by ilContainerObjectiveGUI\addItemDetails().

1056  {
1057  $this->condition_target = array(
1058  'ref_id' => $a_ref_id,
1059  'obj_id' => $a_obj_id,
1060  'target_type' => $a_target_type
1061  );
1062  }
+ Here is the caller graph for this function:

◆ setContainerObject()

ilObjectListGUI::setContainerObject (   $container_obj)

set the container object (e.g categorygui) Used for link, delete ...

commands

this method should be overwritten by derived classes

Definition at line 230 of file class.ilObjectListGUI.php.

231  {
232  $this->container_obj = $container_obj;
233  }

◆ setDefaultCommandParameters()

ilObjectListGUI::setDefaultCommandParameters ( array  $a_params)

Definition at line 1075 of file class.ilObjectListGUI.php.

Referenced by ilContainerObjectiveGUI\addItemDetails().

1076  {
1077  $this->default_command_params = $a_params;
1078  }
+ Here is the caller graph for this function:

◆ setDescription()

ilObjectListGUI::setDescription (   $a_description)
Parameters
stringdescription
Returns
bool

Definition at line 839 of file class.ilObjectListGUI.php.

Referenced by initItem().

840  {
841  $this->description = $a_description;
842  }
+ Here is the caller graph for this function:

◆ setDetailsLevel()

ilObjectListGUI::setDetailsLevel (   $a_level)

Details level Currently used in Search which shows only limited properties of forums Currently used for Sessions (switch between minimal and extended view for each session)

Parameters
int$a_level
Returns

Definition at line 933 of file class.ilObjectListGUI.php.

934  {
935  $this->details_level = $a_level;
936  }

◆ setExpanded()

ilObjectListGUI::setExpanded (   $a_status)

Definition at line 491 of file class.ilObjectListGUI.php.

492  {
493  $this->is_expanded = $a_status;
494  }

◆ setHeaderSubObject()

ilObjectListGUI::setHeaderSubObject (   $a_type,
  $a_id 
)

Set sub object identifier.

Parameters
string$a_type
int$a_id

Definition at line 2829 of file class.ilObjectListGUI.php.

References $a_type.

2830  {
2831  $this->sub_obj_type = $a_type;
2832  $this->sub_obj_id = (int) $a_id;
2833  }
$a_type
Definition: workflow.php:92

◆ setItemDetailLinks()

ilObjectListGUI::setItemDetailLinks (   $a_detail_links,
  $a_intro_txt = '' 
)

set items detail links

public

Parameters
arraye.g. array(0 => array('desc' => 'Page: ','link' => 'ilias.php...','name' => 'Page XYZ')
Returns

Definition at line 778 of file class.ilObjectListGUI.php.

Referenced by ilContainerObjectiveGUI\addItemDetails().

779  {
780  $this->item_detail_links = $a_detail_links;
781  $this->item_detail_links_intro = $a_intro_txt;
782  }
+ Here is the caller graph for this function:

◆ setMode()

ilObjectListGUI::setMode (   $a_mode)

set output mode

Parameters
string$a_modeoutput mode (IL_LIST_FULL | IL_LIST_AS_TRIGGER)

Definition at line 1642 of file class.ilObjectListGUI.php.

1643  {
1644  $this->mode = $a_mode;
1645  }

◆ setParentRefId()

ilObjectListGUI::setParentRefId (   $a_ref_id)

Set current parent ref id to enable unique js-ids (sessions, etc.)

Parameters
string$a_ref_id

Definition at line 3528 of file class.ilObjectListGUI.php.

Referenced by __construct().

3529  {
3530  $this->parent_ref_id = $a_ref_id;
3531  }
+ Here is the caller graph for this function:

◆ setPositionInputField()

ilObjectListGUI::setPositionInputField (   $a_field_index,
  $a_position_value 
)

Set position input field.

Parameters
string$a_field_indexe.g. "[crs][34]"
string$a_position_valuee.g. "2.0"

Definition at line 506 of file class.ilObjectListGUI.php.

507  {
508  $this->position_enabled = true;
509  $this->position_field_index = $a_field_index;
510  $this->position_value = $a_position_value;
511  }

◆ setRelevance()

ilObjectListGUI::setRelevance (   $a_rel)

set relevance

Parameters
int
Returns

Definition at line 416 of file class.ilObjectListGUI.php.

417  {
418  $this->relevance = $a_rel;
419  }

◆ setSearchFragment()

ilObjectListGUI::setSearchFragment (   $a_text)

set search fragment

Parameters
string$a_texthighlighted search fragment
Returns

Definition at line 859 of file class.ilObjectListGUI.php.

860  {
861  $this->search_fragment = $a_text;
862  }

◆ setSeparateCommands()

ilObjectListGUI::setSeparateCommands (   $a_val)

Set separate commands.

Parameters
booleanseparate commands

Definition at line 878 of file class.ilObjectListGUI.php.

879  {
880  $this->separate_commands = $a_val;
881  }

◆ setTitle()

ilObjectListGUI::setTitle (   $a_title)
Parameters
stringtitle
Returns
bool

Definition at line 820 of file class.ilObjectListGUI.php.

Referenced by ilObjStudyProgrammeReferenceListGUI\initItem(), and initItem().

821  {
822  $this->title = $a_title;
823  }
+ Here is the caller graph for this function:

◆ storeAccessCache()

ilObjectListGUI::storeAccessCache ( )

Store access cache.

Definition at line 3325 of file class.ilObjectListGUI.php.

References $ilUser, $ref_id, and $user.

Referenced by getListItemHTML().

3326  {
3327  $ilUser = $this->user;
3328  if ($this->acache->getLastAccessStatus() == "miss" &&
3329  !$this->prevent_access_caching) {
3330  $this->acache->storeEntry(
3331  $ilUser->getId() . ":" . $this->ref_id,
3332  serialize($this->access_cache),
3334  );
3335  }
3336  }
$ilUser
Definition: imgupload.php:18
+ Here is the caller graph for this function:

Field Documentation

◆ $access

◆ $additional_information

ilObjectListGUI::$additional_information = false
protected

Definition at line 124 of file class.ilObjectListGUI.php.

Referenced by getAdditionalInformation().

◆ $bold_title

ilObjectListGUI::$bold_title = false
protected

Definition at line 115 of file class.ilObjectListGUI.php.

Referenced by isTitleBold().

◆ $checkboxes_enabled

ilObjectListGUI::$checkboxes_enabled = false
protected

Definition at line 99 of file class.ilObjectListGUI.php.

Referenced by getCheckboxStatus().

◆ $cnt_notes

ilObjectListGUI::$cnt_notes = array()
staticprotected

Definition at line 147 of file class.ilObjectListGUI.php.

◆ $cnt_tags

ilObjectListGUI::$cnt_tags = array()
staticprotected

Definition at line 148 of file class.ilObjectListGUI.php.

◆ $commands_enabled

ilObjectListGUI::$commands_enabled = true

Definition at line 79 of file class.ilObjectListGUI.php.

Referenced by getCommandsStatus().

◆ $comments_activation

ilObjectListGUI::$comments_activation = array()
staticprotected

Definition at line 150 of file class.ilObjectListGUI.php.

◆ $comments_enabled

ilObjectListGUI::$comments_enabled = false
protected

◆ $comments_settings_enabled

ilObjectListGUI::$comments_settings_enabled = false
protected

Definition at line 132 of file class.ilObjectListGUI.php.

◆ $condition_depth

ilObjectListGUI::$condition_depth = 0

Definition at line 83 of file class.ilObjectListGUI.php.

Referenced by getUniqueItemId().

◆ $context

ilObjectListGUI::$context
protected

Definition at line 145 of file class.ilObjectListGUI.php.

Referenced by insertTitle().

◆ $copy_enabled

ilObjectListGUI::$copy_enabled = true
protected

Definition at line 117 of file class.ilObjectListGUI.php.

Referenced by getCopyStatus().

◆ $ctrl

◆ $cust_commands

ilObjectListGUI::$cust_commands = array()

Definition at line 81 of file class.ilObjectListGUI.php.

◆ $cust_prop

ilObjectListGUI::$cust_prop = array()

Definition at line 80 of file class.ilObjectListGUI.php.

◆ $description_enabled

ilObjectListGUI::$description_enabled = true

Definition at line 75 of file class.ilObjectListGUI.php.

Referenced by getDescriptionStatus().

◆ $details_level

ilObjectListGUI::$details_level = self::DETAILS_ALL
protected

Definition at line 119 of file class.ilObjectListGUI.php.

Referenced by getDetailsLevel().

◆ $download_checkbox_state

ilObjectListGUI::$download_checkbox_state = self::DOWNLOAD_CHECKBOX_NONE

Definition at line 87 of file class.ilObjectListGUI.php.

Referenced by getDownloadCheckboxState().

◆ $enabled_relevance

ilObjectListGUI::$enabled_relevance = false
protected

Definition at line 110 of file class.ilObjectListGUI.php.

Referenced by enabledRelevance().

◆ $expand_enabled

ilObjectListGUI::$expand_enabled = false
protected

Definition at line 113 of file class.ilObjectListGUI.php.

Referenced by getExpandStatus().

◆ $fav_manager

ilObjectListGUI::$fav_manager
protected

Definition at line 180 of file class.ilObjectListGUI.php.

◆ $force_visible_only

ilObjectListGUI::$force_visible_only = false
protected

Definition at line 142 of file class.ilObjectListGUI.php.

Referenced by isVisibleOnlyForced().

◆ $icons_enabled

ilObjectListGUI::$icons_enabled = false
protected

Definition at line 98 of file class.ilObjectListGUI.php.

Referenced by getIconStatus().

◆ $info_screen_enabled

ilObjectListGUI::$info_screen_enabled = false

◆ $is_expanded

ilObjectListGUI::$is_expanded = true
protected

Definition at line 114 of file class.ilObjectListGUI.php.

Referenced by isExpanded().

◆ $item_detail_links

ilObjectListGUI::$item_detail_links = array()
protected

Definition at line 103 of file class.ilObjectListGUI.php.

◆ $item_detail_links_enabled

ilObjectListGUI::$item_detail_links_enabled = false
protected

Definition at line 102 of file class.ilObjectListGUI.php.

Referenced by getItemDetailLinkStatus().

◆ $item_detail_links_intro

ilObjectListGUI::$item_detail_links_intro = ''
protected

Definition at line 104 of file class.ilObjectListGUI.php.

◆ $js_unique_id

ilObjectListGUI::$js_unique_id = 0
staticprotected

Definition at line 156 of file class.ilObjectListGUI.php.

◆ $lng

ilObjectListGUI::$lng
protected

Definition at line 33 of file class.ilObjectListGUI.php.

Referenced by ilObjItemGroupListGUI\__construct(), ilObjStudyProgrammeListGUI\__construct(), ilObjSessionListGUI\__construct(), determineProperties(), getHeaderAction(), ilObjPortfolioTemplateListGUI\getProperties(), ilObjCmiXapiVerificationListGUI\getProperties(), ilObjLTIConsumerVerificationListGUI\getProperties(), ilObjExerciseVerificationListGUI\getProperties(), ilObjTestVerificationListGUI\getProperties(), ilObjCourseVerificationListGUI\getProperties(), ilObjSCORMVerificationListGUI\getProperties(), ilObjDataCollectionListGUI\getProperties(), ilObjBibliographicListGUI\getProperties(), ilObjPollListGUI\getProperties(), ilObjSurveyQuestionPoolListGUI\getProperties(), ilObjMediaCastListGUI\getProperties(), ilObjWikiListGUI\getProperties(), ilObjExerciseListGUI\getProperties(), ilObjMediaPoolListGUI\getProperties(), ilObjCourseListGUI\getProperties(), ilObjBookingPoolListGUI\getProperties(), ilObjCloudListGUI\getProperties(), ilObjRemoteWikiListGUI\getProperties(), ilObjRemoteGroupListGUI\getProperties(), ilObjRemoteLearningModuleListGUI\getProperties(), ilObjRemoteTestListGUI\getProperties(), ilObjRemoteCategoryListGUI\getProperties(), ilObjRemoteCourseListGUI\getProperties(), ilObjRemoteGlossaryListGUI\getProperties(), ilObjRemoteFileListGUI\getProperties(), ilObjQuestionPoolListGUI\getProperties(), ilObjExternalFeedListGUI\getProperties(), ilObjSurveyListGUI\getProperties(), ilObjTestListGUI\getProperties(), ilObjFileBasedLMListGUI\getProperties(), ilObjGlossaryListGUI\getProperties(), ilObjLinkResourceListGUI\getProperties(), ilObjGroupListGUI\getProperties(), ilObjectPluginListGUI\getProperties(), ilObjGroupReferenceListGUI\getProperties(), ilObjLearningModuleListGUI\getProperties(), ilObjCourseReferenceListGUI\getProperties(), ilObjCategoryReferenceListGUI\getProperties(), ilObjSAHSLearningModuleListGUI\getProperties(), getProperties(), ilObjCloudListGUI\init(), insertCommands(), insertCommonSocialCommands(), ilObjLTIConsumerListGUI\insertIconsAndCheckboxes(), ilObjOrgUnitListGUI\insertIconsAndCheckboxes(), insertIconsAndCheckboxes(), insertPath(), ilCourseObjectiveListGUI\insertProgressInfo(), parseConditions(), and preloadCommonProperties().

◆ $multi_download_enabled

ilObjectListGUI::$multi_download_enabled = false

Definition at line 86 of file class.ilObjectListGUI.php.

◆ $notes_enabled

ilObjectListGUI::$notes_enabled = false
protected

Definition at line 133 of file class.ilObjectListGUI.php.

◆ $notice_properties_enabled

ilObjectListGUI::$notice_properties_enabled = true

Definition at line 78 of file class.ilObjectListGUI.php.

Referenced by getNoticePropertiesStatus().

◆ $obj_definition

◆ $obj_id

◆ $object_service

ilObjectListGUI::$object_service
protected

Definition at line 175 of file class.ilObjectListGUI.php.

◆ $parent_ref_id

ilObjectListGUI::$parent_ref_id
protected

Definition at line 144 of file class.ilObjectListGUI.php.

Referenced by getUniqueItemId(), and insertTimingsCommand().

◆ $path_gui

ilObjectListGUI::$path_gui = null
protected

Definition at line 165 of file class.ilObjectListGUI.php.

Referenced by enablePath(), and insertPath().

◆ $path_linked

ilObjectListGUI::$path_linked = false
protected

Definition at line 108 of file class.ilObjectListGUI.php.

◆ $position_enabled

ilObjectListGUI::$position_enabled = false
protected

Definition at line 100 of file class.ilObjectListGUI.php.

◆ $preconditions_enabled

ilObjectListGUI::$preconditions_enabled = true

Definition at line 76 of file class.ilObjectListGUI.php.

Referenced by getPreconditionsStatus().

◆ $preload_done

ilObjectListGUI::$preload_done = false
staticprotected

Definition at line 151 of file class.ilObjectListGUI.php.

◆ $prevent_duplicate_commands

ilObjectListGUI::$prevent_duplicate_commands = array()
protected

Definition at line 143 of file class.ilObjectListGUI.php.

◆ $progress_enabled

ilObjectListGUI::$progress_enabled = false
protected

Definition at line 101 of file class.ilObjectListGUI.php.

Referenced by getProgressInfoStatus().

◆ $properties_enabled

ilObjectListGUI::$properties_enabled = true

Definition at line 77 of file class.ilObjectListGUI.php.

Referenced by getPropertiesStatus().

◆ $rating_categories_enabled

ilObjectListGUI::$rating_categories_enabled = false
protected

Definition at line 137 of file class.ilObjectListGUI.php.

◆ $rating_ctrl_path

ilObjectListGUI::$rating_ctrl_path = false
protected

Definition at line 139 of file class.ilObjectListGUI.php.

◆ $rating_enabled

ilObjectListGUI::$rating_enabled = false
protected

Definition at line 136 of file class.ilObjectListGUI.php.

◆ $rating_text

ilObjectListGUI::$rating_text = false
protected

Definition at line 138 of file class.ilObjectListGUI.php.

◆ $ref_id

◆ $reference_ref_id

ilObjectListGUI::$reference_ref_id = false
protected

Definition at line 121 of file class.ilObjectListGUI.php.

Referenced by determineProperties(), and insertCommonSocialCommands().

◆ $relevance

ilObjectListGUI::$relevance = 0
protected

Definition at line 111 of file class.ilObjectListGUI.php.

Referenced by getRelevance().

◆ $repository_transfer_enabled

ilObjectListGUI::$repository_transfer_enabled = false
protected

Definition at line 127 of file class.ilObjectListGUI.php.

◆ $restrict_to_goto

ilObjectListGUI::$restrict_to_goto = false
protected

Definition at line 129 of file class.ilObjectListGUI.php.

◆ $search_fragment

ilObjectListGUI::$search_fragment = ''
protected

Definition at line 107 of file class.ilObjectListGUI.php.

Referenced by getSearchFragment().

◆ $search_fragment_enabled

ilObjectListGUI::$search_fragment_enabled = false
protected

Definition at line 123 of file class.ilObjectListGUI.php.

Referenced by getSearchFragmentStatus().

◆ $search_fragments_enabled

ilObjectListGUI::$search_fragments_enabled = false
protected

Definition at line 106 of file class.ilObjectListGUI.php.

◆ $separate_commands

ilObjectListGUI::$separate_commands = false
protected

Definition at line 122 of file class.ilObjectListGUI.php.

Referenced by getSeparateCommands().

◆ $settings

ilObjectListGUI::$settings
protected

Definition at line 53 of file class.ilObjectListGUI.php.

Referenced by enableComments(), enableNotes(), and insertSubscribeCommand().

◆ $shared

ilObjectListGUI::$shared = false
protected

Definition at line 128 of file class.ilObjectListGUI.php.

◆ $static_link_enabled

ilObjectListGUI::$static_link_enabled = false
protected

Definition at line 125 of file class.ilObjectListGUI.php.

◆ $std_cmd_only

ilObjectListGUI::$std_cmd_only = false

Definition at line 84 of file class.ilObjectListGUI.php.

◆ $sub_item_html

ilObjectListGUI::$sub_item_html = array()

Definition at line 85 of file class.ilObjectListGUI.php.

◆ $sub_obj_id

ilObjectListGUI::$sub_obj_id
protected

Definition at line 92 of file class.ilObjectListGUI.php.

◆ $sub_obj_type

ilObjectListGUI::$sub_obj_type
protected

Definition at line 93 of file class.ilObjectListGUI.php.

◆ $substitutions

ilObjectListGUI::$substitutions = null
protected

Definition at line 95 of file class.ilObjectListGUI.php.

◆ $substitutions_enabled

ilObjectListGUI::$substitutions_enabled = false
protected

Definition at line 96 of file class.ilObjectListGUI.php.

Referenced by getSubstitutionStatus().

◆ $tags

ilObjectListGUI::$tags = array()
staticprotected

Definition at line 149 of file class.ilObjectListGUI.php.

Referenced by getHeaderAction().

◆ $tags_enabled

ilObjectListGUI::$tags_enabled = false
protected

Definition at line 134 of file class.ilObjectListGUI.php.

◆ $timings_enabled

ilObjectListGUI::$timings_enabled = true
protected

Definition at line 141 of file class.ilObjectListGUI.php.

◆ $title_link

ilObjectListGUI::$title_link = ''
protected

Definition at line 153 of file class.ilObjectListGUI.php.

◆ $title_link_disabled

ilObjectListGUI::$title_link_disabled = false
protected

Definition at line 154 of file class.ilObjectListGUI.php.

◆ $tpl

ilObjectListGUI::$tpl
protected

Definition at line 58 of file class.ilObjectListGUI.php.

Referenced by prepareJsLinks().

◆ $tpl_component

ilObjectListGUI::$tpl_component = "Services/Container"
staticprotected

Definition at line 160 of file class.ilObjectListGUI.php.

◆ $tpl_file_name

ilObjectListGUI::$tpl_file_name = "tpl.container_list_item.html"
staticprotected

Definition at line 159 of file class.ilObjectListGUI.php.

◆ $tree

◆ $type

◆ $ui

ilObjectListGUI::$ui
protected

Definition at line 170 of file class.ilObjectListGUI.php.

Referenced by getAsCard(), and getAsListItem().

◆ $user

◆ CONTEXT_PERSONAL_DESKTOP

◆ CONTEXT_REPOSITORY

◆ CONTEXT_SEARCH

const ilObjectListGUI::CONTEXT_SEARCH = 6

◆ CONTEXT_WORKSPACE

◆ CONTEXT_WORKSPACE_SHARING

const ilObjectListGUI::CONTEXT_WORKSPACE_SHARING = 4

Definition at line 66 of file class.ilObjectListGUI.php.

◆ DETAILS_ALL

◆ DETAILS_MINIMAL

const ilObjectListGUI::DETAILS_MINIMAL = 10

◆ DETAILS_SEARCH

const ilObjectListGUI::DETAILS_SEARCH = 20

◆ DOWNLOAD_CHECKBOX_DISABLED

const ilObjectListGUI::DOWNLOAD_CHECKBOX_DISABLED = 2

Definition at line 72 of file class.ilObjectListGUI.php.

◆ DOWNLOAD_CHECKBOX_ENABLED

const ilObjectListGUI::DOWNLOAD_CHECKBOX_ENABLED = 1

Definition at line 71 of file class.ilObjectListGUI.php.

◆ DOWNLOAD_CHECKBOX_NONE

const ilObjectListGUI::DOWNLOAD_CHECKBOX_NONE = 0

Definition at line 70 of file class.ilObjectListGUI.php.


The documentation for this class was generated from the following file: