SilverStripe\CKANRegistry\Model\Resource
A CKAN Resource that belongs to a DataSet/Package, as to be accessed via the CKAN API.
Synopsis
class Resource
extends DataObject
{
- // members
- private static string $table_name = 'CKANResource';
- private static array $db = ;
- private static array $has_many = ;
- private static array $defaults = ;
- // methods
- public void onAfterWrite()
- public void onBeforeWrite()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $defaults
- $has_many
- $table_name
Methods
public
- onAfterWrite() — Whenever the CKAN resource identifier is changed we should clear any existing field and filter configurations
- onBeforeWrite() — Whenever the CKAN resource identifier is changed, populate a new set of metadata for the new resource