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

    • Sprint:
      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

              Assignee:
              ilyatregubov Ilya Tregubov
              Reporter:
              tusefomal Ferran Recio
              Peer reviewer:
              Ferran Recio
              Integrator:
              Jake Dallimore
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/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