24 include_once
"./Modules/Course/classes/class.ilObjCourseListGUI.php";
73 $this->copy_enabled =
false;
74 $this->static_link_enabled =
false;
75 $this->delete_enabled =
true;
76 $this->cut_enabled =
true;
77 $this->subscribe_enabled =
true;
78 $this->link_enabled =
false;
79 $this->payment_enabled =
true;
80 $this->info_screen_enabled =
true;
82 $this->gui_class_name =
"ilobjcoursegui";
84 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
86 if($this->substitutions->isActive())
88 $this->substitutions_enabled =
true;
103 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
107 $this->reference_ref_id = $a_ref_id;
108 $this->reference_obj_id = $a_obj_id;
111 include_once(
'./Services/ContainerReference/classes/class.ilContainerReference.php');
115 $target_ref_id = current($target_ref_ids);
119 $this->deleted = $tree->isDeleted($target_ref_id);
121 $ilBench->start(
"ilObjCourseListGUI",
"1000_checkAllConditions");
123 $ilBench->stop(
"ilObjCourseListGUI",
"1000_checkAllConditions");
126 parent::initItem($target_ref_id, $target_obj_id,$target_title,$target_description);
129 include_once(
'./Modules/CourseReference/classes/class.ilObjCourseReferenceAccess.php');
132 if($ilAccess->checkAccess(
'write',
'',$this->reference_ref_id) or
$this->deleted)
134 $this->info_screen_enabled =
false;
138 $this->info_screen_enabled =
true;
144 global
$lng,$ilUser,$tree;
151 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
152 "value" => $lng->txt(
"reference_deleted"));
155 return $props ? $props : array();
173 return $ilAccess->checkAccess($a_permission,$a_cmd,$this->
getCommandId());
176 return $ilAccess->checkAccess($a_permission,$a_cmd,$a_ref_id,$a_type);
196 return 'repository.php?ref_id='.$this->ref_id.
'&cmd='.$a_cmd;
199 return 'repository.php?ref_id='.$this->getCommandId().
'&cmd='.$a_cmd;