Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9785 Improve Flexibility of Question Category Sharing and Permissions
  3. MDL-9868

Add code to cope with detecting and moving associated files

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: Questions, Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      Add code to cope with detecting and moving associated files

      From http://docs.moodle.org/en/Development:Plan_to_Improve_Flexibility_of_Question_Category_Sharing_and_Permissions#Add_code_to_cope_with_detecting_and_moving_associated_files :

      Need code to check for files in the current course / at the site level that need to be moved when a question is moved. Questions can be moved either :

      • when a whole category is moved in the Edit Category page
      • or when an individual question is moved in the edit question form by using the select box there.

      The default question type object will have a new method to deal with things that need doing when a question is removed default_questiontype::move_to_category() this can be overriden by child classes for extra specific stuff to be done for special question types.

      We will check for linked course files and site files in question text and other text using a regular expression. List associated files for user and allow user the choice to move files to the same context as the question. So if a question is shared at the :

      • course level or module level associated files will be stored in the course files area.
      • course category or site level associated files will be stored in the site files area.

        Attachments

          Activity

            People

            Assignee:
            jamiesensei Jamie Pratt
            Reporter:
            jamiesensei Jamie Pratt
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: