Class ilObjQuestionPoolListGUI. More...
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. |
Class ilObjQuestionPoolListGUI.
Definition at line 39 of file class.ilObjQuestionPoolListGUI.php.
ilObjQuestionPoolListGUI::getCommandFrame | ( | $ | a_cmd | ) |
Get command target frame.
string | $a_cmd command |
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; }
ilObjQuestionPoolListGUI::getCommandLink | ( | $ | a_cmd | ) |
Get command link url.
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&ref_id=".$this->ref_id."&cmd=$a_cmd"; return $cmd_link; }
ilObjQuestionPoolListGUI::getProperties | ( | ) |
Get item properties.
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; }
ilObjQuestionPoolListGUI::ilObjQuestionPoolListGUI | ( | ) |
constructor
Definition at line 45 of file class.ilObjQuestionPoolListGUI.php.
References ilObjectListGUI::ilObjectListGUI().
{ $this->ilObjectListGUI(); }
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(); }
ilObjQuestionPoolListGUI::initItem | ( | $ | a_ref_id, | |
$ | a_obj_id, | |||
$ | a_title = "" , |
|||
$ | a_description = "" | |||
) |
inititialize new item
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); }