ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjStudyProgrammeReferenceListGUI Class Reference
+ Inheritance diagram for ilObjStudyProgrammeReferenceListGUI:
+ Collaboration diagram for ilObjStudyProgrammeReferenceListGUI:

Public Member Functions

 __construct ()
 
 getIconImageType ()
 
 getTypeIcon ()
 
 getCommandId ()
 get command id More...
 
 insertTimingsCommand ()
 no activation for links More...
 
 init ()
 initialisation More...
 
 initItem ($a_ref_id, $a_obj_id, $type, $a_title="", $a_description="")
 inititialize new item Group reference inits the group item More...
 
 getProperties ()
 
 checkCommandAccess ($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
 
 getCommandLink ($a_cmd)
 get command link More...
 
 getListItemHTML ( $a_ref_id, $a_obj_id, $a_title, $a_description, $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_context=self::CONTEXT_REPOSITORY)
 
- Public Member Functions inherited from ilObjStudyProgrammeListGUI
 __construct ()
 
 init ()
 initialisation More...
 
 insertTimingsCommand ()
 no timing commands needed for program. More...
 
 insertCommonSocialCommands ($a_header_actions=false)
 no social commands needed in program. More...
 
 getCommandLink ($a_cmd)
 insert info screen program More...
 
 getListItemHTML ( $a_ref_id, $a_obj_id, $a_title, $a_description, $a_use_asynch=false, $a_get_asynch_commands=false, $a_asynch_url="", $a_context=self::CONTEXT_REPOSITORY)
 Get all item information (title, commands, description) in HTML. More...
 
- Public Member Functions inherited from ilObjectListGUI
 __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 ()
 

Protected Attributes

 $reference_obj_id = null
 
 $reference_ref_id = null
 
 $deleted = false
 
 $ilAccess
 
 $tree
 
 $lng
 
- Protected Attributes inherited from ilObjStudyProgrammeListGUI
 $tpl
 
- Protected Attributes inherited from ilObjectListGUI
 $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
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectListGUI
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 inherited from ilObjectListGUI
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 inherited from ilObjectListGUI
 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...
 
- Static Protected Attributes inherited from ilObjectListGUI
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

Definition at line 3 of file class.ilObjStudyProgrammeReferenceListGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjStudyProgrammeReferenceListGUI::__construct ( )

Definition at line 16 of file class.ilObjStudyProgrammeReferenceListGUI.php.

References $DIC, and ILIAS\GlobalScreen\Provider\__construct().

17  {
18  global $DIC;
19 
20  $this->ilAccess = $DIC['ilAccess'];
21  $this->tree = $DIC['tree'];
22  $this->lng = $DIC['lng'];
23  $this->ilCtrl = $DIC['ilCtrl'];
25  }
This class provides processing control methods.
Class ilAccessHandler.
__construct(Container $dic, ilPlugin $plugin)
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

Member Function Documentation

◆ checkCommandAccess()

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

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

References $a_type, and getCommandId().

150  {
151  // Check edit reference against reference edit permission
152  switch ($a_cmd) {
153  case 'editReference':
154  return parent::checkCommandAccess($a_permission, $a_cmd, $this->getCommandId(), $a_type, $a_obj_id);
155  }
156 
157  switch ($a_permission) {
158  case 'copy':
159  return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id, 'prg', $a_obj_id);
160  default:
161  return parent::checkCommandAccess($a_permission, $a_cmd, $this->getCommandId(), 'prgr', "");
162  }
163  }
$a_type
Definition: workflow.php:92
+ Here is the call graph for this function:

◆ getCommandId()

ilObjStudyProgrammeReferenceListGUI::getCommandId ( )

get command id

public

Returns
int|null

Definition at line 55 of file class.ilObjStudyProgrammeReferenceListGUI.php.

References $reference_ref_id.

Referenced by checkCommandAccess(), getCommandLink(), and getTypeIcon().

+ Here is the caller graph for this function:

◆ getCommandLink()

ilObjStudyProgrammeReferenceListGUI::getCommandLink (   $a_cmd)

get command link

public

Parameters
string$a_cmd
Returns
string

Definition at line 172 of file class.ilObjStudyProgrammeReferenceListGUI.php.

References $_GET, getCommandId(), ilCtrl\getLinkTargetByClass(), and ilCtrl\setParameterByClass().

173  {
174  switch ($a_cmd) {
175  case 'editReference':
176  $this->ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->getCommandId());
177  $cmd_link = $this->ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
178  $this->ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
179  return $cmd_link;
180 
181  default:
182  $this->ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
183  $cmd_link = $this->ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
184  $this->ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
185  return $cmd_link;
186  }
187  }
getLinkTargetByClass( $a_class, $a_cmd="", $a_anchor="", $a_asynch=false, $xml_style=false)
Get link target for command using gui class name.
This class provides processing control methods.
$_GET["client_id"]
setParameterByClass($a_class, $a_parameter, $a_value)
Same as setParameterByClass, except that a class name is passed.
+ Here is the call graph for this function:

◆ getIconImageType()

ilObjStudyProgrammeReferenceListGUI::getIconImageType ( )
Returns
string

Definition at line 31 of file class.ilObjStudyProgrammeReferenceListGUI.php.

32  {
33  return 'prgr';
34  }

◆ getListItemHTML()

ilObjStudyProgrammeReferenceListGUI::getListItemHTML (   $a_ref_id,
  $a_obj_id,
  $a_title,
  $a_description,
  $a_use_asynch = false,
  $a_get_asynch_commands = false,
  $a_asynch_url = "",
  $a_context = self::CONTEXT_REPOSITORY 
)

Definition at line 189 of file class.ilObjStudyProgrammeReferenceListGUI.php.

References ilObject\_getAllReferences(), ilContainerReference\_lookupTargetId(), ilObjectListGUI\enableCheckbox(), ilObjectListGUI\getCheckboxStatus(), ilObjectListGUI\getListItemHTML(), and ilObjectListGUI\setAdditionalInformation().

198  {
199  $target_obj_id = ilContainerReference::_lookupTargetId($a_obj_id);
200  $target_ref_id = current(ilObject::_getAllReferences($target_obj_id));
201  $prg = new ilObjStudyProgramme($target_ref_id);
202  $assignments = $prg->getAssignments();
203  if ($this->getCheckboxStatus() && count($assignments) > 0) {
204  $this->setAdditionalInformation($this->lng->txt("prg_can_not_manage_in_repo"));
205  $this->enableCheckbox(false);
206  } else {
207  $this->setAdditionalInformation(null);
208  }
210  $a_ref_id,
211  $a_obj_id,
212  $a_title,
213  $a_description,
214  $a_use_asynch,
215  $a_get_asynch_commands,
216  $a_asynch_url,
217  $a_context
218  );
219  }
getCheckboxStatus()
Are checkboxes enabled?
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.
static _getAllReferences($a_id)
get all reference ids of object
setAdditionalInformation($a_val)
Set additional information.
enableCheckbox($a_status)
En/Dis-able checkboxes.
static _lookupTargetId($a_obj_id)
lookup target id
+ Here is the call graph for this function:

◆ getProperties()

ilObjStudyProgrammeReferenceListGUI::getProperties ( )

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

References $lng.

131  {
132  $props = parent::getProperties();
133 
134  // offline
135  if ($this->deleted) {
136  $props[] = array("alert" => true, "property" => $this->lng->txt("status"),
137  "value" => $lng->txt("reference_deleted"));
138  }
139 
140  return $props ? $props : array();
141  }

◆ getTypeIcon()

ilObjStudyProgrammeReferenceListGUI::getTypeIcon ( )

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

References $reference_obj_id, ilObject\_lookupObjId(), and getCommandId().

40  {
42  return ilObject::_getIcon(
44  'small'
45  );
46  }
static _lookupObjId($a_id)
+ Here is the call graph for this function:

◆ init()

ilObjStudyProgrammeReferenceListGUI::init ( )

initialisation

Definition at line 74 of file class.ilObjStudyProgrammeReferenceListGUI.php.

References ilAdvancedMDSubstitution\_getInstanceByObjectType().

75  {
76  $this->copy_enabled = true;
77  $this->static_link_enabled = false;
78  $this->delete_enabled = true;
79  $this->cut_enabled = true;
80  $this->subscribe_enabled = true;
81  $this->link_enabled = false;
82  $this->info_screen_enabled = true;
83  $this->type = "prg";
84  $this->gui_class_name = "ilobjstudyprogrammegui";
85 
86  $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
87  if ($this->substitutions->isActive()) {
88  $this->substitutions_enabled = true;
89  }
90  }
static _getInstanceByObjectType($a_type)
Singleton: use this method to get an instance.
+ Here is the call graph for this function:

◆ initItem()

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

inititialize new item Group reference inits the group item

Parameters
int$a_ref_idreference id
int$a_obj_idobject id
string$a_titletitle
string$a_descriptiondescription

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

References $deleted, ilConditionHandler\_checkAllConditionsOfTarget(), ilObject\_getAllReferences(), ilObjectAccess\_getCommands(), ilObject\_lookupDescription(), ilContainerReference\_lookupTargetId(), ilContainerReference\_lookupTitle(), ilAccess\checkAccess(), and ilObjectListGUI\setTitle().

104  {
105  $this->reference_ref_id = $a_ref_id;
106  $this->reference_obj_id = $a_obj_id;
107 
108  $target_obj_id = ilContainerReference::_lookupTargetId($a_obj_id);
109 
110  $target_ref_ids = ilObject::_getAllReferences($target_obj_id);
111  $target_ref_id = current($target_ref_ids);
112  $target_title = ilContainerReference::_lookupTitle($a_obj_id);
113  $target_description = ilObject::_lookupDescription($target_obj_id);
114 
115  $this->deleted = $this->tree->isDeleted($target_ref_id);
116 
117  $this->conditions_ok = ilConditionHandler::_checkAllConditionsOfTarget($target_ref_id, $target_obj_id);
118 
119  parent::initItem($target_ref_id, $target_obj_id, 'prg', $target_title, $target_description);
120  $this->setTitle($target_title);
121  $this->commands = ilObjStudyProgrammeReferenceAccess::_getCommands($this->reference_ref_id);
122 
123  if ($this->ilAccess->checkAccess('write', '', $this->reference_ref_id) || $this->deleted) {
124  $this->info_screen_enabled = false;
125  } else {
126  $this->info_screen_enabled = true;
127  }
128  }
Class ilAccessHandler.
static _getAllReferences($a_id)
get all reference ids of object
static _getCommands()
get commands
checkAccess($a_permission, $a_cmd, $a_ref_id, $a_type="", $a_obj_id="", $a_tree_id="")
check access for an object (provide $a_type and $a_obj_id if available for better performance)(option...
static _lookupTitle($a_obj_id)
Overwitten from base class.
static _lookupDescription($a_id)
lookup object description
static _checkAllConditionsOfTarget($a_target_ref_id, $a_target_id, $a_target_type="", $a_usr_id=0)
checks wether all conditions of a target object are fulfilled
static _lookupTargetId($a_obj_id)
lookup target id
+ Here is the call graph for this function:

◆ insertTimingsCommand()

ilObjStudyProgrammeReferenceListGUI::insertTimingsCommand ( )

no activation for links

Returns
type

Definition at line 64 of file class.ilObjStudyProgrammeReferenceListGUI.php.

65  {
66  return;
67  }

Field Documentation

◆ $deleted

ilObjStudyProgrammeReferenceListGUI::$deleted = false
protected

Definition at line 10 of file class.ilObjStudyProgrammeReferenceListGUI.php.

Referenced by initItem().

◆ $ilAccess

ilObjStudyProgrammeReferenceListGUI::$ilAccess
protected

◆ $lng

ilObjStudyProgrammeReferenceListGUI::$lng
protected

Definition at line 14 of file class.ilObjStudyProgrammeReferenceListGUI.php.

Referenced by getProperties().

◆ $reference_obj_id

ilObjStudyProgrammeReferenceListGUI::$reference_obj_id = null
protected

Definition at line 6 of file class.ilObjStudyProgrammeReferenceListGUI.php.

Referenced by getTypeIcon().

◆ $reference_ref_id

ilObjStudyProgrammeReferenceListGUI::$reference_ref_id = null
protected

Definition at line 8 of file class.ilObjStudyProgrammeReferenceListGUI.php.

Referenced by getCommandId().

◆ $tree

ilObjStudyProgrammeReferenceListGUI::$tree
protected

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