ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
fixTestQuestionOrderingGaps.php File Reference

Go to the source code of this file.

Variables

 $task = 'show'
 GENERAL INFORMATION: More...
 
if(PHP_SAPI=='cli') else
 
 $PROCEED
 

Variable Documentation

◆ $PROCEED

$PROCEED
Initial value:
= "
To fix your database use the link below (!)
{$URL}
"

Definition at line 119 of file fixTestQuestionOrderingGaps.php.

◆ $task

$task = 'show'

GENERAL INFORMATION:

This script can be used to repair question ordering sequences of tests configured with a fixed question sequence.

Due to a bug in earlier ilias versions it might be possible that the question ordering got broken like described in the corresponding mantis report.

Mantis Report: https://ilias.de/mantis/view.php?id=20382

USAGE INSTRUCTIONS:

Save this script to your ilias root directory and either call it with the browser or by using the command line interface instead.

For using the web browser you need to login with an account having administrative privileges. http://<your.ilias.domain>/<ilias_path>/fixTestQuestionOrderingGaps.php

For using the command line interface change to the ilias root directory and call the script by using the following command. Make sure you made php fixTestQuestionOrderingGaps.php <adminUser> <adminPass> <iliasClientId>

The script will report a success message when it finishs its tasks.

If any php fatal error occurs due to exhausting any ressource restrictions, simply call the script again until it finishs with the success message.

Definition at line 36 of file fixTestQuestionOrderingGaps.php.

Referenced by ilChatroomObjectDefinition\buildTask(), ilSCComponentTaskFactory\getComponentTaskByForGroup(), ilChatroomObjectDefinition\getTaskClassName(), ilChatroomObjectDefinition\getTaskPath(), ilChatroomServerHandler\handleCommand(), ilChatroomObjectDefinition\hasTask(), ilChatroomObjectDefinition\loadTask(), ilSCTaskTableGUI\parse(), ilCronCheck\runTask(), ilCronCheck\start(), and ilSCTasks\updateFromComponentDefinition().

◆ else

if (PHP_SAPI=='cli') else
Initial value:
{
if( isset($_GET['fix']) )
{
$task = 'fix';
}
$URL = "<br />
<a href='http://{$_SERVER['HTTP_HOST']}{$_SERVER['SCRIPT_NAME']}?fix'>HTTP</a>
or
<a href='https://{$_SERVER['HTTP_HOST']}{$_SERVER['SCRIPT_NAME']}?fix'>HTTPS</a>
"
$_GET["client_id"]
$task
GENERAL INFORMATION:

Definition at line 107 of file fixTestQuestionOrderingGaps.php.