Heystack\Core\ViewableData\ViewableDataInterface
Implementing class can be wrapped in a ViewableDataFormattor and then used in templates
- Author: Cam Spiers <cameron@heyday.co.nz>
Synopsis
interface ViewableDataInterface
{
- // methods
- public array getDynamicMethods()
- public array getCastings()
Methods
public
- getCastings() — Returns an array of SilverStripe DBField castings keyed by field name
- getDynamicMethods() — Defines what methods the implementing class implements dynamically through __get and __set