interface ResourcePopulatorInterface (View source)

Methods

public
populateMetadata(Resource $resource)

Populate the given Resource with metadata from the CKAN API

public
populateFields(Resource $resource)

Populate fields from the CKAN API endpoint specified on this given resource.

Details

populateMetadata(Resource $resource)

Populate the given Resource with metadata from the CKAN API

Throws an exception when the CKAN API is unreachable or response with an error, or if the resource is not properly configured.

Parameters

Resource $resource

Exceptions

RuntimeException

populateFields(Resource $resource)

Populate fields from the CKAN API endpoint specified on this given resource.

Throws an exception when the CKAN API is unreachable or responds with an error, or if the resource is not properly configured.

Parameters

Resource $resource

Exceptions

RuntimeException