ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_Cache_Null Class Reference

Implements a no-cache strategy. More...

+ Inheritance diagram for Twig_Cache_Null:
+ Collaboration diagram for Twig_Cache_Null:

Public Member Functions

 generateKey ($name, $className)
 Generates a cache key for the given template class name. More...
 
 write ($key, $content)
 Writes the compiled template to cache. More...
 
 load ($key)
 Loads a template from the cache. More...
 
 getTimestamp ($key)
 Returns the modification timestamp of a key. More...
 

Detailed Description

Implements a no-cache strategy.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Definition at line 19 of file Null.php.

Member Function Documentation

◆ generateKey()

Twig_Cache_Null::generateKey (   $name,
  $className 
)

Generates a cache key for the given template class name.

Parameters
string$nameThe template name
string$classNameThe template class name
Returns
string

Implements Twig_CacheInterface.

Definition at line 21 of file Null.php.

22  {
23  return '';
24  }

◆ getTimestamp()

Twig_Cache_Null::getTimestamp (   $key)

Returns the modification timestamp of a key.

Parameters
string$keyThe cache key
Returns
int

Implements Twig_CacheInterface.

Definition at line 34 of file Null.php.

35  {
36  return 0;
37  }

◆ load()

Twig_Cache_Null::load (   $key)

Loads a template from the cache.

Parameters
string$keyThe cache key

Implements Twig_CacheInterface.

Definition at line 30 of file Null.php.

31  {
32  }

◆ write()

Twig_Cache_Null::write (   $key,
  $content 
)

Writes the compiled template to cache.

Parameters
string$keyThe cache key
string$contentThe template representation as a PHP class

Implements Twig_CacheInterface.

Definition at line 26 of file Null.php.

27  {
28  }

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