mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00

This method allows to quickly check if the given policy version is marked as optional or compulsory. This will be needed in other places such as permissions check.
29 lines
1.2 KiB
PHP
29 lines
1.2 KiB
PHP
<?php
|
|
// This file is part of Moodle - http://moodle.org/
|
|
//
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/**
|
|
* Plugin version and other meta-data are defined here.
|
|
*
|
|
* @package tool_policy
|
|
* @copyright 2018 David Mudrák <david@moodle.com>
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
defined('MOODLE_INTERNAL') || die();
|
|
|
|
$plugin->version = 2018100100; // The current plugin version (Date: YYYYMMDDXX).
|
|
$plugin->requires = 2018050800; // Requires this Moodle version.
|
|
$plugin->component = 'tool_policy'; // Full name of the plugin (used for diagnostics).
|