Broarm\EventTickets\Model\UserFields\UserOptionSetField
Class UserOptionSetField
- Author: Bram de Leeuw
Synopsis
class UserOptionSetField
extends UserField
{
- // members
- private static string $table_name = 'EventTickets_UserOptionSetField';
- protected OptionsetField $fieldType = OptionsetField::class;
- private static array $has_many = ;
- // Inherited members from UserField
- protected FormField $fieldType;
- protected $fieldName;
- // methods
- public void getType()
- public void getCMSFields()
- public OptionsetField createField()
- public mixed getValue()
- // Inherited methods from UserField
- public void getType()
- public void getCMSFields()
- public void onBeforeWrite()
- public FormField getFieldType()
- public mixed getRequiredNice()
- public mixed|string getValue()
- public static UserField|DataObject createDefaultField()
- public FormField createField()
- public string singular_name()
- public void canDelete()
- public static void availableFields()
Hierarchy
Members
private
- $has_many
- $table_name
protected
- $fieldName
—
string
Field name to be used in the AttendeeField (Composite field) - $fieldType — SilverStripe\Forms\OptionsetField
- $fieldType — SilverStripe\Forms\FormField
Methods
public
- createField()
- getCMSFields()
- getType()
- getValue() — Get the value by set option
Inherited from Broarm\EventTickets\Model\UserFields\UserField
public
- availableFields()
- canDelete()
- createDefaultField() — Create a field from given configuration These fields are created based on the set default fields @see Attendee::$default_fields
- createField() — Create the actual field Overwrite this on the field subclass
- getCMSFields()
- getFieldType() — Get the filed type
- getRequiredNice() — Show if the field is required in a nice format
- getType()
- getValue() — Get the value
- onBeforeWrite()
- singular_name() — Returns the singular name without the namespaces