TYPO3 API  SVNRelease
Public Member Functions
t3lib_cache_frontend_PhpFrontend Class Reference
Inheritance diagram for t3lib_cache_frontend_PhpFrontend:
Inheritance graph
[legend]
Collaboration diagram for t3lib_cache_frontend_PhpFrontend:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 __construct ($identifier, t3lib_cache_backend_PhpCapableBackend $backend)
 set ($entryIdentifier, $sourceCode, $tags=array(), $lifetime=NULL)
 requireOnce ($entryIdentifier)

Detailed Description

Definition at line 37 of file class.t3lib_cache_frontend_phpfrontend.php.


Constructor & Destructor Documentation

t3lib_cache_frontend_PhpFrontend::__construct ( identifier,
t3lib_cache_backend_PhpCapableBackend backend 
)

Constructs the cache

Parameters:
string$identifierA identifier which describes this cache
t3lib_cache_backend_PhpCapableBackend$backendBackend to be used for this cache
Author:
Robert Lemke <robert@typo3.org>

Definition at line 45 of file class.t3lib_cache_frontend_phpfrontend.php.

References t3lib_cache_frontend_AbstractFrontend\$identifier.


Member Function Documentation

t3lib_cache_frontend_PhpFrontend::requireOnce ( entryIdentifier)

Loads PHP code from the cache and require_onces it right away.

Parameters:
string$entryIdentifierAn identifier which describes the cache entry to load
Returns:
mixed Potential return value from the include operation
Author:
Robert Lemke <robert@typo3.org>

Definition at line 93 of file class.t3lib_cache_frontend_phpfrontend.php.

t3lib_cache_frontend_PhpFrontend::set ( entryIdentifier,
sourceCode,
tags = array(),
lifetime = NULL 
)

Saves the PHP source code in the cache.

Parameters:
string$entryIdentifierAn identifier used for this cache entry, for example the class name
string$sourceCodePHP source code
array$tagsTags to associate with this cache entry
integer$lifetimeLifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime.
Returns:
void
Author:
Robert Lemke <robert@typo3.org>

Reimplemented from t3lib_cache_frontend_StringFrontend.

Definition at line 60 of file class.t3lib_cache_frontend_phpfrontend.php.

References t3lib_cache_frontend_AbstractFrontend\isValidEntryIdentifier(), and t3lib_cache_frontend_AbstractFrontend\isValidTag().


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