ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Files and Courses


  • 2013-07-05 15:16:54

    Files and Courses

    Hi. I have 2.0 installed and I'm trying to find the connection between files and courses. How does File Storage know to list the files that are associated with that course, and not some other course?

    Ultimately, I'm trying to develop a script for resetting a course and I want to identify which files go with a particular course.

    Thanks!

  • 2013-07-05 16:08:36

    Re: Files and Courses

    File associations are kept in the "file" table, and the files themselves are kept in content/file_storage/ in a bunch of numbered directories, with numbered file names. Match the folder and filenames in the table, with the numbered files.

  • 2013-07-05 16:23:41

    Re: Files and Courses

    Right. I understand the file system of ATutor. I don't see where a particular file is linked with a particular course though.

  • 2013-07-05 16:38:33

    Re: Files and Courses

    As I recall, when the the owner_type is "1" the file belongs to a course workspace, and the owner_id will be the course_id it belongs to.

    The WORKSPACE type constants are listed in include/lib/constants.inc.php

  • 2013-07-05 17:48:07

    Re: Files and Courses

    That works. Thanks!