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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: DEV backlog
    • Component/s: Course
    • Labels:
    • Affected Branches:
      MOODLE_24_STABLE

      Description

      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

        Attachments

        There are no Sub-Tasks for this issue.

          Activity

            People

            Assignee:
            marina Marina Glancy
            Reporter:
            marina Marina Glancy
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: