General developer forum

Moodle Source code documetation

 
Picture of Peshali Randika
Moodle Source code documetation
 

I want to find the function which return my courses ( Enrolled courses of a particular user ). Is there any documentation for the moodle source code? 


Any help, Thanks !


peshali.

 
Average of ratings: -
Picture of Patrick Liersch
Re: Moodle Source code documetation
 

There a lot of Moodle Webservices which returned Information about courses.

Or a write a own WS Plugin, to become your Information.

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

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


 
Average of ratings: -
Picture of Peshali Randika
Re: Moodle Source code documetation
 

 I will go through this.Thank you very much Patrick smile

 
Average of ratings: -
Davo
Re: Moodle Source code documetation
Core developersParticularly helpful MoodlersPlugin developers

enrol_get_my_courses()

Unfortunately there are 1000s of functions in Moodle and writing external documentation for all of them is always going to be a huge job. Searching the code using a reasonable IDE is really going to be your best method (in this case, a search for get_my_courses would have found it). Most (or at least many) of these functions have PHPDoc documentation inline in the code (where it is less likely to get out of date, than some sort of external documentation project).


 
Average of ratings: -
Picture of Peshali Randika
Re: Moodle Source code documetation
 

got it Davo !  Thank you very much for the support smile

 
Average of ratings: -