Broarm\PageSlices\PageContentSlice_Controller
Class PageContentSlice_Controller
Synopsis
class PageContentSlice_Controller
extends PageSliceController
{
- // Inherited members from PageSliceController
- protected PageSlice $slice;
- protected boolean $useCaching;
- // methods
- public void getTemplate()
- // Inherited methods from PageSliceController
- 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
Members
protected
- $slice — Broarm\PageSlices\PageSlice
- $useCaching
—
boolean
Overwrite this setting on your subclass to disable caching on a per slice basis
Methods
public
Inherited from Broarm\PageSlices\PageSliceController
public
- 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