Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 17... Línea 17...
17
/**
17
/**
18
 * Custom Moodle engine for mustache.
18
 * Custom Moodle engine for mustache.
19
 *
19
 *
20
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
20
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
21
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
21
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
22
 * @package core
22
 */
23
 */
Línea 23... Línea 24...
23
 
24
 
Línea 24... Línea 25...
24
namespace core\output;
25
namespace core\output;
25
 
26
 
26
/**
27
/**
27
 * Custom Moodle engine for mustache.
28
 * Custom Moodle engine for mustache.
28
 *
29
 *
-
 
30
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
29
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
31
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @package core
31
 */
33
 */
32
class mustache_engine extends \Mustache_Engine {
34
class mustache_engine extends \Mustache_Engine {
33
    /**
35
    /**
Línea 66... Línea 68...
66
    }
68
    }
Línea 67... Línea 69...
67
 
69
 
68
    /**
70
    /**
69
     * Get the current set of Mustache helpers.
71
     * Get the current set of Mustache helpers.
70
     *
72
     *
71
     * @see Mustache_Engine::setHelpers
73
     * @see \Mustache_Engine::setHelpers
72
     *
74
     *
73
     * @return \Mustache_HelperCollection
75
     * @return \Mustache_HelperCollection
74
     */
76
     */
75
    public function getHelpers()
-
 
76
    {
77
    public function gethelpers() {
77
        if (!isset($this->helpers)) {
78
        if (!isset($this->helpers)) {
78
            $this->helpers = new mustache_helper_collection(null, $this->disallowednestedhelpers);
79
            $this->helpers = new mustache_helper_collection(null, $this->disallowednestedhelpers);
Línea 79... Línea 80...
79
        }
80
        }