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.

Mock condition.

Copyright: 2014 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 139 lines (5 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: condition  - X-Ref

Mock condition.

__construct($structure)   X-Ref
Constructs a mock condition with given structure.

param: \stdClass $structure Structure object

save()   X-Ref
No description

is_available($not, \core_availability\info $info, $grabthelot, $userid)   X-Ref
No description

is_available_for_all($not = false)   X-Ref
No description

get_description($full, $not, \core_availability\info $info)   X-Ref
No description

get_standalone_description($full, $not, \core_availability\info $info)   X-Ref
No description

update_dependency_id($table, $oldid, $newid)   X-Ref
No description

get_debug_string()   X-Ref
No description

is_applied_to_user_lists()   X-Ref
No description

filter_user_list(array $users, $not, \core_availability\info $info,\core_availability\capability_checker $checker)   X-Ref
No description

get_user_list_sql($not, \core_availability\info $info, $onlyactive)   X-Ref
No description