Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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.

return: course_competency_settings
param: int $courseid The course id

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

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

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

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

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

return: bool

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

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

get_context()   X-Ref
Get the context.

return: context The context