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 $this->ctpl =
new ilTemplate (
"tpl.container_list_item_commands.html",
true,
true);
87 $this->
initItem($a_icrs_ref_id, $a_icla_id, $a_title, $a_description);
96 $this->tpl->setVariable(
"COMMANDS", $this->ctpl->get());
126 return $this->tpl->get();
137 function initItem($a_icrs_ref_id, $a_icla_id, $a_title, $a_description)
139 $this->ref_id = $a_icla_id;
140 $this->obj_id = $a_icrs_ref_id;
141 $this->title = $a_title;
142 $this->description = $a_description;
145 $this->adm_commands_included =
false;
175 $ref_commands = array();
177 foreach($this->commands as
$command)
179 $permission = $command[
"permission"];
180 $cmd = $command[
"cmd"];
181 $lang_var = $command[
"lang_var"];
185 $item_data = $this->container_obj->items[
'icla'][
$this->ref_id];
186 $ilAccess->enable(
"cache",
false);
187 $access = $ilAccess->doStatusCheck($permission,
$cmd, $this->obj_id, $item_data,$this->ref_id,
"icla");
188 $ilAccess->enable(
"cache",
true);
194 $access_granted =
true;
198 $access_granted =
false;
202 $ref_commands[] = array(
203 "permission" => $permission,
206 "frame" => $cmd_frame,
207 "lang_var" => $lang_var,
208 "granted" => $access_granted,
209 "access_info" => $info_object,
210 "default" => $command[
"default"]
214 return $ref_commands;
232 $this->ctrl->setParameterByClass($this->gui_class_name,
"ref_id",
$_GET[
'ref_id']);
233 $this->ctrl->setParameterByClass($this->gui_class_name,
"class_id",$this->ref_id);
236 $cmd_link = $this->ctrl->getLinkTargetByClass($this->gui_class_name,
245 case "joinClassroom":
246 case "agendaClassroom":
278 include_once (
'./Modules/ILinc/classes/class.ilObjiLincClassroom.php');
283 $props[] = array(
"alert" =>
true,
"property" => $this->lng->txt(ILINC_MEMBER_DOCENT),
"value" => $this->lng->txt(
'ilinc_no_docent_assigned'));
287 $props[] = array(
"alert" =>
false,
"property" => $this->lng->txt(ILINC_MEMBER_DOCENT),
"value" => $docent);
291 if ($a_item[
'alwaysopen'])
293 $props[] = array(
"alert" =>
false,
"property" => $this->lng->txt(
"status"),
294 "value" => $this->lng->txt(
"ilinc_classroom_always_open"));
298 $props[] = array(
"alert" =>
true,
"property" => $this->lng->txt(
"status"),
299 "value" => $this->lng->txt(
"ilinc_classroom_closed"));