Public Member Functions

ilObjiLincCourseListGUI Class Reference

Inheritance diagram for ilObjiLincCourseListGUI:
Collaboration diagram for ilObjiLincCourseListGUI:

Public Member Functions

 ilObjiLincCourseListGUI ()
 constructor
 init ()
 initialisation
 getCommandLink ($a_cmd)
 Get command link url.
 getProperties ()
 Get item properties.

Detailed Description

Definition at line 38 of file class.ilObjiLincCourseListGUI.php.


Member Function Documentation

ilObjiLincCourseListGUI::getCommandLink ( a_cmd  ) 

Get command link url.

Parameters:
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.

Returns:
array array of property arrays: "alert" (boolean) => display as an alert property (usually in red) "property" (string) => property name "value" (string) => property value

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;
        }

Here is the call graph for this function:

ilObjiLincCourseListGUI::ilObjiLincCourseListGUI (  ) 

constructor

Definition at line 44 of file class.ilObjiLincCourseListGUI.php.

References ilObjectListGUI::ilObjectListGUI().

        {
                $this->ilObjectListGUI();
        }

Here is the call graph for this function:

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();
        }

Here is the call graph for this function:


The documentation for this class was generated from the following file: