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

META: Move HTML generation from course/lib.php to renderer

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • DEV backlog
    • 2.4
    • Course
    • MOODLE_24_STABLE

      Move HTML generation from course/lib.php to renderer

      The course renderer has been created (class core_course_renderer in course/renderer.php)
      but there are still a lot of functions in course/lib.php that output html directly. They must use renderer callbacks:

      print_overview() - MDL-36967
      print_recent_activity() - MDL-36968
      print_section() - MDL-37085
      print_section_add_menus() - MDL-37085
      print_category_info() - MDL-37193
      print_courses() - MDL-37009
      print_course() - MDL-37009
      print_my_moodle()- MDL-37009
      print_course_search() - MDL-37009
      print_remote_course() - MDL-37009
      print_remote_host() - MDL-37009
      make_editing_buttons() - MDL-37085
      print_log()
      print_mnet_log()

      Also use renderers in php files in /course/ folder:
      category.php
      index.php
      info.php (just one <br/>)
      report.php ?
      resources.php ?
      scales.php ?
      search.php

        There are no Sub-Tasks for this issue.

            marina Marina Glancy
            marina Marina Glancy
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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