Data structures for metacourses

Data structures for metacourses

by Aharon Ben-Shemer -
Number of replies: 4

If I want to dynamically create a metacourse for some courses, I am confident that I can create the (meta)course in a PHP script but I am unsure what data structures are used to link the child courses to it.

Does anyone have a pointer to a discussion of the underlying tables? Any sample code?

Thanks so much.

Aharon

Average of ratings: -
In reply to Aharon Ben-Shemer

Re: Data structures for metacourses

by Aharon Ben-Shemer -

Anyone out there with a pointer?

In reply to Aharon Ben-Shemer

Re: Data structures for metacourses

by Aharon Ben-Shemer -

Thanks!

I'll see if I can invoke that plugin's code from what I am trying to do.

A

In reply to Aharon Ben-Shemer

Re: Data structures for metacourses

by Fred Woolard -

Aharon,
I wouldn't suggest that approach. trying to invoke that plugin's code, as that chunk of code is buried down a few levels.

Rather, I meant to illustrate the steps: establish the two courses, parent and child, get an instance of the metacourse enrol plugin, and associate the child to the parent using that instance of the plugin.

Regards,
FW