PHP Class AddressBookCheckoutComponent, silvershop-core

Inheritance: extends AddressCheckoutComponent, implements i18nEntityProvider
Show file Open project: burnbright/silverstripe-shop

Protected Properties

Property Type Description
$addtoaddressbook

Public Methods

Method Description
getExistingAddressFields ( ) : FieldList | null Allow choosing from an existing address
getFormFields ( Order $order )
getRequiredFields ( Order $order ) : array We don't know at the front end which fields are required so we defer to validateData
provideI18nEntities ( ) : array Provide translatable entities for this class
setData ( Order $order, array $data ) Create a new address if the existing address has changed, or is not yet created.
validateData ( Order $order, array $data )

Method Details

getExistingAddressFields() public method

Allow choosing from an existing address
public getExistingAddressFields ( ) : FieldList | null
return FieldList | null fields for

getFormFields() public method

public getFormFields ( Order $order )
$order Order

getRequiredFields() public method

We don't know at the front end which fields are required so we defer to validateData
public getRequiredFields ( Order $order ) : array
$order Order
return array

provideI18nEntities() public method

Provide translatable entities for this class
public provideI18nEntities ( ) : array
return array

setData() public method

Create a new address if the existing address has changed, or is not yet created.
public setData ( Order $order, array $data )
$order Order order to get addresses from
$data array data to set

validateData() public method

public validateData ( Order $order, array $data )
$order Order
$data array

Property Details

$addtoaddressbook protected property

protected $addtoaddressbook