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.

Class for course_competency_settings persistence.

Copyright: 2016 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 141 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

course_competency_settings:: (7 methods):
  define_properties()
  get_by_courseid()
  can_read()
  can_manage_course()
  can_manage()
  validate_courseid()
  get_context()


Class: course_competency_settings  - X-Ref

Class for course_competency_settings persistence.

define_properties()   X-Ref
Return the definition of the properties of this model.

return: array

get_by_courseid($courseid)   X-Ref
Get a the course settings for a single course.

param: int $courseid The course id
return: course_competency_settings

can_read($courseid)   X-Ref
Can the current user view competency settings for this course.

param: int $courseid The course ID.
return: bool

can_manage_course($courseid)   X-Ref
Can the current user change competency settings for this course.

param: int $courseid The course ID.
return: bool

can_manage()   X-Ref
Can the current user change competency settings for this course.

return: bool

validate_courseid($data)   X-Ref
Validate course ID.

param: int $data The course ID.
return: true|lang_string

get_context()   X-Ref
Get the context.

return: context The context