Public Member Functions

ilObjGlossaryListGUI Class Reference

Class ilObjGlossaryListGUI. More...

Inheritance diagram for ilObjGlossaryListGUI:
Collaboration diagram for ilObjGlossaryListGUI:

Public Member Functions

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

Detailed Description

Class ilObjGlossaryListGUI.

Author:
Alex Killing <alex.killing@gmx.de>
Id:
class.ilObjGlossaryListGUI.php 11689 2006-07-29 16:12:36Z akill

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


Member Function Documentation

ilObjGlossaryListGUI::getCommandFrame ( a_cmd  ) 

Get command target frame.

Parameters:
string $a_cmd command
Returns:
string command target frame

Reimplemented from ilObjectListGUI.

Definition at line 109 of file class.ilObjGlossaryListGUI.php.

References $ilias, and ilFrameTargetInfo::_getFrame().

        {
                global $ilias;

                switch($a_cmd)
                {
                        case "view":
                        case "edit":
                                $frame = ilFrameTargetInfo::_getFrame("MainContent");
                                break;

                        default:
                                $frame = "";
                                break;
                }

                return $frame;
        }

Here is the call graph for this function:

ilObjGlossaryListGUI::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.ilObjGlossaryListGUI.php.

        {
                switch($a_cmd)
                {
                        case "view":
                                $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$this->ref_id;
                                break;

                        case "edit":
                                $cmd_link = "ilias.php?baseClass=ilGlossaryEditorGUI&amp;ref_id=".$this->ref_id;
                                break;

                        case "infoScreen":
                                $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&amp;cmd=infoScreen&amp;ref_id=".$this->ref_id;
                                break;
                                
                        default:
                                $cmd_link = "repository.php?ref_id=".$this->ref_id."&cmd=$a_cmd";
                                break;
                }

                return $cmd_link;
        }

ilObjGlossaryListGUI::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 137 of file class.ilObjGlossaryListGUI.php.

References $lng, $rbacsystem, and ilObjGlossaryAccess::_lookupOnline().

        {
                global $lng, $rbacsystem;

                $props = array();

                include_once("content/classes/class.ilObjGlossaryAccess.php");

                if (!ilObjGlossaryAccess::_lookupOnline($this->obj_id))
                {
                        $props[] = array("alert" => true, "property" => $lng->txt("status"),
                                "value" => $lng->txt("offline"));
                }
                return $props;
        }

Here is the call graph for this function:

ilObjGlossaryListGUI::ilObjGlossaryListGUI (  ) 

constructor

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

References ilObjectListGUI::ilObjectListGUI().

        {
                $this->ilObjectListGUI();
        }

Here is the call graph for this function:

ilObjGlossaryListGUI::init (  ) 

initialisation

this method should be overwritten by derived classes

Reimplemented from ilObjectListGUI.

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

References ilObjGlossaryAccess::_getCommands().

        {
                $this->delete_enabled = true;
                $this->cut_enabled = true;
                $this->subscribe_enabled = true;
                $this->link_enabled = true;
                $this->payment_enabled = false;
                $this->info_screen_enabled = true;
                $this->type = "glo";
                $this->gui_class_name = "ilobjglossarygui";
                
                // general commands array
                include_once('class.ilObjGlossaryAccess.php');
                $this->commands = ilObjGlossaryAccess::_getCommands();
        }

Here is the call graph for this function:


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