General developer forum

Issue extending core_renderer to override outputrenderers methods

 
Picture of Tobias Marx
Re: Issue extending core_renderer to override outputrenderers methods
 

I can't speak for the OP, but in my case I've used the theme's name:


<?php

defined('MOODLE_INTERNAL') || die();

class theme_boost_core_renderer extends core_renderer {

}

include_once($CFG->dirroot . "/course/renderer.php");

class theme_boost_core_course_renderer extends core_course_renderer {

   /**
    * Renders HTML to display particular course category - list of it's subcategories and courses
    *
    * Invoked from /course/index.php
    *
    * @param int|stdClass|coursecat $category
    */
   public function course_category($category) {
       global $CFG;
       require_once($CFG->libdir. '/coursecatlib.php');
       $coursecat = coursecat::get(is_object($category) ? $category->id : $category);
       $site = get_site();
       $output = '';

</snip>

 
Average of ratings: -