Hi all
i am writing a page that among other things should add a file to the scorm activities in my/other sites.
the page has no UI.
when it is activated it automaticaly supposed to find all scorms in the site and add them a file.
how do i add a file to moodle 2.73.
i know that each file has a record in the mdl_files table and it is renamed and placed in the [moodle_data]/filedir according to that record but how do i create that record??
Thank you for any help