General developer forum

 
 
Picture of Sergio Buendia
How does moodle loads the activities and resourses for each section of a course ?
 

Hi everyone, i would like to know,  how does moodle loads the activities and resourses for each section of a course ?, please give me tables names and all the info involved in that process, i apreciate your help.

 
Average of ratings: -
Picture of Russell Smith
Re: How does moodle loads the activities and resourses for each section of a course ?
Group Developers

Hi,

I'd suggest starting with;

{course_modules}  likely mdl_course_modules

and review course/view.php.  Investigating those two should get you started.

 

Regards

Russell

 

 

 

 
Average of ratings: -
Picture of Sergio Buendia
Re: How does moodle loads the activities and resourses for each section of a course ?
 

I've been reading view.php for a while, but i haven't beeen able to see where exactly it queries the activities and resources asociated to each section

 
Average of ratings: -
Picture of Russell Smith
Re: How does moodle loads the activities and resourses for each section of a course ?
Group Developers

Down the bottom it does print section stuff.

You then look in format / your_format / format.php

That will call a renderer, render.php in the same folder as above.

Those are the next steps.

Regards

Russell

 

 

 

 

 

 

 

 

 

 

 

 
Average of ratings: -