Broarm\EventTickets\Model\UserFields\UserCheckboxField
Class UserCheckboxField
- Author: Bram de Leeuw
Synopsis
class UserCheckboxField
extends UserField
{
- // members
- private static string $table_name = 'EventTickets_UserCheckboxField';
- protected CheckboxField $fieldType = CheckboxField::class;
- // Inherited members from UserField
- protected FormField $fieldType;
- protected $fieldName;
- // methods
- public void getType()
- public string getNiceValue()
- // 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
- $table_name
protected
- $fieldName
—
string
Field name to be used in the AttendeeField (Composite field) - $fieldType — SilverStripe\Forms\CheckboxField
- $fieldType — SilverStripe\Forms\FormField
Methods
public
- getNiceValue() — Get the value in a readable manner
- getType()
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