PHP Класс CheckoutComponentConfig, silvershop-core

Наследование: extends Object
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$components
$namespaced
$order

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
dependantData ( $component, $data ) Helper function for saving data from other components.

Описание методов

__construct() публичный Метод

namespace fields according to their component
public __construct ( Order $order, $namespaced = true )
$order Order

addComponent() публичный Метод

public addComponent ( CheckoutComponent $component, string $insertBefore = null )
$component CheckoutComponent
$insertBefore string The class of the component to insert this one before

dependantData() защищенный Метод

Helper function for saving data from other components.
protected dependantData ( $component, $data )

getComponentByType() публичный Метод

Returns the first available component with the given class or interface.
public getComponentByType ( $type ) : GridFieldComponent
Результат GridFieldComponent

getComponents() публичный Метод

public getComponents ( ) : ArrayList
Результат ArrayList Of GridFieldComponent

getData() публичный Метод

Get combined data
public getData ( ) : array
Результат array map of field names to data values

getFormFields() публичный Метод

Get combined form fields
public getFormFields ( ) : FieldList
Результат FieldList namespaced fields

getOrder() публичный Метод

public getOrder ( )

getRequiredFields() публичный Метод

public getRequiredFields ( )

setData() публичный Метод

Set data on all components
public setData ( array $data )
$data array map of field names to data values

validateData() публичный Метод

Validate every component against given data.
public validateData ( array $data ) : boolean
$data array data to validate
Результат boolean validation result

Описание свойств

$components защищенное свойство

protected $components

$namespaced защищенное свойство

protected $namespaced

$order защищенное свойство

protected $order