コード例 #1
0
// Must get tA_id for the lesson to be tested.
require_once "../test_lesson_include.php";
// $log_file = fopen('/var/www/html/jimfuqua/tutorW/logs/test_GearsRotationDirection.log', 'w');
// $v = var_export($_SESSION, true);
// $string = __LINE__.' $_SESSION = '.$v."\n\n";
// fwrite($log_file, $string);
$target_assignment_name = 'gA_GearsRotationDirection';
$class_instance = new AssignmentsClass();
// Get target lesson if it exists.
$result = $class_instance->getSpecificStudentAssignmentFromDbAsArray($_SESSION['tA_S_ID'], $target_assignment_name, $_SESSION['tA_StartRec']);
$_SESSION['tA_id'] = $result['tA_id'];
// $v = var_export($_SESSION['tA_id'], true);
// $string = __LINE__.' $_SESSION["tA_id"] = '.$v."\n\n";
// fwrite($log_file, $string);
// Remove the lesson to be tested.
// Add it back with a 2 second post-date.
//
$class_instance->delRowsByStudentIdAndAssignmentName($_SESSION['tA_S_ID'], 'gA_GearsRotationDirection');
$_SESSION['tG_AssignmentName'] = $target_assignment_name;
$_SESSION['tA_PostDateIncrement'] = 2;
$_SESSION['tA_Post_date'] = round(microtime(true), 3, PHP_ROUND_HALF_EVEN) + $_SESSION['tA_PostDateIncrement'];
// $string = __LINE__.' $_SESSION["tA_Post_date"] = '.$_SESSION['tA_Post_date']."\n\n";
// fwrite($log_file, $string);
// $s = ' round(microtime(true), 3, PHP_ROUND_HALF_EVEN) = ';
// $string =  __LINE__. $s . round(microtime(true), 3, PHP_ROUND_HALF_EVEN)."\n\n";
// fwrite($log_file, $string);
$result = $class_instance->insertRecord($_SESSION);
// insert the target lesson and get back the tA_id.
// now get back the tA_id for the target lesson.  Get by assignment_name
// $result = $class_instance->insertRecord($var_array);
require 'GearsRotationDirection.php';
コード例 #2
0
 *
 * @link http://pear.php.net/package/PackageName
 *
 * @see NetOther, Net_Sample::Net_Sample()
 *
 * @since File available since Release 1.2.0
 **/
error_reporting(E_ALL);
ini_set('display_errors', 1);
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
session_regenerate_id(true);
session_destroy();
session_start();
$_SESSION['session_id'] = session_id();
// Must get tA_id for the lesson to be tested.
require_once "../test_lesson_include.php";
$target_assignment_name = 'gA_typing_lessons_cl';
$class_instance = new AssignmentsClass();
// Get target lesson if it exists.
$result = $class_instance->getSpecificStudentAssignmentFromDbAsArray($_SESSION['tA_S_ID'], $target_assignment_name, $_SESSION['tA_StartRec']);
$_SESSION['tA_id'] = $result['tA_id'];
// Remove the lesson to be tested.
// Add it back with a 2 second post-date.
$class_instance->delRowsByStudentIdAndAssignmentName($_SESSION['tA_S_ID'], 'gA_typing_lessons_cl');
$_SESSION['tG_AssignmentName'] = $target_assignment_name;
$_SESSION['tA_PostDateIncrement'] = 2;
$_SESSION['tA_Post_date'] = round(microtime(true), 3, PHP_ROUND_HALF_EVEN) + $_SESSION['tA_PostDateIncrement'];
$result = $class_instance->insertRecord($_SESSION);
require 'typing_lessons_cl.php';
コード例 #3
0
// Must get tA_id for the lesson to be tested.
require_once "../test_lesson_include.php";
// $log_file = fopen('/var/www/html/jimfuqua/tutor/logs/test_one_digit_addition_vertical_clues.log', 'w');
// $v = var_export($_SESSION, true);
// $string = __LINE__.' $_SESSION = '.$v."\n\n";
// fwrite($log_file, $string);
$target_assignment_name = 'gA_one_digit_addition_vertical_clues';
$class_instance = new AssignmentsClass();
// Get target lesson if it exists.
$result = $class_instance->getSpecificStudentAssignmentFromDbAsArray($_SESSION['tA_S_ID'], $target_assignment_name, $_SESSION['tA_StartRec']);
$_SESSION['tA_id'] = $result['tA_id'];
// $v = var_export($_SESSION['tA_id'], true);
// $string = __LINE__.' $_SESSION["tA_id"] = '.$v."\n\n";
// fwrite($log_file, $string);
// Remove the lesson to be tested.
// Add it back with a 2 second post-date.
//
$class_instance->delRowsByStudentIdAndAssignmentName($_SESSION['tA_S_ID'], 'gA_one_digit_addition_vertical_clues');
$_SESSION['tG_AssignmentName'] = $target_assignment_name;
$_SESSION['tA_PostDateIncrement'] = 2;
$_SESSION['tA_Post_date'] = round(microtime(true), 3, PHP_ROUND_HALF_EVEN) + $_SESSION['tA_PostDateIncrement'];
// $string = __LINE__.' $_SESSION["tA_Post_date"] = '.$_SESSION['tA_Post_date']."\n\n";
// fwrite($log_file, $string);
// $s = ' round(microtime(true), 3, PHP_ROUND_HALF_EVEN) = ';
// $string =  __LINE__. $s . round(microtime(true), 3, PHP_ROUND_HALF_EVEN)."\n\n";
// fwrite($log_file, $string);
$result = $class_instance->insertRecord($_SESSION);
// insert the target lesson and get back the tA_id.
// now get back the tA_id for the target lesson.  Get by assignment_name
// $result = $class_instance->insertRecord($var_array);
require 'one_digit_addition_vertical_clues.php';
コード例 #4
0
}
$_SESSION['session_id'] = session_id();
// Must get tA_id for the lesson to be tested.
require_once "../test_lesson_include.php";
$target_assignment_name = 'gA_left_right_blocks';
$class_instance = new AssignmentsClass();
// Get target lesson if it exists.
$result = $class_instance->getSpecificStudentAssignmentFromDbAsArray($_SESSION['tA_S_ID'], $target_assignment_name, $_SESSION['tA_StartRec']);
$_SESSION['tA_id'] = $result['tA_id'];
// $v = var_export($_SESSION['tA_id'], true);
// $string = __LINE__.' $_SESSION["tA_id"] = '.$v."\n\n";
// fwrite($log_file, $string);
//echo (90."<br/>");
// Remove the lesson to be tested.
// Add it back with a 2 second post-date.
//
$class_instance->delRowsByStudentIdAndAssignmentName($_SESSION['tA_S_ID'], 'gA_left_right_blocks');
$_SESSION['tG_AssignmentName'] = $target_assignment_name;
$_SESSION['tA_PostDateIncrement'] = 2;
$_SESSION['tA_Post_date'] = round(microtime(true), 3, PHP_ROUND_HALF_EVEN) + $_SESSION['tA_PostDateIncrement'];
// $string = __LINE__.' $_SESSION["tA_Post_date"] = '.$_SESSION['tA_Post_date']."\n\n";
// fwrite($log_file, $string);
// $s = ' round(microtime(true), 3, PHP_ROUND_HALF_EVEN) = ';
// $string =  __LINE__. $s . round(microtime(true), 3, PHP_ROUND_HALF_EVEN)."\n\n";
// fwrite($log_file, $string);
$result = $class_instance->insertRecord($_SESSION);
// insert the target lesson and get back the tA_id.
// now get back the tA_id for the target lesson.  Get by assignment_name
// $result = $class_instance->insertRecord($var_array);
require 'left_right_blocks.php';
//echo ("114"."<br/>");
コード例 #5
0
ファイル: test_spelling.php プロジェクト: jimfuqua/tutorW
 * @version SVN: $Id$
 *
 * @link http://pear.php.net/package/PackageName
 * @see NetOther, Net_Sample::Net_Sample()
 * @since File available since Release 1.2.0
 **/
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
session_regenerate_id(true);
session_destroy();
session_start();
$_SESSION['tA_StartRec'] = 2;
//$_SESSION['session_path'] = session_save_path();
$_SESSION['session_id'] = session_id();
// Must get tA_id for the lesson to be tested.
require_once "../test_lesson_include.php";
$target_assignment_name = 'gA_spelling';
$class_instance = new AssignmentsClass();
// Get target lesson if it exists.
$result = $class_instance->getSpecificStudentAssignmentFromDbAsArray($_SESSION['tA_S_ID'], $target_assignment_name, $_SESSION['tA_StartRec']);
$_SESSION['tA_id'] = $result['tA_id'];
// Remove the lesson to be tested.
// Add it back with a 2 second post-date.
//
$class_instance->delRowsByStudentIdAndAssignmentName($_SESSION['tA_S_ID'], 'gA_spelling');
$_SESSION['tG_AssignmentName'] = $target_assignment_name;
$_SESSION['tA_PostDateIncrement'] = 2;
$_SESSION['tA_Post_date'] = round(microtime(true), 3, PHP_ROUND_HALF_EVEN) + $_SESSION['tA_PostDateIncrement'];
$result = $class_instance->insertRecord($_SESSION);
require 'spelling.php';