Repository navigation
v0.6.0
New
- Images and files embedded in rich text (#52): an
embedoption (local paths) oncreateActivity,updateActivity,addSection,editSection,startDiscussion,replyToPost,editPostandupdateCourse. The HTML names each file by its name (<img src="shot.png">); the driver uploads it where Moodle's editor would and rewrites the reference, so the image shows to everyone. See Embedding files in rich text. activityContent(pages, labels, books) and forum posts give theimagesthey show.- Forum subscriptions (#53):
subscribedinforumDiscussionsanddiscussion;startDiscussionreturns the resultingpinnedandsubscribed, andreplyToPostsubscribedwhen asked to subscribe; newsetDiscussionSubscription(alsomoodle set-discussion-subscription).
Fixes
courseStructure:availableToMeis true for a teacher on a hidden or restricted activity they can open (#50).setEnrolmentMethodswitches a method on or off as Moodle's methods page does, and refuses with a clearEnrolmentErrorwhat Moodle doesn't let the person change (a teacher on the manual method), instead of failing on a missing form field; a request for the state a method already has succeeds (#51).
Changes a program may notice
uploadToDraft(internals) returns the draft URLs of the files it uploaded.readImages(internals) and theImageItemtype are new.
Checked against the Moodle 5.2 sandbox: the courses, building, forums and participants files of the regression suite pass (88 tests).