Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 117 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

stateactions:: (2 methods):
  section_highlight()
  section_unhighlight()


Class: stateactions  - X-Ref

Contains the core course state actions specific to topics format.

section_highlight(stateupdates $updates,stdClass $course,array $ids = [],?int $targetsectionid = null,?int $targetcmid = null)   X-Ref
Highlight course section.

param: stateupdates $updates the affected course elements track
param: stdClass $course the course object
param: int[] $ids section ids (only ther first one will be highlighted)
param: int $targetsectionid not used
param: int $targetcmid not used

section_unhighlight(stateupdates $updates,stdClass $course,array $ids = [],?int $targetsectionid = null,?int $targetcmid = null)   X-Ref
Remove highlight from a course sections.

param: stateupdates $updates the affected course elements track
param: stdClass $course the course object
param: int[] $ids optional extra section ids to refresh
param: int $targetsectionid not used
param: int $targetcmid not used