Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
{{!
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
{{!
18
    @template core_reportbuilder/local/report/debug
19
 
20
    Template for custom report debug
21
 
22
    Example context (json):
23
    {
24
        "query": "SELECT foo FROM {bar} WHERE baz = :rbparam1",
25
        "params": [
26
            {
27
                "param": "rbparam1",
28
                "value": 42
29
            }
30
        ],
31
        "duration": "0.124 secs"
32
    }
33
}}
34
<details>
35
    <summary>{{#str}} debuginfo, core_debug {{/str}}</summary>
36
    <code class="d-block mb-2">{{query}}</code>
37
    {{#params}}
38
        <code class="d-block mb-2">{{param}} => {{value}}</code>
39
    {{/params}}
40
    {{#duration}}<code class="d-block">{{.}}</code>{{/duration}}
41
</details>