21 $this->tree = $DIC[
'tree'];
22 $this->lng = $DIC[
'lng'];
23 $this->
ilCtrl = $DIC[
'ilCtrl'];
42 return ilObject::_getIcon(
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;
84 $this->gui_class_name =
"ilobjstudyprogrammegui";
87 if ($this->substitutions->isActive()) {
88 $this->substitutions_enabled =
true;
103 public function initItem($a_ref_id, $a_obj_id,
$type, $a_title =
"", $a_description =
"")
105 $this->reference_ref_id = $a_ref_id;
106 $this->reference_obj_id = $a_obj_id;
111 $target_ref_id = current($target_ref_ids);
115 $this->deleted = $this->tree->isDeleted($target_ref_id);
119 parent::initItem($target_ref_id, $target_obj_id,
'prg', $target_title, $target_description);
124 $this->info_screen_enabled =
false;
126 $this->info_screen_enabled =
true;
132 $props = parent::getProperties();
135 if ($this->deleted) {
136 $props[] = array(
"alert" =>
true,
"property" => $this->lng->txt(
"status"),
137 "value" =>
$lng->txt(
"reference_deleted"));
140 return $props ? $props : array();
153 case 'editReference':
154 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(),
$a_type, $a_obj_id);
157 switch ($a_permission) {
159 return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id,
'prg', $a_obj_id);
161 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(),
'prgr',
"");
175 case 'editReference':
194 $a_use_asynch =
false,
195 $a_get_asynch_commands =
false,
197 $a_context = self::CONTEXT_REPOSITORY
202 $assignments = $prg->getAssignments();
215 $a_get_asynch_commands,
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.
getCheckboxStatus()
Are checkboxes enabled?
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
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.
initItem($a_ref_id, $a_obj_id, $type, $a_title="", $a_description="")
inititialize new item Group reference inits the group item
getCommandLink($a_cmd)
get command link
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
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 _lookupObjId($a_id)
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)
setAdditionalInformation($a_val)
Set additional information.
insertTimingsCommand()
no activation for links
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
Class ilObjStudyProgrammeListGUI.
enableCheckbox($a_status)
En/Dis-able checkboxes.
setParameterByClass($a_class, $a_parameter, $a_value)
Same as setParameterByClass, except that a class name is passed.
__construct(Container $dic, ilPlugin $plugin)
getCommandId()
get command id
static _lookupTargetId($a_obj_id)
lookup target id