Broarm\PageSlices\PageSliceController
Class PageSliceController
Synopsis
class PageSliceController
extends Controller
implements
Flushable
{
- // members
- protected PageSlice $slice;
- protected boolean $useCaching = true;
- private static boolean $enable_cache = false;
- private static array $allowed_actions = ;
- // methods
- public void __construct()
- public void init()
- public string Link()
- public Controller Parent()
- public PageSlice getSlice()
- public bool useCaching()
- public string getCacheKey()
- public static CacheInterface cache()
- public static void flush()
- public HTMLText getTemplate()
- public void renderTemplate()
Hierarchy
Extends
- SilverStripe\Control\Controller
Implements
- SilverStripe\Core\Flushable
Members
private
- $allowed_actions — array
- $enable_cache
—
boolean
Turn the caching feature on/off
protected
- $slice — Broarm\PageSlices\PageSlice
- $useCaching
—
boolean
Overwrite this setting on your subclass to disable caching on a per slice basis
Methods
public
- __construct()
- Link()
- Parent() — Get the parent Controller
- cache()
- flush() — Flush the caches
- getCacheKey() — The Cache key with basis properties Extend this on your subclass for more specific properties
- getSlice()
- getTemplate() — Return the rendered template
- init() — Trigger the on after init here because we don't have a request handler on the page slice controller
- renderTemplate()
- useCaching() — Check if the caching featured is turned on and enabled for this slice