SilverStripe\UserForms\Model\EditableFormField\EditableOption
Base Class for EditableOption Fields such as the ones used in dropdown fields and in radio check box groups
Synopsis
class EditableOption
extends DataObject
{
- // members
- private static string $default_sort = 'Sort';
- private static array $db = ;
- private static array $has_one = ;
- private static array $extensions = ;
- private static array $summary_fields = ;
- protected static boolean $allow_empty_values = false;
- private static string $table_name = 'EditableOption';
- // methods
- public static boolean allow_empty_values()
- public static void set_allow_empty_values()
- public string getEscapedTitle()
- public string getValue()
- protected void onBeforeWrite()
- public boolean canEdit()
- public boolean canDelete()
- public bool canView()
- public bool canCreate()
- public bool canPublish()
- public bool canUnpublish()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $default_sort
- $extensions
- $has_one
- $summary_fields
- $table_name
protected
- $allow_empty_values
Methods
protected
public
- allow_empty_values() — Returns whether to allow empty values or not.
- canCreate() — Return whether a user can create an object of this type
- canDelete()
- canEdit()
- canPublish()
- canUnpublish()
- canView()
- getEscapedTitle()
- getValue() — Fetches a value for $this->Value. If empty values are not allowed, then this will return the title in the case of an empty value.
- set_allow_empty_values() — Set whether to allow empty values.