SilverStripe\CKANRegistry\Forms\ResourceLocatorField
Synopsis
class ResourceLocatorField
extends FormField
{
- // members
- private static string $default_endpoint = 'https://demo.ckan.org/';
- protected string|null $defaultEndpoint;
- protected string|null $siteName = NULL;
- protected string $endpointFieldName = 'Endpoint';
- protected string $datasetFieldName = 'DataSet';
- protected string $resourceFieldName = 'Identifier';
- // methods
- public void __construct()
- public void getSchemaDataDefaults()
- public void performReadonlyTransformation()
- public void setValue()
- public void setSubmittedValue()
- public void dataValue()
- public void saveInto()
- public string getDefaultEndpoint()
- public $this setDefaultEndpoint()
- public null|string getSiteName()
- public $this setSiteName()
- public string getEndpointFieldName()
- public $this setEndpointFieldName()
- public string getDatasetFieldName()
- public $this setDatasetFieldName()
- public string getResourceFieldName()
- public $this setResourceFieldName()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
private
- $default_endpoint
—
string
The default CKAN endpoint to be used in a default isn't provided on construction
protected
- $datasetFieldName
—
string
The name of the subfield to save the dataset value of this field into - $defaultEndpoint
—
SilverStripe\CKANRegistry\Forms\string|null
The default CKAN endpoint to be used in this field. This will allow consumers of the field to only provide package or dataset IDs and still work. If not set the configured default will instead be used. - $endpointFieldName
—
string
The name of the subfield to save the endpoint value of this field into - $resourceFieldName
—
string
The name of the subfield to save the resource value of this field into - $siteName
—
SilverStripe\CKANRegistry\Forms\string|null
Set a site name that can be used to refer to the CKAN endpoint. By default this will be "a CKAN website".
Methods
public
- __construct()
- dataValue()
- getDatasetFieldName()
- getDefaultEndpoint()
- getEndpointFieldName()
- getResourceFieldName()
- getSchemaDataDefaults()
- getSiteName()
- performReadonlyTransformation()
- saveInto()
- setDatasetFieldName()
- setDefaultEndpoint()
- setEndpointFieldName()
- setResourceFieldName()
- setSiteName()
- setSubmittedValue()
- setValue()