Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00036 include_once "classes/class.ilObjectListGUI.php";
00037
00038 class ilObjiLincCourseListGUI extends ilObjectListGUI
00039 {
00044 function ilObjiLincCourseListGUI()
00045 {
00046 $this->ilObjectListGUI();
00047 }
00048
00052 function init()
00053 {
00054 $this->delete_enabled = true;
00055 $this->cut_enabled = false;
00056 $this->subscribe_enabled = true;
00057 $this->link_enabled = false;
00058 $this->payment_enabled = false;
00059 $this->type = "icrs";
00060 $this->gui_class_name = "ilobjilinccoursegui";
00061
00062
00063 include_once('class.ilObjiLincCourseAccess.php');
00064 $this->commands = ilObjiLincCourseAccess::_getCommands();
00065 }
00066
00067
00068
00076 function getCommandLink($a_cmd)
00077 {
00078
00079 $cmd_link = "repository.php?ref_id=".$this->ref_id."&cmd=$a_cmd";
00080
00081 return $cmd_link;
00082 }
00083
00092 function getProperties()
00093 {
00094 global $lng, $ilias, $rbacsystem;
00095
00096 $props = array();
00097
00098 include_once("ilinc/classes/class.ilObjiLincCourse.php");
00099
00100 if (!ilObjiLincCourse::_isActivated($this->obj_id))
00101 {
00102 $props[] = array("alert" => true, "property" => $lng->txt("status"),
00103 "value" => $lng->txt("offline"));
00104 }
00105
00106 if (!$ilias->getSetting("ilinc_active"))
00107 {
00108 $props[] = array("alert" => false, "property" => $lng->txt("ilinc_remark"),
00109 "value" => $lng->txt("ilinc_server_not_active"));
00110 }
00111
00112
00113 if ($ilias->getSetting("ilinc_akclassvalues_active") and $rbacsystem->checkAccess("write", $this->ref_id))
00114 {
00115 $akclassvalues = ilObjiLincCourse::_getAKClassValues($this->obj_id);
00116
00117 $value = "";
00118
00119 if (!empty($akclassvalues[0]))
00120 {
00121 $value = $akclassvalues[0];
00122 $property = $lng->txt("ilinc_akclassvalue");
00123
00124 if (!empty($akclassvalues[1]))
00125 {
00126 $value .= " / ".$akclassvalues[1];
00127 $property = $lng->txt("ilinc_akclassvalues");
00128 }
00129 }
00130 elseif (!empty($akclassvalues[1]))
00131 {
00132 $value = $akclassvalues[1];
00133 $property = $lng->txt("ilinc_akclassvalue");
00134 }
00135 else
00136 {
00137 $property = $lng->txt("ilinc_akclassvalues");
00138 $value = $lng->txt("ilinc_no_akclassvalues");
00139 }
00140 }
00141
00142 $props[] = array("alert" => false, "property" => $property, "value" => $value);
00143
00144 return $props;
00145 }
00146 }
00147 ?>