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

Allow admin reports to have db tables, cron

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 1.9, 2.0
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      The attached patch allows admin reports (admin/report/* folders) to have database tables and cron. The interface is as follows, for a report called 'XX':

      1) Database tables for a report called 'XX': XX/version.php (sets $plugin->version, $plugin->required), XX/db/install.xml, XX/db/upgrade.php (with function xmldb_report_XX_upgrade)

      2) Cron support: XX/cron.php (with function report_XX_cron, which is called every cron, up to report to determine how often it actually needs to run or if it wants to run at a particular time etc).

      Could be applied to 1.9 or just HEAD.

        Attachments

          Activity

            People

            • Assignee:
              quen Sam Marshall
              Reporter:
              quen Sam Marshall
              Participants:
              Component watchers:
              Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08