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

Document $context parameter in admin_externalpage constructor

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.5
    • Fix Version/s: None
    • Component/s: PHPDoc
    • Affected Branches:
      MOODLE_28_STABLE

      Description

      The PHPDoc for the $context parameter in the admin_externalpage constructor is vague and confusing:

      The context the page relates to. Not sure what happens if you specify something other than system or front page. Defaults to system.

      It would be good if someone who does understand this parameter could document it properly.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            maherne Michael Aherne
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: