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
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.