2009-05-22 08:41:00 +00:00
|
|
|
<?php
|
2009-11-01 16:48:45 +00:00
|
|
|
// This file is part of Moodle - http://moodle.org/
|
|
|
|
//
|
2009-05-22 08:41:00 +00:00
|
|
|
// 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.
|
2009-11-01 16:48:45 +00:00
|
|
|
//
|
2009-05-22 08:41:00 +00:00
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
2008-01-10 23:46:28 +00:00
|
|
|
|
2009-05-22 08:41:00 +00:00
|
|
|
/**
|
2014-02-13 12:26:32 +00:00
|
|
|
* This is a place to put custom environment checks, if there is not a better place.
|
2009-05-22 08:41:00 +00:00
|
|
|
*
|
|
|
|
* This library contains a collection of functions able to perform
|
|
|
|
* some custom checks executed by environmental tests (automatically
|
|
|
|
* executed on install & upgrade and under petition in the admin block).
|
|
|
|
*
|
2014-02-13 12:26:32 +00:00
|
|
|
* Any function in this library gets a environment_results object passed in.
|
|
|
|
* It must return:
|
2009-05-22 08:41:00 +00:00
|
|
|
* - null: if the test isn't relevant and must not be showed (ignored)
|
2014-02-13 12:26:32 +00:00
|
|
|
* - the environment_results object that was passed in, with the status set to:
|
2009-05-22 08:41:00 +00:00
|
|
|
* - true: if passed
|
|
|
|
* - false: if failed
|
|
|
|
*
|
2010-07-25 13:35:05 +00:00
|
|
|
* @package core
|
|
|
|
* @subpackage admin
|
|
|
|
* @copyright (C) 2001-3001 Eloy Lafuente (stronk7) {@link http://contiento.com}
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
2009-05-22 08:41:00 +00:00
|
|
|
*/
|
2008-01-10 23:46:28 +00:00
|
|
|
|
2010-07-25 13:35:05 +00:00
|
|
|
defined('MOODLE_INTERNAL') || die();
|