interface ResourcePopulatorInterface (View source)

Methods

populateMetadata(Resource $resource)

Populate the given {@link Resource} with metadata from the CKAN API

populateFields(Resource $resource)

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

Details

populateMetadata(Resource $resource)

Populate the given {@link 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