ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Class ilObjFileListGUI. More...
Public Member Functions | |
__construct (int $context=self::CONTEXT_REPOSITORY) | |
insertCommands () | |
@description This methods seems to be called by ItemRenderer More... | |
init () | |
initialisation More... | |
getCommands () | |
get all current commands for a specific ref id (in the permission context of the current user) More... | |
getCommandLink (string $cmd) | |
Get command link url. More... | |
getTitle () | |
getTitle overwritten in class.ilObjLinkResourceList.php More... | |
stripTitleOfFileExtension (string $a_title) | |
getCommandFrame (string $cmd) | |
Get command target frame. More... | |
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) | |
![]() | |
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... | |
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 () | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
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 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' |
Class ilObjFileListGUI.
Definition at line 34 of file class.ilObjFileListGUI.php.
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().
ilObjFileListGUI::checkCommandAccess | ( | string | $permission, |
string | $cmd, | ||
int | $ref_id, | ||
string | $type, | ||
?int | $obj_id = null |
||
) |
Reimplemented from ilObjectListGUI.
Definition at line 300 of file class.ilObjFileListGUI.php.
ilObjFileListGUI::getCommandFrame | ( | string | $cmd | ) |
Get command target frame.
Overwrite this method if link frame is not current frame
string | $cmd | command |
Reimplemented from ilObjectListGUI.
Definition at line 193 of file class.ilObjFileListGUI.php.
References $info, and updateContext().
ilObjFileListGUI::getCommandImage | ( | $a_cmd | ) |
Get command icon image.
Definition at line 294 of file class.ilObjFileListGUI.php.
ilObjFileListGUI::getCommandLink | ( | string | $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.
Reimplemented from ilObjectListGUI.
Definition at line 151 of file class.ilObjFileListGUI.php.
References ilObjFileAccess\_shouldDownloadDirectly(), ilObjectListGUI\CONTEXT_REPOSITORY, ilObjectListGUI\CONTEXT_WORKSPACE, ILIAS\Repository\ctrl(), and updateContext().
Referenced by getProperties().
ilObjFileListGUI::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 because 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())
@access public
int | $a_ref_id | ref id of object |
Reimplemented from ilObjectListGUI.
Definition at line 115 of file class.ilObjFileListGUI.php.
References ilObjectListGUI\$commands, and updateContext().
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'.
Reimplemented from ilObjectListGUI.
Definition at line 213 of file class.ilObjFileListGUI.php.
References ilObjectListGUI\$type.
ilObjFileListGUI::getProperties | ( | ) |
Get item properties.
Reimplemented from ilObjectListGUI.
Definition at line 228 of file class.ilObjFileListGUI.php.
References $DIC, $info, $version, ilDatePresentation\formatDate(), getCommandLink(), and IL_CAL_UNIX.
ilObjFileListGUI::getTitle | ( | ) |
getTitle overwritten in class.ilObjLinkResourceList.php
Reimplemented from ilObjectListGUI.
Definition at line 182 of file class.ilObjFileListGUI.php.
ilObjFileListGUI::init | ( | ) |
initialisation
Reimplemented from ilObjectListGUI.
Definition at line 93 of file class.ilObjFileListGUI.php.
References ilObjFileAccess\_getCommands(), ilAdvancedMDSubstitution\_getInstanceByObjectType(), ilObjFile\OBJECT_TYPE, and updateContext().
ilObjFileListGUI::insertCommands | ( | ) |
@description This methods seems to be called by ItemRenderer
Definition at line 85 of file class.ilObjFileListGUI.php.
ilObjFileListGUI::stripTitleOfFileExtension | ( | string | $a_title | ) |
Definition at line 187 of file class.ilObjFileListGUI.php.
|
protected |
Definition at line 74 of file class.ilObjFileListGUI.php.
Referenced by getCommandFrame(), getCommandLink(), getCommands(), and init().
|
private |
Definition at line 40 of file class.ilObjFileListGUI.php.
|
private |
Definition at line 39 of file class.ilObjFileListGUI.php.
|
private |
Definition at line 41 of file class.ilObjFileListGUI.php.
|
private |
Definition at line 38 of file class.ilObjFileListGUI.php.
|
private |
Definition at line 43 of file class.ilObjFileListGUI.php.
|
private |
Definition at line 44 of file class.ilObjFileListGUI.php.
|
protected |
Definition at line 42 of file class.ilObjFileListGUI.php.