sofhouse / moodle-enrol_coursepilot

Plugin that allows managing Courses and Enrollments using Web services
GNU General Public License v3.0
0 stars 0 forks source link

enrol_coursepilot Create course from template #4

Open dvdcastro opened 1 month ago

dvdcastro commented 1 month ago

Story

As a web service consumer I can create a course into a formations category by copying a course from the templates category using a web service function

AC

  1. Exists new web service function, enrol_coursepilot_create_course with the following parametes
    1. templatecourseid: INT, Mandatory, Reference to a course that lives under one of the template course categories
    2. targetformationscatid: INT, Mandatory, Reference to the target category id where the course will be created. Has to be a valid formations category
    3. coursename: ALPHANUMEXT, Mandatory, Course name
    4. courseshortname: ALPHANUMEXT, Mandatory, Course short name
    5. summary: RAW, Mandatory, Course summary
    6. idnumber: ALPHANUMEXT, Mandatory, Course ID number
  2. Upon calling this web service function
    1. A course backup process starts
    2. The backed-up course id is returned as the web service response
    3. Any back-up information should be shared so the web service consumer may call other functions to get the backup status. Review which of the following would be best suited to track the restoration or copying progress:
      1. core_backup_get_async_backup_progress
      2. core_backup_get_copy_progress