Questions tagged as 'moodle-api'

3
answers

I can not manually enroll students with a Moodle Script

I am trying to enroll students manually in a Moodle course using a Script but I can not. I am using the function role_assign of Moodle but it does not work for me. The code I am using is the following: //obtiene...
asked by 29.09.2016 / 10:13
1
answer

Upload files and folders in Moodle

I need to upload files and folders within a Moodle course, these files come from a zip. I have been searching and I have found how to upload files, I have tried it and I am able to upload files correctly in the database and in the file repositor...
asked by 08.09.2016 / 10:06
1
answer

Problem when inserting sections in a Moodle course

I am trying to create sections within a Moodle course using a Script but I can not. I am using the function course_create_sections_if_missing of Moodle but I can not show that the sections on the web and in the database are created....
asked by 07.10.2016 / 10:30
1
answer

Restrictions on access to folders in Moodle

I am trying to create access restrictions to a folder within a Moodle course using a Script . This restriction must be for groups of users and if you do not belong to that group, you can not see the existing resources in that folder. The o...
asked by 10.10.2016 / 16:32
0
answers

A login for two Moodle platforms

I have two Moodle platforms (3.4) installed on the same server in one there are courses for "producers" and in another for "students", I need that depending on the user that loguee (producer or student) redirects it to the platform that correspo...
asked by 31.10.2018 / 00:19