Public Member Functions

ilObjSurveyQuestionPoolListGUI Class Reference

Class ilObjSurveyQuestionPoolListGUI. More...

Inheritance diagram for ilObjSurveyQuestionPoolListGUI:
Collaboration diagram for ilObjSurveyQuestionPoolListGUI:

Public Member Functions

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

Author:
Helmut Schottmueller <helmut.schottmueller@mac.com>
Alex Killing <alex.killing@gmx.de>
Id:
class.ilObjSurveyQuestionPoolListGUI.php 9743 2006-02-04 21:06:18Z hschottm

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


Member Function Documentation

ilObjSurveyQuestionPoolListGUI::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.ilObjSurveyQuestionPoolListGUI.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:

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

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

                return $cmd_link;
        }

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

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

        {
                global $lng, $ilUser;

                $props = array();

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

ilObjSurveyQuestionPoolListGUI::ilObjSurveyQuestionPoolListGUI (  ) 

constructor

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

References ilObjectListGUI::ilObjectListGUI().

        {
                $this->ilObjectListGUI();
        }

Here is the call graph for this function:

ilObjSurveyQuestionPoolListGUI::init (  ) 

initialisation

Reimplemented from ilObjectListGUI.

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

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

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

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

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


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