From: pkiddie <pk...@us...> - 2005-08-04 12:10:28
|
Update of /cvsroot/stack/stack-1-0/scripts/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22588/scripts/install Modified Files: Tag: development_xmlrqp stacktest.php Log Message: STACK now writes out its question and quiz schemas. All functions are commented. Example schemas and diagrams included. One time creation of schemas is now located in 'stackTest.php' Index: stacktest.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/install/stacktest.php,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -C2 -d -r1.5.2.1 -r1.5.2.2 *** stacktest.php 28 Jul 2005 13:18:27 -0000 1.5.2.1 --- stacktest.php 4 Aug 2005 12:09:43 -0000 1.5.2.2 *************** *** 130,172 **** echo "<br />5.1 Creation of question schema"; ! $strout = stack_schema_write_question($stack_root); ! if ('' != $strout) { ! echo "<br /><font color='green'>Question metadata written to $strout.</font>"; } else { ! echo "<br /><font color='red'>No output from the CAS conversion.</font>"; } echo "<br />5.2 Creation of quiz schema"; - $strout = ''; - - if ('' != $strout) { - echo "<br /><font color='green'>Question metadata written to $strout.</font>"; - } else { - echo "<br /><font color='red'>No output from the CAS conversion.</font>"; - } - - echo "<br />5.3 Creation of question metadata"; - - //Write the question metadata to the root of the webserver - //$strout = stack_schema_write_metadata($stack_root); - $strout = stack_schema_write_question_metadata($stack_root); - - if ('' != $strout) { - echo "<br /><font color='green'>Question metadata written to $strout.</font>"; - } else { - echo "<br /><font color='red'>No output from the CAS conversion.</font>"; - } - - echo "<br />5.4 Creation of quiz metadata"; ! $strout = stack_schema_write_quiz_metadata($stack_root); ! if ('' != $strout) { ! echo "<br /><font color='green'>Question metadata written to $strout.</font>"; } else { ! echo "<br /><font color='red'>No output from the CAS conversion.</font>"; } - ?> --- 130,150 ---- echo "<br />5.1 Creation of question schema"; ! $success = stack_xml_create_question_schema("{$stack_root}/schemas"); ! if ($success) { ! echo "<br /><font color='green'>Question metadata written out successfully</font>"; } else { ! echo "<br /><font color='red'>Question metadata not written out - check you have permissions to the schemas directory</font>"; } echo "<br />5.2 Creation of quiz schema"; ! $strout = stack_xml_create_quiz_schema("{$stack_root}/schemas"); ! if ($success) { ! echo "<br /><font color='green'>Quiz metadata written out successfully</font>"; } else { ! echo "<br /><font color='red'>Quiz metadata not written out - check you have permissions to the schemas directory</font>"; } ?> |