16include_once 
"Services/Object/classes/class.ilObjectListGUI.php";
 
   17include_once 
"./Modules/Test/classes/inc.AssessmentConstants.php";
 
   27        public function __construct($a_context = self::CONTEXT_REPOSITORY)
 
   29                parent::__construct($a_context);
 
   30                $this->info_screen_enabled = 
true;
 
   38                $this->static_link_enabled = 
true;
 
   39                $this->delete_enabled = 
true;
 
   40                $this->cut_enabled = 
true;
 
   41                $this->copy_enabled = 
true;
 
   42                $this->subscribe_enabled = 
true;
 
   43                $this->link_enabled = 
true;
 
   45                $this->gui_class_name = 
"ilobjtestgui";
 
   48                include_once 
"./Modules/Test/classes/class.ilObjTestAccess.php";
 
   61        function initItem($a_ref_id, $a_obj_id, $a_title = 
"", $a_description = 
"")
 
   63                parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
 
   82                                include_once 
"./Services/UICore/classes/class.ilFrameTargetInfo.php";
 
  107                include_once 
"./Modules/Test/classes/class.ilObjTestAccess.php";
 
  111                        $props[] = array(
"alert" => 
true, 
"property" => 
$lng->txt(
"status"),
 
  112                                "value" => 
$lng->txt(
"offline"));
 
  118                if ($onlineaccess !== 
true)
 
  120                        $props[] = array(
"alert" => 
true, 
"property" => 
$lng->txt(
"status"),
 
  121                                "value" => $onlineaccess);
 
  139                $a_cmd = explode(
'::', $a_cmd);
 
  141                if( count($a_cmd) == 2 )
 
  143                        $cmd_link = 
$ilCtrl->getLinkTargetByClass(array(
'ilRepositoryGUI', 
'ilObjTestGUI', $a_cmd[0]), $a_cmd[1]);
 
  147                        $cmd_link = 
$ilCtrl->getLinkTargetByClass(
'ilObjTestGUI', $a_cmd[0]);
 
  150                $params = array_merge(array(
'ref_id' => $this->ref_id), $this->command_link_params);
 
  152                foreach(
$params as $param => $value)
 
  162                $commands = parent::getCommands();
 
  179                        require_once 
'Modules/Test/classes/class.ilObjTestAccess.php';
 
  192                require_once 
'Modules/Course/classes/Objectives/class.ilLOSettings.php';
 
  198                foreach($commands as $key => $command)
 
  200                        if($command[
'cmd'] == 
'userResultsGateway')
 
  202                                unset($commands[$key]);
 
  232                $this->command_link_params = $a_param;
 
  238                include_once 
'./Modules/Course/classes/Objectives/class.ilLOSettings.php';
 
  241                $cmd_link = $a_default_link;
 
  248                        $this->ctrl->setParameterByClass(
"ilrepositorygui", 
'ref_id', 
$ref_id);
 
  249                        $this->ctrl->setParameterByClass(
"ilrepositorygui", 
'tid', $this->ref_id);
 
  250                        $cmd_link = $this->ctrl->getLinkTargetByClass(
"ilrepositorygui", 
'redirectLocToTest');
 
  251                        $this->ctrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", $this->ref_id);
 
  252                        $this->ctrl->clearParametersByClass(
'ilrepositorygui');
 
  254                return parent::modifyTitleLink($cmd_link);
 
An exception for terminatinating execution or to throw for unit testing.
static isObjectiveTest($a_trst_ref_id)
Check if test ref_id is used in an objective course.
static _lookupOnlineTestAccess($a_test_id, $a_user_id)
Checks if a user is allowd to run an online exam.
static _getCommands()
get commands
static visibleUserResultExists($testObjId, $userId)
static _isOnline($a_obj_id)
returns the objects's ONline status
addCommandLinkParameter($a_param)
add command link parameters
__construct($a_context=self::CONTEXT_REPOSITORY)
constructor
removeUserResultsCommand($commands)
getCommandFrame($a_cmd)
Get command target frame.
getProperties()
Get item properties.
modifyTitleLink($a_default_link)
getCommandLink($a_cmd)
Get command link url.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
handleUserResultsCommand($commands)
createDefaultCommand($a_command)
overwritten from base class for course objectives
getCommands()
get all current commands for a specific ref id (in the permission context of the current user)
static _getAllReferences($a_id)
get all reference ids of object
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string