Public Member Functions | |
ilObjiLincCourseListGUI () | |
constructor | |
init () | |
initialisation | |
getCommandLink ($a_cmd) | |
Get command link url. | |
getProperties () | |
Get item properties. |
Definition at line 38 of file class.ilObjiLincCourseListGUI.php.
ilObjiLincCourseListGUI::getCommandLink | ( | $ | a_cmd | ) |
Get command link url.
int | $a_ref_id reference id | |
string | $a_cmd command |
Reimplemented from ilObjectListGUI.
Definition at line 76 of file class.ilObjiLincCourseListGUI.php.
{ // separate method for this line $cmd_link = "repository.php?ref_id=".$this->ref_id."&cmd=$a_cmd"; return $cmd_link; }
ilObjiLincCourseListGUI::getProperties | ( | ) |
Get item properties.
Definition at line 92 of file class.ilObjiLincCourseListGUI.php.
References $ilias, $lng, $rbacsystem, ilObjiLincCourse::_getAKClassValues(), and ilObjiLincCourse::_isActivated().
{ global $lng, $ilias, $rbacsystem; $props = array(); include_once("ilinc/classes/class.ilObjiLincCourse.php"); if (!ilObjiLincCourse::_isActivated($this->obj_id)) { $props[] = array("alert" => true, "property" => $lng->txt("status"), "value" => $lng->txt("offline")); } if (!$ilias->getSetting("ilinc_active")) { $props[] = array("alert" => false, "property" => $lng->txt("ilinc_remark"), "value" => $lng->txt("ilinc_server_not_active")); } // Display cost centers if active if ($ilias->getSetting("ilinc_akclassvalues_active") and $rbacsystem->checkAccess("write", $this->ref_id)) { $akclassvalues = ilObjiLincCourse::_getAKClassValues($this->obj_id); $value = ""; if (!empty($akclassvalues[0])) { $value = $akclassvalues[0]; $property = $lng->txt("ilinc_akclassvalue"); if (!empty($akclassvalues[1])) { $value .= " / ".$akclassvalues[1]; $property = $lng->txt("ilinc_akclassvalues"); } } elseif (!empty($akclassvalues[1])) { $value = $akclassvalues[1]; $property = $lng->txt("ilinc_akclassvalue"); } else { $property = $lng->txt("ilinc_akclassvalues"); $value = $lng->txt("ilinc_no_akclassvalues"); } } $props[] = array("alert" => false, "property" => $property, "value" => $value); return $props; }
ilObjiLincCourseListGUI::ilObjiLincCourseListGUI | ( | ) |
constructor
Definition at line 44 of file class.ilObjiLincCourseListGUI.php.
References ilObjectListGUI::ilObjectListGUI().
{ $this->ilObjectListGUI(); }
ilObjiLincCourseListGUI::init | ( | ) |
initialisation
Reimplemented from ilObjectListGUI.
Definition at line 52 of file class.ilObjiLincCourseListGUI.php.
References ilObjiLincCourseAccess::_getCommands().
{ $this->delete_enabled = true; $this->cut_enabled = false; $this->subscribe_enabled = true; $this->link_enabled = false; $this->payment_enabled = false; $this->type = "icrs"; $this->gui_class_name = "ilobjilinccoursegui"; // general commands array include_once('class.ilObjiLincCourseAccess.php'); $this->commands = ilObjiLincCourseAccess::_getCommands(); }