SilverStripe\CKANRegistry\Model\ResourceFilter\Dropdown
Provides a single select option for CKAN resources to be filtered by
Synopsis
class Dropdown
extends ResourceFilter
{
- // members
- private static array $db = ;
- private static string $table_name = 'CKANFilter_Dropdown';
- private static string $singular_name = 'Dropdown';
- protected $fieldType = DropdownField::class;
- // Inherited members from ResourceFilter
- protected FormField $fieldType;
- // methods
- public void getCMSFields()
- public void getClientConfig()
- protected void getConfiguredOptions()
- // Inherited methods from ResourceFilter
- public void getCMSFields()
- public void forTemplate()
- public string getType()
- public array getClientConfig()
- public string|DBField getColumns()
- public string getTitle()
Hierarchy
Members
private
- $db
- $singular_name
- $table_name
protected
- $fieldType
- $fieldType
—
SilverStripe\Forms\FormField
Defines the type of {@link FormField} that will be used to render the filter in the CMS. This is defined in subclasses. Filters will render as TextFields by default.
Methods
protected
- getConfiguredOptions() — Get the options that have been configured for this dropdown by the CMS author. ie. parse the "Options" value
public
Inherited from SilverStripe\CKANRegistry\Model\ResourceFilter
public
- forTemplate() — {@inheritdoc}
- getCMSFields()
- getClientConfig() — Return a "schema" that can be provided to client side JavaScript components for client side rendering
- getColumns() — Returns either the selected column's readable label value, or a fixed string representing multiple columns having been selected.
- getTitle() — Use the filter label for GridField CRUD operation result messages
- getType() — Returns the type of the filter, used for summary fields