UncleCheese\Green\DataSource
Class DataSource
Defines a file of serialised data (e.g. JSON, YAML) that can be used
to populate a template
- Author: UncleCheese <unclecheese@leftandmain.com>
Synopsis
class DataSource
{
- // members
- protected $path;
- // methods
- public void __construct()
- public SerialisedDBField|null toDBObject()
- public string getName()
- public string getPath()
Members
protected
- $path — string
Methods
public
- __construct() — DataSource constructor.
- getName() — A simple name for the data source
- getPath()
- toDBObject() — Converts the file content into a SerialisedDBField