Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Mustache_Loader_CascadingLoader Class Reference
Inheritance diagram for Mustache_Loader_CascadingLoader:
Mustache_Loader

Public Member Functions

 __construct (array $loaders=array())
 Construct a CascadingLoader with an array of loaders.
 
 addLoader (Mustache_Loader $loader)
 Add a Loader instance.
 
 load ($name)
 Load a Template by name.
 

Constructor & Destructor Documentation

◆ __construct()

Mustache_Loader_CascadingLoader::__construct ( array $loaders = array())

Construct a CascadingLoader with an array of loaders.

$loader = new Mustache_Loader_CascadingLoader(array(
    new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__),
    new Mustache_Loader_FilesystemLoader(__DIR__.'/templates')
));
Parameters
Mustache_Loader[]$loaders

Member Function Documentation

◆ addLoader()

Mustache_Loader_CascadingLoader::addLoader ( Mustache_Loader $loader)

Add a Loader instance.

Parameters
Mustache_Loader$loader

◆ load()

Mustache_Loader_CascadingLoader::load ( $name)

Load a Template by name.

Exceptions
Mustache_Exception_UnknownTemplateExceptionIf a template file is not found
Parameters
string$name
Return values
stringMustache Template source

Implements Mustache_Loader.


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