Search moodle.org's
Developer Documentation

Long Term Support Release

  • Bug fixes for general core bugs in 3.5.x ended May 2019 (12 months).
  • Bug fixes for security issues in 3.5.x will end 10 May 2021 (36 months) - Support has ended.
  • minimum PHP 7.0.0 Note: minimum PHP version has increased since Moodle 3.3. PHP 7.1.x and 7.2.x are supported too. PHP 7.x could have some engine limitations.
  • /competency/ -> lib.php (source)

    Differences Between: [Versions 35 and 310] [Versions 35 and 311] [Versions 35 and 37] [Versions 35 and 38] [Versions 35 and 39]

    Competency lib.

    Copyright: 2016 Frédéric Massart - FMCorz.net
    License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
    File Size: 302 lines (11 kb)
    Included or required:0 times
    Referenced: 0 times
    Includes or requires: 0 files

    Defines 4 functions


    Functions that are not part of a class:

    core_competency_comment_add($comment, $params)   X-Ref
    Hook when a comment is added.

    param: stdClass $comment The comment.
    param: stdClass $params The parameters.
    return: array

    core_competency_comment_permissions($params)   X-Ref
    Return the permissions of for the comments.

    param: stdClass $params The parameters.
    return: array

    core_competency_comment_validate($params)   X-Ref
    Validates comments.

    param: stdClass $params The parameters.
    return: bool

    core_competency_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = array()   X-Ref
    File serving.

    param: stdClass $course The course object.
    param: stdClass $cm The cm object.
    param: context $context The context object.
    param: string $filearea The file area.
    param: array $args List of arguments.
    param: bool $forcedownload Whether or not to force the download of the file.
    param: array $options Array of options.
    return: void|false