Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-69529

Remove redundant code from to get contenttype and load content in the Content Bank

    XMLWordPrintable

Details

    • Moppies Kanban

    Description

      In several places, the Content Bank code checks the DB for specific content and then invoke a specific contenttype_XXX\contenttype and  contenttype_XXX\content to operate the methods.

      This code is always the same and now it is encapsulated into the methods:

      • contentbank\content::get_content_type_instance
      • contentbank\contentbank::get_content_from_id

      For example, in functions such delete_contents, move_contents, rename_content, etc. 

      Attachments

        Issue Links

          Activity

            People

              ilyatregubov Ilya Tregubov
              tusefomal Ferran Recio
              Ferran Recio Ferran Recio
              Jake Dallimore Jake Dallimore
              CiBoT CiBoT
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 45 minutes
                  4h 45m