abstract class ContentFilter (View source)

Conditionally executes a given callback, attempting to return the desired results of its execution.

Properties

protected ContentFilter $nestedContentFilter

Nested content filter

Methods

public
__construct($nestedContentFilter = null)

No description

protected
Zend_Cache_Frontend
getCache()

Gets the cache to use

public
mixed
getContent(string $key, callable $callback)

Evaluates the result of the given callback

Details

__construct($nestedContentFilter = null)

No description

Parameters

$nestedContentFilter

protected Zend_Cache_Frontend getCache()

Gets the cache to use

Return Value

Zend_Cache_Frontend

mixed getContent(string $key, callable $callback)

Evaluates the result of the given callback

Parameters

string $key

Unique key for this

callable $callback

Callback for evaluating the content

Return Value

mixed

Result of $callback()