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

        1.
        deprecate function print_overview() Sub-task Closed Marina Glancy
        2.
        Move function print_recent_activity() to the block recent_activity Sub-task Closed Marina Glancy
        3.
        Output course listings throughout the site using renderer Sub-task Closed Marina Glancy
        4.
        Use renderer to display course section contents (print_section()) Sub-task Closed Marina Glancy
        5.
        Move function print_category_info() to the course renderer Sub-task Closed Marina Glancy
        6.
        Add modchooser toggle navigation item in renderer Sub-task Closed Marina Glancy
        7.
        Conditional access restriction information are not displayed below the activity Sub-task Closed Marina Glancy
        8.
        Separate categories view and edit pages Sub-task Closed Sam Hemelryk
        9.
        Create class coursecat for managing and displaying course categories Sub-task Closed Marina Glancy
        10.
        Separate courses search result view and edit modes Sub-task Closed Marina Glancy
        11.
        Separate categories view and edit page - alter CSS Sub-task Closed Marina Glancy
        12.
        Make settings for front page course listings more user friendly Sub-task Closed Marina Glancy
        13.
        Merge code from /course/category.php into /course/index.php Sub-task Closed Marina Glancy
        14.
        Make changes to core themes for the new course listings Sub-task Closed Marina Glancy
        15.
        Add special CSS class to the coursebox when user can access the course Sub-task Closed Marina Glancy
        16.
        Add AJAX and expansion of categories Sub-task Closed Andrew Nicols
        17.
        Add images or other files to the course to show in courses list Sub-task Closed Marina Glancy
        18.
        Purge course list caches on restore operations Sub-task Closed Marina Glancy
        19.
        Categories drop down menu in course mangement page does not list categories Sub-task Closed Marina Glancy
        20.
        Add text to upgrade.txt about deprecated print functions from /course/lib.php Sub-task Closed Marina Glancy
        21.
        Course listings minor bugs Sub-task Closed Marina Glancy
        22.
        Hover highlighting for courses extends onto paging Sub-task Closed Marina Glancy
        23.
        New Course info styles issue Sub-task Closed Marina Glancy
        24.
        Coursecat cache is not cleared when course is hidden Sub-task Closed Marina Glancy
        25.
        Make changes to MyMobile themes for the new course listings Sub-task Closed Mary Evans
        26.
        Do not use inline function in lib/coursecatlib.php Sub-task Closed Dan Poltawski
        27.
        Create function to preload course contacts for the group of courses Sub-task Closed Marina Glancy

          Activity

            People

            • Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: