PHP 클래스 CheckoutComponentConfig, silvershop-core

상속: extends Object
파일 보기 프로젝트 열기: burnbright/silverstripe-shop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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