MDL-71779 core_courseformat: reactive add and delete sections

This commit is contained in:
Ferran Recio
2021-10-28 16:41:17 +02:00
parent a9d44b0f75
commit 3d2a6eacae
57 changed files with 883 additions and 140 deletions
+2 -2
View File
@@ -130,7 +130,7 @@ class stateupdates implements JsonSerializable {
* @param int $sectionid The affected section id.
*/
public function add_section_delete(int $sectionid): void {
$this->add_update('section', 'delete', (object)['id' => $sectionid]);
$this->add_update('section', 'remove', (object)['id' => $sectionid]);
}
/**
@@ -179,7 +179,7 @@ class stateupdates implements JsonSerializable {
* @param int $cmid the affected course module id
*/
public function add_cm_delete(int $cmid): void {
$this->add_update('cm', 'delete', (object)['id' => $cmid]);
$this->add_update('cm', 'remove', (object)['id' => $cmid]);
}
/**