Search moodle.org's
Developer Documentation

See Release Notes

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

(no description)

File Size: 111 lines (4 kb)
Included or required:0 times
Referenced: 1 time
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