Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
Class for loading/storing competencies from the DB.
Copyright: | 2015 Damyon Wiese |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 330 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
course_module_competency:: (13 methods):
define_properties()
before_validate()
get_ruleoutcome_list()
get_ruleoutcome_name()
validate_cmid()
validate_competencyid()
list_course_modules()
count_competencies()
list_competencies()
get_competency()
after_delete()
list_course_module_competencies()
get_records_by_competencyid_in_course()
Class: course_module_competency - X-Ref
Class for loading/storing course_module_competencies from the DB.define_properties() X-Ref |
Return the definition of the properties of this model. return: array |
before_validate() X-Ref |
Hook to execute before validate. return: void |
get_ruleoutcome_list() X-Ref |
Return a list of rules. return: array Indexed by outcome value. |
get_ruleoutcome_name($ruleoutcome) X-Ref |
Human readable rule name. return: lang_string param: int $ruleoutcome The value of ruleoutcome. |
validate_cmid($data) X-Ref |
Validate cmid ID. return: true|lang_string param: int $data The CM ID. |
validate_competencyid($data) X-Ref |
Validate competency ID. return: true|lang_string param: int $data The competency ID. |
list_course_modules($competencyid, $courseid) X-Ref |
Return the module IDs and visible flags that include this competency in a single course. return: array of ints (cmids) param: int $competencyid The competency id param: int $courseid The course ID. |
count_competencies($cmid) X-Ref |
Count the competencies in this course module. return: int param: int $cmid The course module id. |
list_competencies($cmid) X-Ref |
List the competencies in this course module. return: competency[] Indexed by competency ID. param: int $cmid The course module id |
get_competency($cmid, $competencyid) X-Ref |
Get a single competency from the course module (only if it is really in the course module). return: competency param: int $cmid The course module id param: int $competencyid The competency id |
after_delete($result) X-Ref |
Hook to execute after delete. return: void param: bool $result Whether or not the delete was successful. |
list_course_module_competencies($cmid) X-Ref |
List the course_module_competencies in this course module. return: course_module_competency[] param: int $cmid The course module id |
get_records_by_competencyid_in_course($competencyid, $courseid) X-Ref |
List the relationship objects for a competency in a course. return: course_module_competency[] param: int $competencyid The competency ID. param: int $courseid The course ID. |