Broarm\EventTickets\Model\UserFields\UserNumericField
Class UserNumericField
- Author: Bram de Leeuw
Synopsis
class UserNumericField
extends UserField
{
- // members
- private static string $table_name = 'EventTickets_UserNumericField';
- protected NumericField $fieldType = NumericField::class;
- private static array $db = ;
- // Inherited members from UserField
- protected FormField $fieldType;
- protected $fieldName;
- // methods
- public void getType()
- public void getCMSFields()
- public NumericField|FormField createField()
- // 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
- $db
- $table_name
protected
- $fieldName
—
string
Field name to be used in the AttendeeField (Composite field) - $fieldType — SilverStripe\Forms\NumericField
- $fieldType — SilverStripe\Forms\FormField
Methods
public
- createField() — Create a default text field
- getCMSFields()
- 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