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. | |
Class ilObjTestListGUI.
Definition at line 38 of file class.ilObjTestListGUI.php.
| ilObjTestListGUI::getCommandFrame | ( | $ | a_cmd | ) |
Get command target frame.
| string | $a_cmd command |
Reimplemented from ilObjectListGUI.
Definition at line 89 of file class.ilObjTestListGUI.php.
References ilFrameTargetInfo::_getFrame().
{
switch($a_cmd)
{
case "":
case "run":
case "eval_a":
case "eval_stat":
$frame = ilFrameTargetInfo::_getFrame("MainContent");
break;
default:
}
return $frame;
}
Here is the call graph for this function:| ilObjTestListGUI::getCommandLink | ( | $ | a_cmd | ) |
Get command link url.
| int | $a_ref_id reference id | |
| string | $a_cmd command |
Reimplemented from ilObjectListGUI.
Definition at line 146 of file class.ilObjTestListGUI.php.
{
// separate method for this line
$cmd_link = "assessment/test.php?ref_id=".$this->ref_id."&cmd=$a_cmd";
return $cmd_link;
}
| ilObjTestListGUI::getProperties | ( | ) |
Get item properties.
Definition at line 116 of file class.ilObjTestListGUI.php.
References $ilUser, $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 44 of file class.ilObjTestListGUI.php.
References ilObjectListGUI::ilObjectListGUI().
{
$this->ilObjectListGUI();
}
Here is the call graph for this function:| ilObjTestListGUI::init | ( | ) |
initialisation
Reimplemented from ilObjectListGUI.
Definition at line 52 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('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
| 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 76 of file class.ilObjTestListGUI.php.
{
parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
}
1.7.1