Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
 
17
namespace tool_brickfield\local\htmlchecker\guidelines;
18
 
19
use tool_brickfield\local\htmlchecker\brickfield_accessibility_guideline;
20
use tool_brickfield\manager;
21
 
22
/**
23
 * Brickfield Guideline
24
 *
25
 * @package    tool_brickfield
26
 * @copyright  2020 onward: Brickfield Education Labs, www.brickfield.ie
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 */
29
class brickfield_guideline extends brickfield_accessibility_guideline {
30
 
31
    /**
32
     * brickfield_guideline constructor.
33
     * @param \DOMDocument $dom
34
     * @param \brickfield_accessibility_css $css
35
     * @param array $path
36
     * @param null $arg
37
     * @param string $domain
38
     * @param bool $cmsmode
39
     * @throws \dml_exception
40
     */
41
    public function __construct(&$dom, &$css, array &$path, $arg = null, string $domain = 'en', bool $cmsmode = false) {
42
        global $DB;
43
 
44
        $this->tests = array_values($DB->get_records_menu(manager::DB_CHECKS, null, '', 'id,shortname'));
45
 
46
        parent::__construct($dom, $css, $path, $arg, $domain, $cmsmode);
47
    }
48
}