Public Member Functions

ilObjChatListGUI Class Reference

Class ilObjChatListGUI. More...

Inheritance diagram for ilObjChatListGUI:
Collaboration diagram for ilObjChatListGUI:

Public Member Functions

 ilObjChatListGUI ()
 constructor
 init ()
 initialisation
 getCommandLink ($a_cmd)
 Overwrite this method, if link target is not build by ctrl class (e.g.
 getProperties ()
 Get item properties.

Detailed Description

Class ilObjChatListGUI.

Author:
Alex Killing <alex.killing@gmx.de>
Id:
lass.ilObjChatListGUI.php 12853 2006-12-15 13:36:31 +0000 (Fr, 15 Dez 2006) smeyer

Definition at line 37 of file class.ilObjChatListGUI.php.


Member Function Documentation

ilObjChatListGUI::getCommandLink ( a_cmd  ) 

Overwrite this method, if link target is not build by ctrl class (e.g.

"forum.php"). This is the case for all links now, but bringing everything to ilCtrl should be realised in the future.

Parameters:
string $a_cmd command

Reimplemented from ilObjectListGUI.

Definition at line 78 of file class.ilObjChatListGUI.php.

        {
                switch($a_cmd)
                {
                        case "edit":
                        case "view":
                        default:
                                $cmd_link = "ilias.php?baseClass=ilChatHandlerGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
                                break;
                }

                return $cmd_link;
        }

ilObjChatListGUI::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 101 of file class.ilObjChatListGUI.php.

References $lng, and ilChatRoom::_getCountActiveUsers().

        {
                global $lng;

                include_once './Modules/Chat/classes/class.ilChatRoom.php';

                $props[] = array("alert" => false, "property" => $lng->txt("chat_users_active"),
                                                 "value" => ilChatRoom::_getCountActiveUsers($this->obj_id));

                return $props;
        }

Here is the call graph for this function:

ilObjChatListGUI::ilObjChatListGUI (  ) 

constructor

Definition at line 43 of file class.ilObjChatListGUI.php.

References ilObjectListGUI::ilObjectListGUI().

        {
                $this->ilObjectListGUI();
        }

Here is the call graph for this function:

ilObjChatListGUI::init (  ) 

initialisation

this method should be overwritten by derived classes

Reimplemented from ilObjectListGUI.

Definition at line 53 of file class.ilObjChatListGUI.php.

References ilObjChatAccess::_getCommands().

        {
                $this->static_link_enabled = true;
                $this->delete_enabled = true;
                $this->cut_enabled = true;
                $this->subscribe_enabled = true;
                $this->link_enabled = false;
                $this->payment_enabled = false;
                $this->type = "chat";
                $this->gui_class_name = "ilobjchatgui";
                
                // general commands array
                include_once('class.ilObjChatAccess.php');
                $this->commands = ilObjChatAccess::_getCommands();
        }

Here is the call graph for this function:


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