-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
2.9.3
-
None
-
MOODLE_29_STABLE
The comment class (comment/lib.php) has a property 'template' which stores the comment display template. Currently the only way to modify the template from a plugin is by a plugin callback. However in some relevant cases the plugin callback may be too cumbersome for the desired effect. It may be much easier to manage the plugin comments by extending the comment class. But the visibility of the template property is private and as such it cannot be modified from a child class.
The proposal here is a minimal change of the visibility of the template property from private to protected.
From
private $template;
|
to
protected $template;
|