\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;
- // methods
- public static boolean allow_empty_values()
- public static void set_allow_empty_values()
- public boolean canEdit()
- public boolean canDelete()
- public string getEscapedTitle()
- public bool canView()
- public bool canCreate()
- protected DataObject getCanCreateContext()
- public bool canPublish()
- public bool canUnpublish()
- public string getValue()
- protected void onBeforeWrite()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $default_sort
- $extensions
- $has_one
- $summary_fields
protected
- $allow_empty_values
Methods
protected
- getCanCreateContext() — Helper method to check the parent for this object
- onBeforeWrite()
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.