-
Improvement
-
Resolution: Fixed
-
Minor
-
2.6.4, 2.7.1
-
None
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
Since dataformview::get_default_view_template and dataformview::get_default_entry_template set view attributes rather than return content, set methods seem more appropriate. This amounts to changing method names to dataformview::set_default_view_template and dataformview::set_default_entry_template respectively.
A further adjustment is adding adding a param string (defaults to null) to allow passing an alternate template content.
Finally, changing access level to public to allow setting an laternate template content progrematically.