TYPO3 API  SVNRelease
Public Member Functions | Protected Attributes
t3lib_cache_frontend_AbstractFrontend Class Reference
Inheritance diagram for t3lib_cache_frontend_AbstractFrontend:
Inheritance graph
[legend]
Collaboration diagram for t3lib_cache_frontend_AbstractFrontend:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 __construct ($identifier, t3lib_cache_backend_Backend $backend)
 getIdentifier ()
 getBackend ()
 has ($entryIdentifier)
 remove ($entryIdentifier)
 flush ()
 flushByTag ($tag)
 flushByTags (array $tags)
 collectGarbage ()
 getClassTag ($className= '')
 isValidEntryIdentifier ($identifier)
 isValidTag ($tag)

Protected Attributes

 $identifier
 $backend

Detailed Description

Definition at line 36 of file class.t3lib_cache_frontend_abstractfrontend.php.


Constructor & Destructor Documentation

t3lib_cache_frontend_AbstractFrontend::__construct ( identifier,
t3lib_cache_backend_Backend backend 
)

Constructs the cache

Parameters:
stringA identifier which describes this cache
t3lib_cache_backend_BackendBackend to be used for this cache
Author:
Robert Lemke <robert@typo3.org>
Exceptions:
InvalidArgumentExceptionif the identifier doesn't match PATTERN_ENTRYIDENTIFIER

Reimplemented in t3lib_cache_frontend_VariableFrontend.

Definition at line 57 of file class.t3lib_cache_frontend_abstractfrontend.php.

References $backend, and $identifier.


Member Function Documentation

t3lib_cache_frontend_AbstractFrontend::collectGarbage ( )

Does garbage collection

Returns:
void
Author:
Karsten Dambekalns <karsten@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 171 of file class.t3lib_cache_frontend_abstractfrontend.php.

t3lib_cache_frontend_AbstractFrontend::flush ( )

Removes all cache entries of this cache.

Returns:
void
Author:
Robert Lemke <robert@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 131 of file class.t3lib_cache_frontend_abstractfrontend.php.

t3lib_cache_frontend_AbstractFrontend::flushByTag ( tag)

Removes all cache entries of this cache which are tagged by the specified tag.

Parameters:
string$tagThe tag the entries must have
Returns:
void
Author:
Robert Lemke <robert@typo3.org>
Karsten Dambekalns <karsten@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 143 of file class.t3lib_cache_frontend_abstractfrontend.php.

References isValidTag().

t3lib_cache_frontend_AbstractFrontend::flushByTags ( array $  tags)

Removes all cache entries of this cache which are tagged by the specified tag.

Parameters:
arrayArray of tags to search for and to remove the cache entries, the "*" wildcard is supported
Returns:
void
Author:
Ingo Renner <ingo@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 161 of file class.t3lib_cache_frontend_abstractfrontend.php.

t3lib_cache_frontend_AbstractFrontend::getBackend ( )

Returns the backend used by this cache

Returns:
t3lib_cache_backend_Backend The backend used by this cache
Author:
Robert Lemke <robert@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 83 of file class.t3lib_cache_frontend_abstractfrontend.php.

t3lib_cache_frontend_AbstractFrontend::getClassTag ( className = '')

Renders a tag which can be used to mark a cache entry as "depends on this class". Whenever the specified class is modified, all cache entries tagged with the class are flushed.

If an empty string is specified as class name, the returned tag means "depends on any class".

Parameters:
stringThe class name
Returns:
string Class Tag
Author:
Robert Lemke <robert@typo3.org>

Definition at line 187 of file class.t3lib_cache_frontend_abstractfrontend.php.

t3lib_cache_frontend_AbstractFrontend::getIdentifier ( )

Returns this cache's identifier

Returns:
string The identifier for this cache
Author:
Robert Lemke <robert@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 73 of file class.t3lib_cache_frontend_abstractfrontend.php.

t3lib_cache_frontend_AbstractFrontend::has ( entryIdentifier)

Checks if a cache entry with the specified identifier exists.

Parameters:
string$entryIdentifierAn identifier specifying the cache entry
Returns:
boolean TRUE if such an entry exists, FALSE if not
Author:
Robert Lemke <robert@typo3.org>
Karsten Dambekalns <karsten@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 95 of file class.t3lib_cache_frontend_abstractfrontend.php.

References isValidEntryIdentifier().

t3lib_cache_frontend_AbstractFrontend::isValidEntryIdentifier ( identifier)

Checks the validity of an entry identifier. Returns true if it's valid.

Parameters:
string$identifierAn identifier to be checked for validity
Returns:
boolean
Author:
Christian Jul Jensen <julle@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 198 of file class.t3lib_cache_frontend_abstractfrontend.php.

References $identifier.

Referenced by t3lib_cache_frontend_StringFrontend\get(), t3lib_cache_frontend_VariableFrontend\get(), has(), remove(), t3lib_cache_frontend_StringFrontend\set(), t3lib_cache_frontend_PhpFrontend\set(), and t3lib_cache_frontend_VariableFrontend\set().

t3lib_cache_frontend_AbstractFrontend::isValidTag ( tag)

Checks the validity of a tag. Returns true if it's valid.

Parameters:
string$tagAn identifier to be checked for validity
Returns:
boolean
Author:
Robert Lemke <robert@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 209 of file class.t3lib_cache_frontend_abstractfrontend.php.

Referenced by flushByTag(), t3lib_cache_frontend_StringFrontend\getByTag(), t3lib_cache_frontend_VariableFrontend\getByTag(), t3lib_cache_frontend_StringFrontend\set(), t3lib_cache_frontend_PhpFrontend\set(), and t3lib_cache_frontend_VariableFrontend\set().

t3lib_cache_frontend_AbstractFrontend::remove ( entryIdentifier)

Removes the given cache entry from the cache.

Parameters:
string$entryIdentifierAn identifier specifying the cache entry
Returns:
boolean TRUE if such an entry exists, FALSE if not
Author:
Sebastian Kurfürst <sebastian@typo3.org>
Karsten Dambekalns <karsten@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 114 of file class.t3lib_cache_frontend_abstractfrontend.php.

References isValidEntryIdentifier().


Member Data Documentation

t3lib_cache_frontend_AbstractFrontend::$backend [protected]

Definition at line 46 of file class.t3lib_cache_frontend_abstractfrontend.php.

Referenced by __construct().

t3lib_cache_frontend_AbstractFrontend::$identifier [protected]

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