24 include_once
"./Modules/Course/classes/class.ilObjCourseListGUI.php";
95 $this->copy_enabled =
true;
96 $this->static_link_enabled =
false;
97 $this->delete_enabled =
true;
98 $this->cut_enabled =
true;
99 $this->subscribe_enabled =
true;
100 $this->link_enabled =
false;
101 $this->info_screen_enabled =
true;
103 $this->gui_class_name =
"ilobjcoursegui";
105 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
107 if ($this->substitutions->isActive()) {
108 $this->substitutions_enabled =
true;
117 public function initItem($a_ref_id, $a_obj_id,
$type, $a_title =
"", $a_description =
"")
121 $this->reference_ref_id = $a_ref_id;
122 $this->reference_obj_id = $a_obj_id;
125 include_once(
'./Services/ContainerReference/classes/class.ilContainerReference.php');
129 $target_ref_id = current($target_ref_ids);
133 $this->deleted = $tree->isDeleted($target_ref_id);
135 $ilBench->start(
"ilObjCourseListGUI",
"1000_checkAllConditions");
137 $ilBench->stop(
"ilObjCourseListGUI",
"1000_checkAllConditions");
140 parent::initItem($target_ref_id, $target_obj_id,
$type, $target_title, $target_description);
143 include_once(
'./Modules/CourseReference/classes/class.ilObjCourseReferenceAccess.php');
146 if ($ilAccess->checkAccess(
'write',
'', $this->reference_ref_id) or
$this->deleted) {
147 $this->info_screen_enabled =
false;
149 $this->info_screen_enabled =
true;
157 $props = parent::getProperties();
160 if ($this->deleted) {
161 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
162 "value" => $lng->txt(
"reference_deleted"));
165 return $props ? $props : array();
177 case 'editReference':
178 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(), $a_type, $a_obj_id);
181 switch ($a_permission) {
185 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(), $a_type, $a_obj_id);
189 return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id);
205 case 'editReference':
206 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->
getCommandId());
207 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
208 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
212 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
213 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
214 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
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.
static _getCommands()
get commands
static _lookupTitle($a_obj_id)
Overwitten from base class.
initItem($a_ref_id, $a_obj_id, $type, $a_title="", $a_description="")
static _lookupDescription($a_id)
lookup object description
static _lookupObjId($a_id)
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
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
__construct(Container $dic, ilPlugin $plugin)
static _lookupTargetId($a_obj_id)
lookup target id