Documentation on availability plugins

Documentation on availability plugins

by Larry Herbison -
Number of replies: 2

I'm trying to write an availability plugin, but the documentation on the subject is pretty sparse. I think I've figured out how data gets to the javascript (but I'm not sure I have it right), but I don't know how to retrieve the data from the form and hand it off to JSON conversion. And documentation concerning YUI seems to assume a lot of background knowledge that I don't have and don't know where to look.

Does anyone know of a primer in this?

Average of ratings: -
In reply to Larry Herbison

Re: Documentation on availability plugins

by sam marshall -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Not to state the obvious but you did find this page right?

https://docs.moodle.org/dev/Availability_conditions

Maybe this is the 'sparse' one you're referring to but I thought it was pretty good. (Disclaimer: I wrote the original version of this page. ;) )

Unfortunately, this system was built back when Moodle used YUI, and it hasn't yet been updated - so the YUI stuff is probably unfamiliar to some developers. Ideally, at some point somebody would update the API (and documentation) to work with the current jQuery/AMD development pattern, but presumably nobody has had time yet...

--sam

Average of ratings: Useful (1)