I'm searching a function to get all courses on Moodle without categories.
I have never coded on Moodle and some indications would be very useful.
Here my problem :
$chelper = new coursecat_helper();
$chelper->set_show_courses(self::COURSECAT_SHOW_COURSES_EXPANDED)->In this way I see all the courses but they are sorted by the categories and if I filter for example by name it will be for each category and not for all the courses.
'recursive' => true,
'limit' => $CFG->frontpagecourselimit,
'sort' => array('sortorder' => 0),
'viewmoreurl' => new moodle_url('/course/index.php'),
'viewmoretext' => new lang_string('fulllistofcourses'),
This function exists or I need to create my sql request ?
Thanks for your help !!!