Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

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

Defines 1 class

stateactions:: (4 methods):
  cm_state()
  format_do_something()
  targetsection_test()
  targetcm_test()


Class: stateactions  - X-Ref

Fixture for fake course stateactions testing.

cm_state(stateupdates $updates,stdClass $course,array $ids,?int $targetsectionid = null,?int $targetcmid = null)   X-Ref
Alternative cm_state state action for testing.

param: stateupdates $updates the affected course elements track
param: stdClass $course the course object
param: int[] $ids the list of affected course module ids
param: int $targetsectionid optional target section id
param: int $targetcmid optional target cm id

format_do_something(stateupdates $updates,stdClass $course,array $ids,?int $targetsectionid = null,?int $targetcmid = null)   X-Ref
Course format custom state action.

param: stateupdates $updates the affected course elements track
param: stdClass $course the course object
param: int[] $ids the list of affected course module ids
param: int $targetsectionid optional target section id
param: int $targetcmid optional target cm id

targetsection_test(stateupdates $updates,stdClass $course,array $ids,?int $targetsectionid = null,?int $targetcmid = null)   X-Ref
Course format target section testing action.

param: stateupdates $updates the affected course elements track
param: stdClass $course the course object
param: int[] $ids the list of affected course module ids
param: int $targetsectionid optional target section id
param: int $targetcmid optional target cm id

targetcm_test(stateupdates $updates,stdClass $course,array $ids,?int $targetsectionid = null,?int $targetcmid = null)   X-Ref
Course format target cm testing action.

param: stateupdates $updates the affected course elements track
param: stdClass $course the course object
param: int[] $ids the list of affected course module ids
param: int $targetsectionid optional target section id
param: int $targetcmid optional target cm id