ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjFileListGUI Class Reference

Class ilObjFileListGUI. More...

+ Inheritance diagram for ilObjFileListGUI:
+ Collaboration diagram for ilObjFileListGUI:

Public Member Functions

 __construct (int $context=self::CONTEXT_REPOSITORY)
 
 insertCommands ()
 This methods seems to be called by ItemRenderer More...
 
 init ()
 initialisation More...
 
 getCommands ()
 
 getCommandLink (string $cmd)
 
 getTitle ()
 
 stripTitleOfFileExtension (string $a_title)
 
 getCommandFrame (string $cmd)
 
 getIconImageType ()
 Returns the icon image type. More...
 
 getProperties ()
 Get item properties. More...
 
 getCommandImage ($a_cmd)
 Get command icon image. More...
 
 checkCommandAccess (string $permission, string $cmd, int $ref_id, string $type, ?int $obj_id=null)
 
- Public Member Functions inherited from ilObjectListGUI
 setContainerObject (object $container_obj)
 
 getContainerObject ()
 
 init ()
 initialisation More...
 
 enableProperties (bool $status)
 
 getPropertiesStatus ()
 
 enablePreconditions (bool $status)
 
 getPreconditionsStatus ()
 
 enableNoticeProperties (bool $status)
 
 getNoticePropertiesStatus ()
 
 enableDescription (bool $status)
 
 getDescriptionStatus ()
 
 enableSearchFragments (bool $status)
 
 getSearchFragmentStatus ()
 
 enableLinkedPath (bool $status)
 
 setRelevance (int $rel)
 
 getRelevance ()
 
 enableIcon (bool $status)
 
 getIconStatus ()
 
 enableCheckbox (bool $status)
 
 getCheckboxStatus ()
 
 enableExpand (bool $status)
 
 getExpandStatus ()
 
 setExpanded (bool $status)
 
 isExpanded ()
 
 setPositionInputField (string $field_index, string $position_value)
 
 enableDelete (bool $status)
 
 getDeleteStatus ()
 
 enableCut (bool $status)
 
 getCutStatus ()
 
 enableCopy (bool $status)
 
 getCopyStatus ()
 
 enableSubscribe (bool $status)
 
 getSubscribeStatus ()
 
 enableLink (bool $status)
 
 getLinkStatus ()
 
 enablePath (bool $path, int $start_node=0, ?\ilPathGUI $path_gui=null)
 
 getPathStatus ()
 
 enableCommands (bool $status, bool $std_only=false)
 
 getCommandsStatus ()
 
 enableInfoScreen (bool $info_screen)
 
 getInfoScreenStatus ()
 
 addSubItemHTML (string $html)
 Add HTML for sub item (used for sessions) More...
 
 enableProgressInfo (bool $status)
 
 getProgressInfoStatus ()
 
 enableSubstitutions (bool $status)
 
 getSubstitutionStatus ()
 
 enableItemDetailLinks (bool $status)
 enable item detail links E.g Direct links to chapters or pages More...
 
 getItemDetailLinkStatus ()
 get item detail link status More...
 
 setItemDetailLinks (array $detail_links, string $intro_txt='')
 set items detail links More...
 
 insertItemDetailLinks ()
 
 setTitle (string $title)
 
 getTitle ()
 getTitle overwritten in class.ilObjLinkResourceList.php More...
 
 setDescription (string $description)
 
 getDescription ()
 getDescription overwritten in class.ilObjLinkResourceList.php More...
 
 setSearchFragment (string $text)
 
 getSearchFragment ()
 
 setSeparateCommands (bool $val)
 
 getSeparateCommands ()
 
 getCommandId ()
 get command id Normally the ref id. More...
 
 setAdditionalInformation (?string $val)
 
 getAdditionalInformation ()
 
 setDetailsLevel (int $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 ()
 
 enableRepositoryTransfer (bool $value)
 Enable copy/move to repository (from personal workspace) More...
 
 restrictToGoto (bool $value)
 Restrict all actions/links to goto. More...
 
 getDefaultCommand ()
 
 checkCommandAccess (string $permission, string $cmd, int $ref_id, string $type, ?int $obj_id=null)
 
 initItem (int $ref_id, int $obj_id, string $type, string $title='', string $description='')
 initialize new item (is called by getItemHTML()) More...
 
 setConditionTarget (int $ref_id, int $obj_id, string $target_type)
 
 resetConditionTarget ()
 
 disableTitleLink (bool $status)
 
 setDefaultCommandParameters (array $params)
 
 createDefaultCommand (array $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 (string $cmd)
 Get command link url. More...
 
 getCommandFrame (string $cmd)
 Get command target frame. More...
 
 getCommandImage (string $cmd)
 Get command icon image. More...
 
 getProperties ()
 Get item properties. More...
 
 addCustomProperty (string $property='', string $value='', bool $alert=false, bool $newline=false)
 
 getCustomProperties (array $prop)
 
 getAlertProperties ()
 
 getNoticeProperties ()
 
 addCustomCommand (string $link, string $lang_var, string $frame='', string $onclick='')
 
 addCustomCommandButton (Button $button, ?Modal $triggeredModal=null)
 
 forceVisibleOnly (bool $stat)
 
 isVisibleOnlyForced ()
 
 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 ()
 
 insertSubstitutions ()
 
 insertDescription ()
 
 insertSearchFragment ()
 Insert highlighted search fragment. More...
 
 setMode (string $mode)
 set output mode More...
 
 getMode ()
 get output mode More...
 
 setConditionDepth (int $depth)
 set depth for precondition output (stops at level 5) More...
 
 isMode (string $mode)
 check current output mode More...
 
 determineProperties ()
 
 insertProperties ()
 
 insertNoticeProperties ()
 
 insertPreconditions ()
 insert all missing preconditions More...
 
 insertCommand (string $href, string $text, string $frame='', string $img='', string $cmd='', string $onclick='')
 insert command button More...
 
 insertDeleteCommand ()
 
 insertLinkCommand ()
 
 insertCutCommand (bool $to_repository=false)
 
 insertCopyCommand (bool $to_repository=false)
 
 insertPasteCommand ()
 
 insertSubscribeCommand ()
 
 insertInfoScreenCommand ()
 
 insertCommonSocialCommands (bool $header_actions=false)
 Insert common social commands (comments, notes, tagging) More...
 
 insertTimingsCommand ()
 ks, 23 OCT 2023: This function is badly named and it already was before the changes made today. More...
 
 enableComments (bool $value, bool $enable_comments_settings=true)
 
 enableNotes (bool $value)
 
 enableTags (bool $value)
 
 enableRating (bool $value, ?string $text=null, bool $categories=false, ?array $ctrl_path=null, bool $force_rate_parent=false)
 
 enableMultiDownload (bool $value)
 Toggles whether multiple objects can be downloaded at once or not. More...
 
 insertMultiDownloadCommand ()
 
 enableDownloadCheckbox (int $ref_id)
 
 getDownloadCheckboxState ()
 
 setHeaderSubObject (?string $type, ?int $id)
 
 addHeaderIcon (string $id, string $img, ?string $tooltip=null, ?string $onclick=null, ?string $status_text=null, ?string $href=null)
 
 addHeaderIconHTML (string $id, string $html)
 
 addHeaderGlyph (string $id, ILIAS\UI\Component\Symbol\Glyph\Glyph $glyph, $onclick=null)
 
 setAjaxHash (string $hash)
 
 getHeaderAction (?ilGlobalTemplateInterface $main_tpl=null)
 
 appendRepositoryFrameParameter (string $link)
 workaround: all links into the repository (from outside) must tell repository to set up the frameset More...
 
 modifySAHSlaunch (string $link, string $target)
 workaround: SAHS in new javavasript-created window or iframe More...
 
 insertPath ()
 
 insertProgressInfo ()
 
 insertIconsAndCheckboxes ()
 
 getTypeIcon ()
 Get object type specific type icon. More...
 
 insertSubItems ()
 
 insertPositionField ()
 
 adminCommandsIncluded ()
 returns whether any admin commands (link, delete, cut) are included in the output More...
 
 storeAccessCache ()
 
 getListItemHTML (int $ref_id, int $obj_id, string $title, string $description)
 Get all item information (title, commands, description) in HTML. More...
 
 setParentRefId (int $ref_id)
 Set current parent ref id to enable unique js-ids (sessions, etc.) More...
 
 getUniqueItemId (bool $as_div=false)
 Get unique item identifier (for js-actions) More...
 
 getCommandsHTML (string $title='')
 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 (bool $bold_title)
 
 isTitleBold ()
 
 enableTimings (bool $status)
 enable timings link 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 ()
 
 insertLPCommand ()
 insert learning progress command More...
 

Protected Member Functions

 updateContext ()
 
- Protected Member Functions inherited from ilObjectListGUI
 enableLearningProgress (bool $enabled)
 
 enableLPSettingsCommand (bool $enabled)
 
 buildGotoLink ()
 
 parseConditions (int $toggle_id, array $conditions, bool $obligatory=true)
 
 modifyTitleLink (string $default_link)
 
 resetCustomData ()
 reset properties and commands More...
 
 isCommentsActivated (string $type, int $ref_id, int $obj_id, bool $header_actions, bool $check_write_access=true)
 Check comments status against comments settings and context. More...
 

Protected Attributes

string $title
 
- Protected Attributes inherited from ilObjectListGUI
bool $force_rate_parent = false
 
array $access_cache
 
ilAccessHandler $access
 
ilObjUser $user
 
ilObjectDIC $object_dic
 
ilObjectProperties $object_properties
 
ilObjectDefinition $obj_definition
 
ilTree $tree
 
ilSetting $settings
 
HTTPServices $http
 
UIServices $ui
 
ilGlobalTemplateInterface $main_tpl
 
ilRbacSystem $rbacsystem
 
ilCtrlInterface $ctrl
 
ilLanguage $lng
 
string $mode
 
bool $path_enabled
 
int $context
 
ILIAS HTTP Wrapper RequestWrapper $request_wrapper
 
ILIAS Refinery Factory $refinery
 
bool $static_link_enabled = false
 
bool $delete_enabled = false
 
bool $cut_enabled = false
 
bool $subscribe_enabled = false
 
bool $link_enabled = false
 
bool $copy_enabled = true
 
bool $progress_enabled = false
 
bool $notice_properties_enabled = true
 
bool $info_screen_enabled = false
 
string $type
 
string $gui_class_name = ''
 
array $commands = []
 
ilLDAPRoleGroupMapping $ldap_mapping
 
ilFavouritesManager $fav_manager
 
int $requested_ref_id
 
string $requested_cmd
 
string $requested_base_class
 
ClipboardManager $clipboard
 
bool $description_enabled = true
 
bool $preconditions_enabled = true
 
bool $properties_enabled = true
 
bool $commands_enabled = true
 
array $cust_prop = []
 
array $cust_commands = []
 
array $cust_modals = []
 
int $condition_depth = 0
 
bool $std_cmd_only = false
 
array $sub_item_html = []
 
bool $multi_download_enabled = false
 
int $download_checkbox_state = self::DOWNLOAD_CHECKBOX_NONE
 
int $obj_id
 
int $ref_id
 
int $sub_obj_id
 
string $sub_obj_type
 
ilAdvancedMDSubstitution $substitutions = null
 
bool $substitutions_enabled = false
 
bool $icons_enabled = false
 
bool $checkboxes_enabled = false
 
bool $position_enabled = false
 
bool $item_detail_links_enabled = false
 
array $item_detail_links = []
 
string $item_detail_links_intro = ''
 
bool $search_fragments_enabled = false
 
string $search_fragment = ''
 
bool $path_linked = false
 
int $relevance = 0
 
bool $expand_enabled = false
 
bool $is_expanded = true
 
bool $bold_title = false
 
int $details_level = self::DETAILS_ALL
 
int $reference_ref_id = 0
 
int $reference_obj_id = null
 
bool $separate_commands = false
 
bool $search_fragment_enabled = false
 
string $additional_information = ''
 
bool $repository_transfer_enabled = false
 
bool $shared = false
 
bool $restrict_to_goto = false
 
bool $comments_enabled = false
 
bool $comments_settings_enabled = false
 
bool $notes_enabled = false
 
bool $tags_enabled = false
 
bool $rating_enabled = false
 
bool $rating_categories_enabled = false
 
string $rating_text = null
 
array $rating_ctrl_path = null
 
bool $timings_enabled = true
 
bool $force_visible_only = false
 
array $prevent_duplicate_commands = []
 
int $parent_ref_id
 
string $title_link = ''
 
bool $title_link_disabled = false
 
bool $lp_cmd_enabled = false
 
bool $lp_settings_cmd_enabled = true
 
array $current_actions = []
 
ilPathGUI $path_gui = null
 
array $default_command_params = []
 
array $header_icons = []
 
object $container_obj = null
 
ilTemplate $tpl
 
string $position_value
 
int $path_start_node
 
array $default_command = []
 
bool $adm_commands_included
 
bool $prevent_access_caching
 
array $condition_target
 
array $notice_prop = []
 
string $ajax_hash
 
ilListItemAccessCache $acache
 
string $position_field_index = ''
 
string $title = ''
 
string $description = ''
 
ilWorkspaceAccessHandler $ws_access
 

Private Attributes

ilObjFileInfoRepository $file_info
 
CapabilityBuilder $capability_builder
 
CapabilityCollection $capabilities = null
 
Context $capability_context
 
IconDatabaseRepository $icon_repo
 
Services $irss
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectListGUI
static prepareJsLinks (string $redraw_url, string $notes_url, string $tags_url, ?ilGlobalTemplateInterface $tpl=null)
 Insert js/ajax links into template. More...
 
static preloadCommonProperties (array $obj_ids, int $context)
 
- Data Fields inherited from ilObjectListGUI
const IL_LIST_AS_TRIGGER = 'trigger'
 
const IL_LIST_FULL = 'full'
 
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
 
- Static Protected Attributes inherited from ilObjectListGUI
static array $cnt_notes = []
 
static array $cnt_tags = []
 
static array $tags = []
 
static array $comments_activation = []
 
static bool $preload_done = false
 
static int $js_unique_id = 0
 
static string $tpl_file_name = 'tpl.container_list_item.html'
 
static string $tpl_component = 'components/ILIAS/Container'
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjFileListGUI::__construct ( int  $context = self::CONTEXT_REPOSITORY)

Definition at line 46 of file class.ilObjFileListGUI.php.

References ilObjectListGUI\$context, $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), and ILIAS\Repository\ctrl().

47  {
48  global $DIC;
49  $this->capability_context = new Context(
50  0,
51  0,
52  ($context === self::CONTEXT_REPOSITORY) ? Context::CONTEXT_REPO : Context::CONTEXT_WORKSPACE
53  );
54 
56 
57 
58  $DIC->language()->loadLanguageModule('wopi');
59  $this->file_info = new ilObjFileInfoRepository();
60  $this->capability_builder = new CapabilityBuilder(
61  $this->file_info,
62  $this->access,
63  $this->ctrl,
64  new ActionDBRepository($DIC->database()),
65  $DIC->http(),
66  $DIC['static_url.uri_builder']
67  );
68 
69 
70  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ checkCommandAccess()

ilObjFileListGUI::checkCommandAccess ( string  $permission,
string  $cmd,
int  $ref_id,
string  $type,
?int  $obj_id = null 
)

Definition at line 285 of file class.ilObjFileListGUI.php.

References ilObjectListGUI\$obj_id, and updateContext().

291  : bool {
292  $this->updateContext();
293 
294  $this->capability_context = $this->capability_context
295  ->withCallingId($ref_id)
296  ->withObjectId($obj_id ?? $this->capability_context->getObjectId());
297 
298  // LP settings only in repository
299  if ($this->context !== self::CONTEXT_REPOSITORY && $permission === "edit_learning_progress") {
300  return false;
301  }
302 
303  $this->capabilities = $this->capability_builder->get($this->capability_context);
304 
305  $capability = Capabilities::fromCommand($cmd);
306  $additional_check = $this->capabilities->get($capability)->isUnlocked();
307 
308  return $additional_check && parent::checkCommandAccess(
309  $permission,
310  $cmd,
311  $ref_id,
312  $type,
313  $obj_id
314  );
315  }
+ Here is the call graph for this function:

◆ getCommandFrame()

ilObjFileListGUI::getCommandFrame ( string  $cmd)

Definition at line 174 of file class.ilObjFileListGUI.php.

References updateContext().

174  : string
175  {
176  $this->updateContext();
177  $info = $this->file_info->getByObjectId($this->obj_id);
178 
179  if ($cmd === Capabilities::DOWNLOAD->value) {
180  return $info->shouldDeliverInline() ? '_blank' : '';
181  }
182 
183  return '';
184  }
+ Here is the call graph for this function:

◆ getCommandImage()

ilObjFileListGUI::getCommandImage (   $a_cmd)

Get command icon image.

Definition at line 279 of file class.ilObjFileListGUI.php.

279  : string
280  {
281  return "";
282  }

◆ getCommandLink()

ilObjFileListGUI::getCommandLink ( string  $cmd)

Definition at line 130 of file class.ilObjFileListGUI.php.

References ilObjFileAccess\_shouldDownloadDirectly(), ILIAS\Repository\ctrl(), and updateContext().

Referenced by getProperties().

130  : string
131  {
132  $this->updateContext();
133  $info = $this->file_info->getByObjectId($this->obj_id);
134  $this->capabilities = $this->capability_builder->get($this->capability_context);
135 
136  $needed_capability = Capabilities::fromCommand($cmd);
137  $capability = $this->capabilities->get($needed_capability);
138  if ($capability === false || !$capability->isUnlocked()) {
139  return '';
140  }
141 
142  switch ($this->context) {
143  case self::CONTEXT_REPOSITORY:
144  return (string) $capability->getURI();
145  case self::CONTEXT_WORKSPACE:
146  $this->ctrl->setParameterByClass(ilObjFileGUI::class, 'wsp_id', $this->ref_id);
147  if ($cmd === "sendfile" && !ilObjFileAccess::_shouldDownloadDirectly($this->obj_id)) {
148  return $this->ctrl->getLinkTargetByClass(
149  ilObjFileGUI::class,
150  Capabilities::INFO_PAGE->value
151  );
152  }
153  break;
154 
155  }
156 
157  return parent::getCommandLink($cmd);
158  }
static _shouldDownloadDirectly(int $obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCommands()

ilObjFileListGUI::getCommands ( )

Definition at line 112 of file class.ilObjFileListGUI.php.

References updateContext().

112  : array
113  {
114  $this->updateContext();
115  $this->capabilities = $this->capability_builder->get($this->capability_context);
116 
117  $best = $this->capabilities->getBest();
118 
119  foreach ($this->commands as $key => $command) {
120  if ($command['cmd'] === $best->getCapability()->value) {
121  $default_set = true;
122  $this->commands[$key]['default'] = true;
123  }
124  }
125 
126  return parent::getCommands();
127  }
+ Here is the call graph for this function:

◆ getIconImageType()

ilObjFileListGUI::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 194 of file class.ilObjFileListGUI.php.

References ilObjectListGUI\$type.

194  : string
195  {
196  return $this->file_info->getByObjectId($this->obj_id)->shouldDeliverInline()
197  ? $this->type . '_inline'
198  : $this->type;
199  }

◆ getProperties()

ilObjFileListGUI::getProperties ( )

Get item properties.

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 210 of file class.ilObjFileListGUI.php.

References $DIC, $version, ilDatePresentation\formatDate(), getCommandLink(), IL_CAL_UNIX, and null.

210  : array
211  {
212  global $DIC;
213 
214  $this->capabilities = $this->capability_builder->get($this->capability_context);
215 
216  $props = parent::getProperties();
217 
218  $info = $this->file_info->getByObjectId($this->obj_id);
219 
220  $revision = $info->getVersion();
221 
222  $props[] = [
223  "alert" => false,
224  "property" => $DIC->language()->txt("type"),
225  "value" => $info->getSuffix(),
226  'propertyNameVisible' => false,
227  ];
228 
229  $props[] = [
230  "alert" => false,
231  "property" => $DIC->language()->txt("size"),
232  "value" => (string) $info->getFileSize(),
233  'propertyNameVisible' => false,
234  ];
235 
236  $version = $info->getVersion();
237  if ($version > 1) {
238 
239  // add versions link
240  if ($this->capabilities->get(Capabilities::MANAGE_VERSIONS)->isUnlocked()) {
241  $link = $this->getCommandLink("versions");
242  $value = "<a href=\"$link\">" . $DIC->language()->txt("version") . ": $version</a>";
243  } else {
244  $value = $DIC->language()->txt("version") . ": $version";
245  }
246  $props[] = [
247  "alert" => false,
248  "property" => $DIC->language()->txt("version"),
249  "value" => $value,
250  "propertyNameVisible" => false
251  ];
252  }
253 
254  $props[] = [
255  "alert" => false,
256  "property" => $DIC->language()->txt("last_update"),
258  new ilDateTime($info->getCreationDate()->format('U'), IL_CAL_UNIX)
259  ),
260  'propertyNameVisible' => false,
261  ];
262 
263  if ($info->getPageCount() !== null && $info->getPageCount() > 0) {
264  $props[] = [
265  "alert" => false,
266  "property" => $DIC->language()->txt("page_count"),
267  "value" => $info->getPageCount(),
268  'propertyNameVisible' => true,
269  ];
270  }
271 
272  return $props;
273  }
$version
Definition: plugin.php:24
const IL_CAL_UNIX
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:22
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
+ Here is the call graph for this function:

◆ getTitle()

ilObjFileListGUI::getTitle ( )

Definition at line 163 of file class.ilObjFileListGUI.php.

163  : string
164  {
165  return $this->file_info->getByObjectId($this->obj_id)->getListTitle();
166  }

◆ init()

ilObjFileListGUI::init ( )

initialisation

Definition at line 90 of file class.ilObjFileListGUI.php.

References ilObjFileAccess\_getCommands(), ilAdvancedMDSubstitution\_getInstanceByObjectType(), ilObjFile\OBJECT_TYPE, and updateContext().

90  : void
91  {
92  $this->delete_enabled = true;
93  $this->cut_enabled = true;
94  $this->copy_enabled = true;
95  $this->subscribe_enabled = true;
96  $this->link_enabled = true;
97  $this->info_screen_enabled = false;
98  $this->type = ilObjFile::OBJECT_TYPE;
99  $this->gui_class_name = ilObjFileGUI::class;
100  $this->icon_repo = new IconDatabaseRepository();
101 
102  $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
103  if ($this->substitutions->isActive()) {
104  $this->substitutions_enabled = true;
105  }
106 
107  $this->commands = ilObjFileAccess::_getCommands();
108  $this->updateContext();
109  }
const OBJECT_TYPE
static _getCommands()
get commands this method returns an array of all possible commands/permission combinations example: $...
static _getInstanceByObjectType(string $a_type)
+ Here is the call graph for this function:

◆ insertCommands()

ilObjFileListGUI::insertCommands ( )

This methods seems to be called by ItemRenderer

Deprecated:

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

83  : void
84  {
85  }

◆ stripTitleOfFileExtension()

ilObjFileListGUI::stripTitleOfFileExtension ( string  $a_title)

Definition at line 168 of file class.ilObjFileListGUI.php.

168  : string
169  {
170  return $this->secure(preg_replace('/\.[^.]*$/', '', $a_title));
171  }

◆ updateContext()

ilObjFileListGUI::updateContext ( )
protected

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

Referenced by checkCommandAccess(), getCommandFrame(), getCommandLink(), getCommands(), and init().

72  : void
73  {
74  $this->capability_context = $this->capability_context
75  ->withCallingId($this->ref_id ?? 0)
76  ->withObjectId($this->obj_id ?? 0);
77  }
+ Here is the caller graph for this function:

Field Documentation

◆ $capabilities

CapabilityCollection ilObjFileListGUI::$capabilities = null
private

Definition at line 40 of file class.ilObjFileListGUI.php.

◆ $capability_builder

CapabilityBuilder ilObjFileListGUI::$capability_builder
private

Definition at line 39 of file class.ilObjFileListGUI.php.

◆ $capability_context

Context ilObjFileListGUI::$capability_context
private

Definition at line 41 of file class.ilObjFileListGUI.php.

◆ $file_info

ilObjFileInfoRepository ilObjFileListGUI::$file_info
private

Definition at line 38 of file class.ilObjFileListGUI.php.

◆ $icon_repo

IconDatabaseRepository ilObjFileListGUI::$icon_repo
private

Definition at line 43 of file class.ilObjFileListGUI.php.

◆ $irss

Services ilObjFileListGUI::$irss
private

Definition at line 44 of file class.ilObjFileListGUI.php.

◆ $title

string ilObjFileListGUI::$title
protected

Definition at line 42 of file class.ilObjFileListGUI.php.


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