Public Member Functions

ilObjQuestionPoolListGUI Class Reference

Class ilObjQuestionPoolListGUI. More...

Inheritance diagram for ilObjQuestionPoolListGUI:
Collaboration diagram for ilObjQuestionPoolListGUI:

Public Member Functions

 ilObjQuestionPoolListGUI ()
 constructor
 init ()
 initialisation
 initItem ($a_ref_id, $a_obj_id, $a_title="", $a_description="")
 inititialize new item
 getCommandFrame ($a_cmd)
 Get command target frame.
 getProperties ()
 Get item properties.
 getCommandLink ($a_cmd)
 Get command link url.

Detailed Description

Class ilObjQuestionPoolListGUI.

Author:
Helmut Schottmueller <helmut.schottmueller@mac.com>
Alex Killing <alex.killing@gmx.de>
Id:
class.ilObjQuestionPoolListGUI.php 9985 2006-02-20 20:06:39Z hschottm

Definition at line 39 of file class.ilObjQuestionPoolListGUI.php.


Member Function Documentation

ilObjQuestionPoolListGUI::getCommandFrame ( a_cmd  ) 

Get command target frame.

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

Reimplemented from ilObjectListGUI.

Definition at line 90 of file class.ilObjQuestionPoolListGUI.php.

References ilFrameTargetInfo::_getFrame().

        {
                switch($a_cmd)
                {
                        case "":
                        case "questions":
                                include_once "./classes/class.ilFrameTargetInfo.php";
                                $frame = ilFrameTargetInfo::_getFrame("MainContent");
                                break;

                        default:
                }

                return $frame;
        }

Here is the call graph for this function:

ilObjQuestionPoolListGUI::getCommandLink ( a_cmd  ) 

Get command link url.

Parameters:
int $a_ref_id reference id
string $a_cmd command

Reimplemented from ilObjectListGUI.

Definition at line 139 of file class.ilObjQuestionPoolListGUI.php.

        {
                // separate method for this line
                //$cmd_link = "assessment/questionpool.php?ref_id=".$this->ref_id."&cmd=$a_cmd";
                $cmd_link = "ilias.php?baseClass=ilObjQuestionPoolGUI&amp;ref_id=".$this->ref_id."&amp;cmd=$a_cmd";

                return $cmd_link;
        }

ilObjQuestionPoolListGUI::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 116 of file class.ilObjQuestionPoolListGUI.php.

References $lng, and ilObjQuestionPool::_lookupOnline().

        {
                global $lng, $ilUser;

                $props = array();

                include_once "./assessment/classes/class.ilObjQuestionPool.php";
                if (!ilObjQuestionPool::_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:

ilObjQuestionPoolListGUI::ilObjQuestionPoolListGUI (  ) 

constructor

Definition at line 45 of file class.ilObjQuestionPoolListGUI.php.

References ilObjectListGUI::ilObjectListGUI().

        {
                $this->ilObjectListGUI();
        }

Here is the call graph for this function:

ilObjQuestionPoolListGUI::init (  ) 

initialisation

Reimplemented from ilObjectListGUI.

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

References ilObjQuestionPoolAccess::_getCommands().

        {
                $this->delete_enabled = true;
                $this->cut_enabled = true;
                $this->subscribe_enabled = true;
                $this->link_enabled = false;
                $this->payment_enabled = false;
                $this->type = "qpl";
                $this->gui_class_name = "ilobjquestionpoolgui";

                // general commands array
                include_once "./assessment/classes/class.ilObjQuestionPoolAccess.php";
                $this->commands = ilObjQuestionPoolAccess::_getCommands();
        }

Here is the call graph for this function:

ilObjQuestionPoolListGUI::initItem ( a_ref_id,
a_obj_id,
a_title = "",
a_description = "" 
)

inititialize new item

Parameters:
int $a_ref_id reference id
int $a_obj_id object id
string $a_title title
string $a_description description

Reimplemented from ilObjectListGUI.

Definition at line 77 of file class.ilObjQuestionPoolListGUI.php.

        {
                parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
        }


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