SilverStripe\CKANRegistry\Service\ResourcePopulator
This service will take a CKAN Resource and populate its Fields `has_many` relationship and other data from the CKAN API
Synopsis
class ResourcePopulator
implements
ResourcePopulatorInterface
{
- // members
- private static array $dependencies = ;
- protected APIClientInterface $apiClient;
- // methods
- public $this populateMetadata()
- public $this populateFields()
- protected bool validateResource()
- protected string parseName()
- public APIClientInterface getAPIClient()
- public $this setAPIClient()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Implements
Members
Methods
protected
- parseName() — Parse given column ID for a more readable version
- validateResource() — Validates that the given {@link Resource} has the necessary data to make the request
public
- getAPIClient()
- populateFields() — Take a CKAN {@link Resource} and populate its Fields `has_many` relationship and other data from the CKAN API response.
- populateMetadata() — Populates the {@link Resource} with metadata from the API response, such as the name of the data set
- setAPIClient()