SilverStripe\VersionFeed\Filters\ContentFilter
Conditionally executes a given callback, attempting to return the desired results of its execution.
Synopsis
class ContentFilter
{
- // members
- protected ContentFilter $nestedContentFilter;
- private static integer $cache_lifetime = 300;
- // methods
- public void __construct()
- protected CacheInterface getCache()
- public mixed getContent()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $cache_lifetime
—
int
Cache lifetime
protected
- $nestedContentFilter
—
SilverStripe\VersionFeed\Filters\ContentFilter
Nested content filter
Methods
protected
- getCache() — Gets the cache to use
public
- __construct()
- getContent() — Evaluates the result of the given callback