16 Commits

Author SHA1 Message Date
Ankit Agarwal
c288a3dbf8 MDL-34467 lti: Repalce all instances of get_context_instanc() with respective context_XXX::instance() 2012-07-27 13:27:13 +08:00
Eloy Lafuente (stronk7)
27e5ce8b9f Merge branch 'MDL-30328' of git://github.com/scriby/moodle 2011-11-21 02:22:40 +01:00
Chris Scribner
8f45215d1c MDL-20534 lti: B28 - Update attribution headers. 2011-11-17 16:29:50 -05:00
Charles Severance
ddcfda87d6 MDL-20534
I ran the software through the certification and caught a few nits:

The error return is 'failure' not 'error'
The spec says that it needs to return 'failure' for out of range or non-numeric grades
The result score needs a language tag, hard-coded as 'en'
Setting a grade multiplied by 100 but reading the grade did not divide by 100
All those are now fixed with this patch as well as this bit of cruft:

I removed the "extension service url" as it is not implemented in service.php

Feel free to review and adjust - probably the one place you might want to refactor
is that I put code to catch out-of-range-and non-numeric in
lti_parse_grade_replace_message and threw an exception on error and then caught
it in service.php and sent back the 'failure' message. Feel free to refactor a
bit if you see this done in a cleaner manner.
2011-11-17 10:34:23 -05:00
Eloy Lafuente (stronk7)
fabd4fcf53 MDL-20534 lti: A4, add some todos towards unified Oauth 2011-11-06 22:05:11 -05:00
Eloy Lafuente (stronk7)
ea04a9f989 MDL-20534 lti: A3, coding style + some scope, constructors 2011-11-06 22:02:26 -05:00
Chris Scribner
e27cb316aa MDL-20534 lti: A3, whitespace fixes (Changes by stronk7) 2011-11-06 22:00:40 -05:00
Chris Scribner
61eb12d4df MDL-20534 lti: A3, copyright and DOS lf fixed 2011-11-06 21:51:06 -05:00
Chris Scribner
a0ba4ec675 Add unsupported service support. 2011-11-06 20:42:03 -05:00
Chris Scribner
020eea1be8 Updating web service verification method to work for LTI messages that don't send a source id.
Adding extension so other plugins can handle LTI web service calls.
2011-11-06 20:41:59 -05:00
Chris Scribner
60bd82f61d Tested grade reading and deleting. Fixed bugs. 2011-11-06 20:41:56 -05:00
Chris Scribner
f4f711d79b Updating LTI submission viewer 2011-11-06 20:41:54 -05:00
Chris Scribner
b69dc42951 Fixing a couple issues with grade receipt 2011-11-06 20:41:51 -05:00
Chris Scribner
996b0fd961 Updates to lti plugin & progress on instructor management of course tools. 2011-11-06 20:41:50 -05:00
Chris Scribner
b9b2e7bbf8 Adding oauth body code (from Chuck), implemented outcome services (only replaceResult tested) 2011-11-06 20:41:49 -05:00
Chris Scribner
73300339b0 Renaming plugin to lti from blti 2011-11-06 20:41:46 -05:00