recentlyaccessedcourses block

recentlyaccessedcourses block

by Yash Tambe -
Number of replies: 1

How recent courses are fetched in recentlyaccessedcourses block. I have checked all the files from the block, but not able to found how courses are fetched..

Can someone help me?

Average of ratings: -
In reply to Yash Tambe

Re: recentlyaccessedcourses block

by Jonathan Garcia -
Hi Yash,

That information is being retrieved using a web service. The JS code shows a function called getLastAccessedCourses, this function makes a request to a function called
get_recent_courses. You can find that function in: \core_course_external::get_recent_courses. File: course/externallib.php:4073
Moodle 3.7.3
Hope this helps.