Source of file ResourcePopulatorInterface.php
Size: 0,909 Bytes - Last Modified: 2021-12-23T10:28:15+00:00
/var/www/docs.ssmods.com/process/src/src/Service/ResourcePopulatorInterface.php
1234567891011121314151617181920212223242526272829303132 | <?php namespace SilverStripe\CKANRegistry\Service; use RuntimeException; use SilverStripe\CKANRegistry\Model\Resource; interface ResourcePopulatorInterface { /** * 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. * * @param Resource $resource * @throws RuntimeException */ public function populateMetadata(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. * * @param Resource $resource * @throws RuntimeException */ public function populateFields(Resource $resource); } |