Merge branch 'mdl-72526_main' of https://github.com/james-cnz/moodle
This commit is contained in:
@@ -195,7 +195,7 @@ class content implements named_templatable, renderable {
|
||||
* @param course_modinfo $modinfo the current course modinfo object
|
||||
* @return section_info[] an array of section_info to display
|
||||
*/
|
||||
private function get_sections_to_display(course_modinfo $modinfo): array {
|
||||
protected function get_sections_to_display(course_modinfo $modinfo): array {
|
||||
$singlesectionid = $this->format->get_sectionid();
|
||||
if ($singlesectionid) {
|
||||
return [
|
||||
|
||||
@@ -49,7 +49,7 @@ class cm implements named_templatable, renderable {
|
||||
protected $format;
|
||||
|
||||
/** @var section_info the section object */
|
||||
private $section;
|
||||
protected $section;
|
||||
|
||||
/** @var cm_info the course module instance */
|
||||
protected $mod;
|
||||
|
||||
@@ -47,7 +47,7 @@ class cmname implements named_templatable, renderable {
|
||||
protected $format;
|
||||
|
||||
/** @var section_info the section object */
|
||||
private $section;
|
||||
protected $section;
|
||||
|
||||
/** @var cm_info the course module instance */
|
||||
protected $mod;
|
||||
|
||||
@@ -93,7 +93,7 @@ class completion implements named_templatable, renderable {
|
||||
* @param stdClass $completioninfo the completion info
|
||||
* @return array the completion dialog exported for template
|
||||
*/
|
||||
private function get_completion_dialog(\renderer_base $output, stdClass $completioninfo): array {
|
||||
protected function get_completion_dialog(\renderer_base $output, stdClass $completioninfo): array {
|
||||
global $PAGE;
|
||||
|
||||
$editurl = new \moodle_url(
|
||||
|
||||
@@ -42,7 +42,7 @@ class groupmode implements named_templatable, renderable {
|
||||
protected $format;
|
||||
|
||||
/** @var section_info the section object */
|
||||
private $section;
|
||||
protected $section;
|
||||
|
||||
/** @var cm_info the course module instance */
|
||||
protected $mod;
|
||||
|
||||
@@ -51,7 +51,7 @@ class title extends inplace_editable implements named_templatable, renderable {
|
||||
protected $format;
|
||||
|
||||
/** @var section_info the section object */
|
||||
private $section;
|
||||
protected $section;
|
||||
|
||||
/** @var cm_info the course module instance */
|
||||
protected $mod;
|
||||
|
||||
@@ -89,7 +89,7 @@ class cmsummary implements named_templatable, renderable {
|
||||
*
|
||||
* @return array with [[count by activity type], completed activities, total of activitites]
|
||||
*/
|
||||
private function calculate_section_stats(): array {
|
||||
protected function calculate_section_stats(): array {
|
||||
$format = $this->format;
|
||||
$course = $format->get_course();
|
||||
$section = $this->section;
|
||||
|
||||
@@ -47,7 +47,7 @@ class summary implements named_templatable, renderable {
|
||||
protected $format;
|
||||
|
||||
/** @var section_info the course section class */
|
||||
private $section;
|
||||
protected $section;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
||||
@@ -49,7 +49,7 @@ class sectionnavigation implements named_templatable, renderable {
|
||||
protected $sectionno;
|
||||
|
||||
/** @var stdClass the calculated data to prevent calculations when rendered several times */
|
||||
private $data = null;
|
||||
protected $data = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
||||
Reference in New Issue
Block a user