Public Member Functions

ilObjTestListGUI Class Reference

Class ilObjTestListGUI. More...

Inheritance diagram for ilObjTestListGUI:
Collaboration diagram for ilObjTestListGUI:

Public Member Functions

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

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

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


Member Function Documentation

ilObjTestListGUI::getCommandFrame ( a_cmd  ) 

Get command target frame.

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

Reimplemented from ilObjectListGUI.

Definition at line 91 of file class.ilObjTestListGUI.php.

References ilFrameTargetInfo::_getFrame().

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

                        default:
                }

                return $frame;
        }

Here is the call graph for this function:

ilObjTestListGUI::getCommandLink ( a_cmd  ) 

Get command link url.

Parameters:
int $a_ref_id reference id
string $a_cmd command

Reimplemented from ilObjectListGUI.

Definition at line 149 of file class.ilObjTestListGUI.php.

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

                return $cmd_link;
        }

ilObjTestListGUI::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 119 of file class.ilObjTestListGUI.php.

References $lng, ilObjTestAccess::_lookupCreationComplete(), and ilObjTestAccess::_lookupOnlineTestAccess().

        {
                global $lng, $ilUser;

                $props = array();

                include_once "./assessment/classes/class.ilObjTestAccess.php";
                if (!ilObjTestAccess::_lookupCreationComplete($this->obj_id))
                {
                        $props[] = array("alert" => true, "property" => $lng->txt("status"),
                                "value" => $lng->txt("tst_warning_test_not_complete"));
                }
                $onlineaccess = ilObjTestAccess::_lookupOnlineTestAccess($this->obj_id, $ilUser->id);
                if ($onlineaccess !== true)
                {
                        $props[] = array("alert" => true, "property" => $lng->txt("status"),
                                "value" => $onlineaccess);
                }

                return $props;
        }

Here is the call graph for this function:

ilObjTestListGUI::ilObjTestListGUI (  ) 

constructor

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

References ilObjectListGUI::ilObjectListGUI().

        {
                $this->ilObjectListGUI();
                $this->info_screen_enabled = true;
        }

Here is the call graph for this function:

ilObjTestListGUI::init (  ) 

initialisation

Reimplemented from ilObjectListGUI.

Definition at line 54 of file class.ilObjTestListGUI.php.

References ilObjTestAccess::_getCommands().

        {
                $this->delete_enabled = true;
                $this->cut_enabled = true;
                $this->subscribe_enabled = true;
                $this->link_enabled = true;
                $this->payment_enabled = true;
                $this->type = "tst";
                $this->gui_class_name = "ilobjtestgui";

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

Here is the call graph for this function:

ilObjTestListGUI::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 78 of file class.ilObjTestListGUI.php.

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


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