SilverCart\Forms\FormFields\AddressOptionsetField
A formfield for the payment checkout step that can render additional payment informations.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class AddressOptionsetField
extends OptionsetField
{
- // members
- protected $field = NULL;
- // methods
- public string Field()
- public boolean canDelete()
- public string fieldLabel()
Hierarchy
Extends
- SilverStripe\Forms\OptionsetField
Members
protected
- $field
—
string
Markup of the field
Methods
public
- Field() — Create a UL tag containing sets of radio buttons and labels. The IDs are set to FieldID_ItemKey, where ItemKey is the key with all non-alphanumerics removed.
- canDelete() — Basicly checks whether an address can be deleted by delete button or not
- fieldLabel() — Returns an Address field label for the given name.