General developer forum

function to get enrolment method start and end date

 
Picture of augusto canessa
function to get enrolment method start and end date
 

At the moment I am getting the start and end date for an enrolment period using a custom SQL based function.

Is the a native function that would return these dates, using as parameters like course id / enrolment method or enrolment id?

I have moodle 3.4

Thank you!

 
Average of ratings: -
Picture of Austin Powell
Re: function to get enrolment method start and end date
 
Did you ever find an existing function? I'm looking for the same thing.
 
Average of ratings: -