MDL-80248 course: Deprecate get/set_section_number()
commit9e25f21164b4335642c33bd7938097179cd33b59
authorSara Arjona <sara@moodle.com>
Tue, 16 Jan 2024 08:12:09 +0000 (16 09:12 +0100)
committerSara Arjona <sara@moodle.com>
Fri, 19 Jan 2024 11:03:37 +0000 (19 12:03 +0100)
tree00512e7e4436ac1b51d044e756af05c7aa3b751c
parent800ddf513da877aaa73599307260352eb98e414b
MDL-80248 course: Deprecate get/set_section_number()

The methods core_courseformat\base::set_section_number() and
core_courseformat\base:: get_section_number() have been deprecated
and replaced by core_courseformat\base::set_sectionnum() and
core_courseformat\base::get_sectionnum().
The new methods use the null value when all the sections must be
displayed (instead of 0). That way, section 0, can be displayed on
a single page too.
16 files changed:
course/externallib.php
course/format/classes/base.php
course/format/classes/output/local/content.php
course/format/classes/output/local/content/addsection.php
course/format/classes/output/local/content/bulkedittools.php
course/format/classes/output/local/content/cm.php
course/format/classes/output/local/content/cm/controlmenu.php
course/format/classes/output/local/content/section.php
course/format/classes/output/local/content/section/controlmenu.php
course/format/classes/output/local/content/section/header.php
course/format/lib.php
course/format/topics/classes/output/courseformat/content/section.php
course/format/topics/classes/output/courseformat/content/section/controlmenu.php
course/format/topics/format.php
course/format/upgrade.txt
course/format/weeks/format.php