36 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
54 $this->copy_enabled =
false;
55 $this->delete_enabled =
false;
56 $this->cut_enabled =
false;
57 $this->subscribe_enabled =
false;
58 $this->link_enabled =
false;
59 $this->payment_enabled =
false;
61 $this->gui_class_name =
"ilobjilincclassroomgui";
64 include_once(
'./Modules/ILinc/classes/class.ilObjiLincClassroomAccess.php');
78 function getListItemHTML($a_icrs_ref_id, $a_icla_id, $a_title, $a_description,$a_item)
82 $this->adm_commands_included =
false;
85 $this->tpl =
new ilTemplate(
"tpl.container_list_item.html",
true,
true,
86 "Services/Container");
88 $this->
initItem($a_icrs_ref_id, $a_icla_id, $a_title, $a_description);
97 $this->tpl->setVariable(
"COMMAND_SELECTION_LIST", $cmdSelList);
127 return $this->tpl->get();
138 function initItem($a_icrs_ref_id, $a_icla_id, $a_title, $a_description)
140 $this->ref_id = $a_icla_id;
141 $this->obj_id = $a_icrs_ref_id;
142 $this->title = $a_title;
143 $this->description = $a_description;
146 $this->adm_commands_included =
false;
176 $ref_commands = array();
178 foreach($this->commands as $command)
180 $permission = $command[
"permission"];
181 $cmd = $command[
"cmd"];
182 $lang_var = $command[
"lang_var"];
186 $item_data = $this->container_obj->items[
'icla'][
$this->ref_id];
187 $ilAccess->enable(
"cache",
false);
188 $access = $ilAccess->doStatusCheck($permission,
$cmd, $this->obj_id, $item_data,$this->ref_id,
"icla");
189 $ilAccess->enable(
"cache",
true);
195 $access_granted =
true;
199 $access_granted =
false;
203 $ref_commands[] = array(
204 "permission" => $permission,
207 "frame" => $cmd_frame,
208 "lang_var" => $lang_var,
209 "granted" => $access_granted,
210 "access_info" => $info_object,
211 "default" => $command[
"default"]
215 return $ref_commands;
233 $this->ctrl->setParameterByClass($this->gui_class_name,
"ref_id",
$_GET[
'ref_id']);
234 $this->ctrl->setParameterByClass($this->gui_class_name,
"class_id",$this->ref_id);
237 $cmd_link = $this->ctrl->getLinkTargetByClass($this->gui_class_name,
246 case "joinClassroom":
247 case "agendaClassroom":
279 include_once (
'./Modules/ILinc/classes/class.ilObjiLincClassroom.php');
284 $props[] = array(
"alert" =>
true,
"property" => $this->lng->txt(ILINC_MEMBER_DOCENT),
"value" => $this->lng->txt(
'ilinc_no_docent_assigned'));
288 $props[] = array(
"alert" =>
false,
"property" => $this->lng->txt(ILINC_MEMBER_DOCENT),
"value" => $docent);
292 if ($a_item[
'alwaysopen'])
294 $props[] = array(
"alert" =>
false,
"property" => $this->lng->txt(
"status"),
295 "value" => $this->lng->txt(
"ilinc_classroom_always_open"));
299 $props[] = array(
"alert" =>
true,
"property" => $this->lng->txt(
"status"),
300 "value" => $this->lng->txt(
"ilinc_classroom_closed"));