[system] / trunk / wwmoodle / wwassignment4 / moodle / mod / wwassignment / test.php Repository:
ViewVC logotype

View of /trunk/wwmoodle/wwassignment4/moodle/mod/wwassignment/test.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5674 - (download) (as text) (annotate)
Thu May 22 14:36:25 2008 UTC (11 years, 9 months ago) by gage
File size: 839 byte(s)
wwassignment4 is a version of "bridge1" which is compatible with moodle 1.9 and webwork 2.4.x

It adds a new assignment like activity called wwassignment.

It works but does not yet have much testing and has the potential that
the webwork and moodle databases might get out of sync.

The structure is similar enough that it might eventually be a good idea
to implement it as a new assignment type.

Bridge2 adds a question type to the moodle quiz.  It is requires a different
set of software

    1 <?php
    2  require_once("/Library/WebServer/Documents/moodle//config.php");
    3 error_log("begin test");
    4 
    5 global $COURSE;
    6 $COURSE->id=7;
    7 require_once("lib.php");
    8 require_once("locallib.php");
    9 error_log("test update_grades for assignment44 and user 41 mabernat");
   10 $wwassignment = get_record('wwassignment','id',44); //get a sample assignment id=44
   11 $wwassignment->cmidnumber =1;  //How would we usually get this?
   12 wwassignment_update_grades($wwassignment, 0);  //
   13 error_log("end test update_grades");
   14 // error_log("test ww_get_user_grades course 44 user 41");
   15 // $wwassignment = get_record('wwassignment','id',44); //get a sample assignment id=44
   16 // $userid =0;   //user mabernat 41   user gage 2  user richman 20
   17 // wwassignment_get_user_grades($wwassignment,$userid);
   18 // error_log("end test ww_get_user_grades");
   19 error_log("test completed");
   20 
   21 
   22 ?>

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9