Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Mustache_Cache_NoopCache Class Reference
Inheritance diagram for Mustache_Cache_NoopCache:
Mustache_Cache_AbstractCache Mustache_Cache

Public Member Functions

 cache ($key, $value)
 Loads the compiled Mustache Template class without caching.
 
 getLogger ()
 Get the current logger instance.
 
 load ($key)
 Loads nothing.
 
 setLogger ($logger=null)
 Set a logger instance.
 

Protected Member Functions

 log ($level, $message, array $context=array())
 Add a log record if logging is enabled.
 

Member Function Documentation

◆ cache()

Mustache_Cache_NoopCache::cache ( $key,
$value )

Loads the compiled Mustache Template class without caching.

Parameters
string$key
string$value

Implements Mustache_Cache.

◆ getLogger()

Mustache_Cache_AbstractCache::getLogger ( )
inherited

Get the current logger instance.

Return values
Mustache_Logger|Psr\Log\LoggerInterface

◆ load()

Mustache_Cache_NoopCache::load ( $key)

Loads nothing.

Move along.

Parameters
string$key
Return values
bool

Implements Mustache_Cache.

◆ log()

Mustache_Cache_AbstractCache::log ( $level,
$message,
array $context = array() )
protectedinherited

Add a log record if logging is enabled.

Parameters
string$levelThe logging level
string$messageThe log message
array$contextThe log context

◆ setLogger()

Mustache_Cache_AbstractCache::setLogger ( $logger = null)
inherited

Set a logger instance.

Parameters
Mustache_Logger | Psr\Log\LoggerInterface$logger

Implements Mustache_Cache.


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