EduardoKrausME / moodle-mod_certificatebeautiful

1 stars 2 forks source link

Files processing #19

Closed volodymyrdovhan closed 3 weeks ago

volodymyrdovhan commented 3 weeks ago

Hello, There is a lot of direct access to the files for reading/writing: file_get_contents(), file_put_contents(), etc. Moodle provides an API to work with files: https://moodledev.io/docs/4.5/apis/subsystems/files#copy-a-file-in-the-file-storage-api-to-elsewhere-on-disk

image https://moodledev.io/docs/4.5/apis/subsystems/files#list-all-files-in-a-particular-file-area https://moodledev.io/docs/4.5/apis/subsystems/files#access-the-content-of-a-file

image https://moodledev.io/docs/4.5/apis/subsystems/files#from-a-file-on-disk https://moodledev.io/docs/4.5/apis/subsystems/files#from-a-string