Property | Type | Description | |
---|---|---|---|
$components | |||
$namespaced | |||
$order |
Method | Description | |
---|---|---|
__construct ( Order $order, $namespaced = true ) | namespace fields according to their component | |
addComponent ( CheckoutComponent $component, string $insertBefore = null ) | ||
getComponentByType ( $type ) : GridFieldComponent | Returns the first available component with the given class or interface. | |
getComponents ( ) : ArrayList | ||
getData ( ) : array | Get combined data | |
getFormFields ( ) : FieldList | Get combined form fields | |
getOrder ( ) | ||
getRequiredFields ( ) | ||
setData ( array $data ) | Set data on all components | |
validateData ( array $data ) : boolean | Validate every component against given data. |
Method | Description | |
---|---|---|
dependantData ( $component, $data ) | Helper function for saving data from other components. |
public __construct ( Order $order, $namespaced = true ) | ||
$order | Order |
public addComponent ( CheckoutComponent $component, string $insertBefore = null ) | ||
$component | CheckoutComponent | |
$insertBefore | string | The class of the component to insert this one before |
protected dependantData ( $component, $data ) |
public getComponentByType ( $type ) : GridFieldComponent | ||
return | GridFieldComponent |
public getComponents ( ) : ArrayList | ||
return | ArrayList | Of GridFieldComponent |
public getFormFields ( ) : FieldList | ||
return | FieldList | namespaced fields |
public validateData ( array $data ) : boolean | ||
$data | array | data to validate |
return | boolean | validation result |