21 $this->tree = $DIC[
'tree'];
22 $this->lng = $DIC[
'lng'];
23 $this->
ilCtrl = $DIC[
'ilCtrl'];
76 $this->static_link_enabled =
false;
77 $this->delete_enabled =
true;
78 $this->cut_enabled =
false;
79 $this->info_screen_enabled =
true;
80 $this->copy_enabled =
true;
81 $this->subscribe_enabled =
false;
82 $this->link_enabled =
false;
85 $this->gui_class_name =
"ilobjstudyprogrammegui";
88 if ($this->substitutions->isActive()) {
89 $this->substitutions_enabled =
true;
104 public function initItem($a_ref_id, $a_obj_id,
$type, $a_title =
"", $a_description =
"")
106 $this->reference_ref_id = $a_ref_id;
107 $this->reference_obj_id = $a_obj_id;
112 $target_ref_id = current($target_ref_ids);
116 $this->deleted = $this->tree->isDeleted($target_ref_id);
120 parent::initItem($target_ref_id, $target_obj_id,
'prg', $target_title, $target_description);
125 $this->info_screen_enabled =
false;
127 $this->info_screen_enabled =
true;
133 $props = parent::getProperties();
136 if ($this->deleted) {
137 $props[] = array(
"alert" =>
true,
"property" => $this->lng->txt(
"status"),
138 "value" =>
$lng->txt(
"reference_deleted"));
141 return $props ? $props : array();
154 case 'editReference':
155 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(), $a_type, $a_obj_id);
158 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(),
'prgr',
"");
171 case 'editReference':
190 $a_use_asynch =
false,
191 $a_get_asynch_commands =
false,
193 $a_context = self::CONTEXT_REPOSITORY
198 $assignments = $prg->getAssignments();
211 $a_get_asynch_commands,
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
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
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