Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
core\output\mustache_javascript_helper Class Reference

Store a list of JS calls to insert at the end of the page. More...

Public Member Functions

 __construct ($page)
 Create new instance of mustache javascript helper. More...
 
 help ($text, Mustache_LambdaHelper $helper)
 Add the block of text to the page requires so it is appended in the footer. More...
 

Detailed Description

Store a list of JS calls to insert at the end of the page.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Since
2.9

Constructor & Destructor Documentation

◆ __construct()

core\output\mustache_javascript_helper::__construct (   $page)

Create new instance of mustache javascript helper.

Parameters
moodle_page$pagePage.

Member Function Documentation

◆ help()

core\output\mustache_javascript_helper::help (   $text,
Mustache_LambdaHelper  $helper 
)

Add the block of text to the page requires so it is appended in the footer.

The content of the block can contain further mustache tags which will be resolved.

Parameters
string$textThe script content of the section.
Mustache_LambdaHelper$helperUsed to render the content of this block.

The documentation for this class was generated from the following file: