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.

User evidence persistent.

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

Defines 1 class

user_evidence:: (12 methods):
  define_properties()
  can_manage()
  can_read()
  get_context()
  get_competencies()
  get_user_competencies()
  user_has_plan()
  get_files()
  validate_url()
  validate_userid()
  can_manage_user()
  can_read_user()


Class: user_evidence  - X-Ref

User evidence persistent class.

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

return: array

can_manage()   X-Ref
Can the current user manage this user evidence?

return: bool

can_read()   X-Ref
Can the current user view this user evidence?

return: bool

get_context()   X-Ref
Get the context of this user evidence.

return: context

get_competencies()   X-Ref
Get link competencies.


get_user_competencies()   X-Ref
Get link user competencies.


user_has_plan()   X-Ref
Return true if the user of the evidence has plan.

return: bool

get_files()   X-Ref
Return the files associated with this evidence.

return: object[]

validate_url($value)   X-Ref
Validate the URL.

param: int $value
return: true|lang_string

validate_userid($value)   X-Ref
Validate the user ID.

param: int $value
return: true|lang_string

can_manage_user($evidenceuserid)   X-Ref
Can the current user manage a user's evidence?

param: int $evidenceuserid The user to whom the evidence would belong.
return: bool

can_read_user($evidenceuserid)   X-Ref
Can the current user view a user's evidence?

param: int $evidenceuserid The user to whom the evidence would belong.
return: bool