. /** * Lists all roles that have the ability to backup user data, as well as users * * @package core * @category check * @copyright 2020 Brendan Heywood * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core\check\access; defined('MOODLE_INTERNAL') || die(); use core\check\check; use core\check\result; /** * Lists all roles that have the ability to backup user data, as well as users * * @copyright 2020 Brendan Heywood * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class riskbackup extends check { /** * Get the short check name * * @return string */ public function get_name(): string { return get_string('check_riskbackup_name', 'report_security'); } /** * A link to a place to action this * * @return action_link|null */ public function get_action_link(): ?\action_link { return new \action_link( new \moodle_url('/admin/roles/manage.php'), get_string('manageroles', 'role')); } /** * Return result * @return result */ public function get_result(): result { return new riskbackup_result(); } }