Update of /cvsroot/stack/stack-1-0/scripts/rqp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27864/scripts/rqp
Modified Files:
RQPv1p0Server.php stackRQP.php
Log Message:
Implementation of render operation in presenting and grading questions
Index: RQPv1p0Server.php
===================================================================
RCS file: /cvsroot/stack/stack-1-0/scripts/rqp/RQPv1p0Server.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** RQPv1p0Server.php 5 Sep 2005 08:52:21 -0000 1.7
--- RQPv1p0Server.php 8 Sep 2005 22:07:25 -0000 1.8
***************
*** 253,257 ****
$itemProperties = array('template' => TRUE ,
'adaptive' => TRUE ,
! 'timeDependant' => FALSE ,
'canComputerScore' => TRUE ,
'maxScore' => 0,
--- 253,257 ----
$itemProperties = array('template' => TRUE ,
'adaptive' => TRUE ,
! 'timeDependent' => FALSE ,
'canComputerScore' => TRUE ,
[...1145 lines suppressed...]
- $persistentData = base64_serialize($persistence);
-
-
-
- // Fix return types where required
-
- // (works around a bug in early versions of PHP 5)
-
- $templateVars = soap_encode_array($templateVars, 'templateVars', 'variable', RQP_URI_NAMESPACE);
-
- $outcomeVars = soap_encode_array($outcomeVars, 'outcomeVars', 'variable', RQP_URI_NAMESPACE);
-
- $output = soap_encode_array($output, 'output', 'output', RQP_URI_NAMESPACE);*/
-
- //return new nbSOAPFault("unimplemented", "The RQP_Renderservice has not been implemented yet", "");
- // Fill in web method fuctionality here.
- // return a RenderDType
}
--- 714,717 ----
Index: stackRQP.php
===================================================================
RCS file: /cvsroot/stack/stack-1-0/scripts/rqp/stackRQP.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** stackRQP.php 5 Sep 2005 08:52:21 -0000 1.3
--- stackRQP.php 8 Sep 2005 22:07:25 -0000 1.4
***************
*** 41,44 ****
--- 41,55 ----
}
+ function stack_get_seed() {
+ if (array_key_exists('seed',$_POST)) {
+ $seed=$_POST['seed'];
+ } else {
+ // HACK: this should involve the concept of a user!
+ $seed = time();
+ }
+
+ return $seed;
+ }
+
/**
* Converts a string of XML to a STACK question instance
***************
*** 121,124 ****
--- 132,152 ----
}
}
+
+ /**
+ *
+ *
+ *
+ */
+ function stack_rqp_keyval_field_get($keyvalArray, $key)
+ {
+ foreach ($keyvalArray as $field) {
+ if ($field['key'] == $key)
+ {
+ return $field['val'];
+ }
+ }
+
+ return false;
+ }
/**
|