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

Split filterlib.php

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-82427-main
    • Hide

      CI covers most cases

      Manual testing

      1. Download the attached patch (0001-TEST-Do-not-commit.patch)
      2. Apply it to your git directory:

        git am path/to/0001-TEST-Do-not-commit.patch
        

      3. Navigate to a course and create a forum
      4. Create a new discussion:
        1. Subject CAT
        2. Content:

          I love my CAT and my DOG.
          

      5. Save changes
        1. Confirm that the subject and title are as you typed them
      6. Whilst in the Forum, from the "More" menu choose "Filters"
        1. Confirm that the Emoticon filter has a "Settings" link
      7. Follow that settings link
      8. Under word enter "CAT"
      9. Save changes
      10. Navigate back to the forum
        1. Confirm that the details of your post:
          1. Subject: CAT
          2. Content: I love my Hello CAT! and DOG.
      Show
      CI covers most cases Manual testing Download the attached patch ( 0001-TEST-Do-not-commit.patch ) Apply it to your git directory: git am path/to/0001-TEST-Do-not-commit.patch Navigate to a course and create a forum Create a new discussion: Subject CAT Content: I love my CAT and my DOG. Save changes Confirm that the subject and title are as you typed them Whilst in the Forum, from the "More" menu choose "Filters" Confirm that the Emoticon filter has a "Settings" link Follow that settings link Under word enter "CAT" Save changes Navigate back to the forum Confirm that the details of your post: Subject: CAT Content: I love my Hello CAT! and DOG.

      This change updates the Filter API to modernise it and add support for standard Moodle class autoloading. This includes changes to the Filter Plugins to also support class autoloading.

      For developers of filter plugins the following changes are required:

      1. Move the class located in filter/[yourfilter]/filter.php to filter/[filter]/classes/text_filter.php and rename the class to text_filter.

      If your codebase is used in Moodle 4.5, as well as earlier versions, you will also need to:

      1. Create a file in the 'old' location (filter/[filter]/filter.php) with the following content:

      class_alias(\filter_[filter]\text_filter::class, \filter_[filter]::class);
      

      This will ensure that the plugin class is available at both the old and new locations.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Paul Holden Paul Holden
            Jun Pataleta Jun Pataleta
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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