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

Deprecate old cron function in plagiarism API (was "Problems with plagiarism_plugin class")

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.3, 3.0.1
    • Fix Version/s: 3.1
    • Component/s: Plagiarism
    • Labels:

      Description

      There are a couple of things that seem a bit inaccurate in the plagiarism_plugin base class:

      1. the class should be marked as abstract as it's intended only to be used as a base for extending
      2. the plagiarism_cron() method appears to be named wrongly, based on the calling code in plagiarismlib.php (where the plagiarism_cron() function is assuming a method called "cron" exists and calling it)

      Neither of these should be a problem, as long as a plagiarism plugin implements a cron() method, but it would be better if the base class could be sorted out.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    23/May/16