Skip to content

Commit

Permalink
MDL-32508 course_formats: change format_renderer_base to format_secti…
Browse files Browse the repository at this point in the history
…on_renderer_base

Make it clear that this isn't a golden supported API
  • Loading branch information
danpoltawski committed May 4, 2012
1 parent 2db66a9 commit a8f02a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions course/format/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@


/**
* This renderer is used by section based formats
* This is a convenience renderer which can be used by section based formats
* to reduce code duplication. It is not necessary for all course formats to
* use this and its likely to change in future releases.
*
* @package core
* @copyright 2012 Dan Poltawski
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @since Moodle 2.3
*/
abstract class format_renderer_base extends plugin_renderer_base {
abstract class format_section_renderer_base extends plugin_renderer_base {

/**
* Generate the starting container html for a list of sections
Expand Down
2 changes: 1 addition & 1 deletion course/format/topics/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright 2012 Dan Poltawski
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class format_topics_renderer extends format_renderer_base {
class format_topics_renderer extends format_section_renderer_base {

/**
* Generate the starting container html for a list of sections
Expand Down
2 changes: 1 addition & 1 deletion course/format/weeks/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @copyright 2012 Dan Poltawski
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class format_weeks_renderer extends format_renderer_base {
class format_weeks_renderer extends format_section_renderer_base {
/**
* Generate the starting container html for a list of sections
* @return string HTML to output.
Expand Down

0 comments on commit a8f02a3

Please sign in to comment.