Public Member Functions

ilObjGroupListGUI Class Reference

Class ilObjGroupListGUI. More...

Inheritance diagram for ilObjGroupListGUI:
Collaboration diagram for ilObjGroupListGUI:

Public Member Functions

 ilObjGroupListGUI ()
 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 ilObjGroupListGUI.

Author:
Alex Killing <alex.killing@gmx.de>
Id:
class.ilObjGroupListGUI.php 10464 2006-04-04 13:12:09Z smeyer

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


Member Function Documentation

ilObjGroupListGUI::getCommandLink ( a_cmd  ) 

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

"lm_presentation.php", "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.ilObjGroupListGUI.php.

        {
                switch($a_cmd)
                {
                        case "view":
                        case "join":
                                // using ilCtrl does not work on personal desktop
                                //$this->ctrl->setParameterByClass("ilObjGroupGUI", "ref_id", $this->ref_id);
                                //$cmd_link = $this->ctrl->getLinkTargetByClass("ilObjGroupGUI");
                                $cmd_link = "repository.php?ref_id=".$this->ref_id."&cmd=$a_cmd";
                                break;

                        case "edit":
                        default:
                                $cmd_link = "repository.php?ref_id=".$this->ref_id."&cmd=$a_cmd";
                                break;
                }

                return $cmd_link;
        }

ilObjGroupListGUI::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 108 of file class.ilObjGroupListGUI.php.

References $lng, and $rbacsystem.

        {
                global $lng, $rbacsystem;

                $props = array();

                return $props;
        }

ilObjGroupListGUI::ilObjGroupListGUI (  ) 

constructor

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

References ilObjectListGUI::ilObjectListGUI().

        {
                $this->ilObjectListGUI();
        }

Here is the call graph for this function:

ilObjGroupListGUI::init (  ) 

initialisation

this method should be overwritten by derived classes

Reimplemented from ilObjectListGUI.

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

References ilObjGroupAccess::_getCommands().

        {
                $this->delete_enabled = true;
                $this->cut_enabled = true;
                $this->subscribe_enabled = true;
                $this->link_enabled = false;
                $this->payment_enabled = false;
                $this->info_screen_enabled = true;
                $this->type = "grp";
                $this->gui_class_name = "ilobjgroupgui";

                // general commands array
                include_once('class.ilObjGroupAccess.php');
                $this->commands = ilObjGroupAccess::_getCommands();
        }

Here is the call graph for this function:


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