From: Simon H. <sim...@us...> - 2010-12-09 14:25:10
|
Update of /cvsroot/stack/stack-dev/lib/ui In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv30562/lib/ui Modified Files: Tag: item_state_separation DisplayItem.php Log Message: Intermediate debugging Index: DisplayItem.php =================================================================== RCS file: /cvsroot/stack/stack-dev/lib/ui/DisplayItem.php,v retrieving revision 1.91.2.4.2.7 retrieving revision 1.91.2.4.2.8 diff -C2 -d -r1.91.2.4.2.7 -r1.91.2.4.2.8 *** DisplayItem.php 1 Dec 2010 18:21:32 -0000 1.91.2.4.2.7 --- DisplayItem.php 9 Dec 2010 14:25:00 -0000 1.91.2.4.2.8 *************** *** 214,218 **** $this->itemOpts = new ItemOption(); // but will load the options stored with the question - check line a little below //$this->itemOpts = NULL; ! //echo "jellyfish:<pre>";var_dump(ItemOption::$options);//$this->itemOpts); $this->item = new InstantiatedItem($questionId, $this->itemOpts, $this->seed, $userId); --- 214,218 ---- $this->itemOpts = new ItemOption(); // but will load the options stored with the question - check line a little below //$this->itemOpts = NULL; ! //echo "jellyfish:<pre>".$this->itemOpts->debug(); $this->item = new InstantiatedItem($questionId, $this->itemOpts, $this->seed, $userId); *************** *** 226,232 **** } ! if($this->itemOps == NULL) { //use the item options stored with the question. $this->itemOpts = $this->item->itemOptions; } --- 226,233 ---- } ! if($this->itemOpts == NULL) { //use the item options stored with the question. + echo "using the item options stored with the question."; $this->itemOpts = $this->item->itemOptions; } *************** *** 313,316 **** --- 314,318 ---- { global $config; + //check question is marked as valid if($this->item->valid != true) *************** *** 324,327 **** --- 326,330 ---- else { + //echo "home time 1".$this->itemOpts->debug(); if($posted == NULL) { *************** *** 353,356 **** --- 356,360 ---- else // posted != NULL { + // echo "home time 2".$this->itemOpts->debug();// good //check if worked solution has been requested $wsRequest = $this->updateWorkedSolution($posted); *************** *** 366,370 **** // update student answers, add attempt, update answerboxes. $this->updateSAnswer($posted, $processRequest); ! $xhtml .= $this->cachedQuestionStem; --- 370,374 ---- // update student answers, add attempt, update answerboxes. $this->updateSAnswer($posted, $processRequest); ! $xhtml .= $this->cachedQuestionStem; *************** *** 743,747 **** //for example the matrix input type needs to join multiple answers into one maxima command. ! //echo "ipad:<pre>";var_dump($this->itemOpts); //echo "<pre>";print_r($posted); --- 747,751 ---- //for example the matrix input type needs to join multiple answers into one maxima command. ! //echo "ipad:<pre>".$this->itemOpts->debug();;//var_dump($this->itemOpts); //echo "<pre>";print_r($posted); |