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

Implement base class & file structure

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 4.0
    • Navigation
    • 3

      Implement base class & file structure.

      Within this sub-task we want the base structure of the new Moodle 4.0 navigation to be implemented.

      Acceptance criteria

      • Using the example structure within this issue, create the required sub directories & files
      • Using the example within this issue, implement the base functions within the secondary navigation class
      • Implement new magic method for Secondary navigation
        • $PAGE->secondarynavigationview calls the function magic_get_secondarynavview within lib/pagelib. This would create a new secondary_navigation_view and triggers the initialise function within secondary_navigation_view.

      Example structure:

      /lib/classes
                  /navigation
                             /views
                                   /secondary.php

      Example class stub:

      class secondary_navigation_view extends navigation_node {
          // Sets up the view with basic settings and preparse it for use.
          public function __construct(array $properties) {}
          // Initialise the view based navigation based on the current context.
          public function initialise() {}
          /This function recursively scans nodes until it finds the active node or there are no more nodes.
          etc.....
      }

            peterdias Peter Dias
            mathewmay Glyn (Mathew) May
            Mihail Geshoski Mihail Geshoski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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