24 include_once
"./Modules/Course/classes/class.ilObjCourseListGUI.php";
48 parent::__construct();
82 $this->copy_enabled =
true;
83 $this->static_link_enabled =
false;
84 $this->delete_enabled =
true;
85 $this->cut_enabled =
true;
86 $this->subscribe_enabled =
true;
87 $this->link_enabled =
false;
88 $this->info_screen_enabled =
true;
90 $this->gui_class_name =
"ilobjcoursegui";
92 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
94 if ($this->substitutions->isActive()) {
95 $this->substitutions_enabled =
true;
110 public function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
114 $this->reference_ref_id = $a_ref_id;
115 $this->reference_obj_id = $a_obj_id;
118 include_once(
'./Services/ContainerReference/classes/class.ilContainerReference.php');
122 $target_ref_id = current($target_ref_ids);
126 $this->deleted = $tree->isDeleted($target_ref_id);
128 $ilBench->start(
"ilObjCourseListGUI",
"1000_checkAllConditions");
130 $ilBench->stop(
"ilObjCourseListGUI",
"1000_checkAllConditions");
133 parent::initItem($target_ref_id, $target_obj_id, $target_title, $target_description);
136 include_once(
'./Modules/CourseReference/classes/class.ilObjCourseReferenceAccess.php');
139 if ($ilAccess->checkAccess(
'write',
'', $this->reference_ref_id) or
$this->deleted) {
140 $this->info_screen_enabled =
false;
142 $this->info_screen_enabled =
true;
150 $props = parent::getProperties();
153 if ($this->deleted) {
154 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
155 "value" => $lng->txt(
"reference_deleted"));
158 return $props ? $props :
array();
170 case 'editReference':
171 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(),
$a_type, $a_obj_id);
174 switch ($a_permission) {
178 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(),
$a_type, $a_obj_id);
182 return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id,
$a_type, $a_obj_id);
198 case 'editReference':
199 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->
getCommandId());
200 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
201 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
205 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
206 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
207 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
getCommandLink($a_cmd)
get command link
__construct()
Constructor.
insertTimingsCommand()
no activation for links
getCommandId()
get command id
static _getAllReferences($a_id)
get all reference ids of object
static _getInstanceByObjectType($a_type)
Singleton: use this method to get an instance.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item Course reference inits the course item
static _getCommands()
get commands
static _lookupTitle($a_obj_id)
Overwitten from base class.
static _lookupDescription($a_id)
lookup object description
Class ilObjCourseListGUI.
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
Create styles array
The data for the language used.
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
static _lookupTargetId($a_obj_id)
lookup target id