Exemplo n.º 1
0
     include 'lib/FormsLib.php';
     include 'lib/EnumLib.php';
     $formslib = new FormsLib();
     $returnStr = $formslib->cloneExamInstance($_REQUEST['id'], $_REQUEST['ownerID'], $_REQUEST['user']);
     break;
 case 'listquestions':
     include 'lib/FormsLib.php';
     include 'lib/EnumLib.php';
     $enumLib = new EnumLib();
     $returnStr = $enumLib->getQuesionsForMarkingSheet($_REQUEST['id']);
     break;
 case 'listquestionsbysearchstr':
     include 'lib/FormsLib.php';
     include 'lib/EnumLib.php';
     $enumLib = new EnumLib();
     $returnStr = $enumLib->getQuestionsBySearchStr($_REQUEST['searchstr']);
     break;
 case 'deleteassessmentitem':
     include 'lib/FormsLib.php';
     include 'lib/EnumLib.php';
     $formslib = new FormsLib();
     $returnStr = $formslib->removeQuestionFromInstance($_REQUEST['id']);
     break;
 case 'getmarkingsheetdefinition':
     include 'lib/FormsLib.php';
     include 'lib/EnumLib.php';
     $enumLib = new EnumLib();
     $returnStr = $enumLib->getExamInstanceQuestionsByID($_REQUEST['id']);
     break;
     /////////////////////////
     //Criteria types management