Public Member Functions

ilObjiLincCourseListGUI Class Reference

Class ilObjiLincCourseListGUI. More...

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

Class ilObjiLincCourseListGUI.

Author:
Alex Killing <alex.killing@gmx.de>
Version:
Id:
class.ilObjiLincCourseListGUI.php 8285 2005-08-05 14:34:11Z shofmann

Definition at line 37 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 75 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 91 of file class.ilObjiLincCourseListGUI.php.

References $ilias, $lng, and ilObjiLincCourse::_isActivated().

        {
                global $lng, $ilias;

                $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"));
                }

                return $props;
        }

Here is the call graph for this function:

ilObjiLincCourseListGUI::ilObjiLincCourseListGUI (  ) 

constructor

Definition at line 43 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 51 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: