Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are 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