PHP 클래스 ProductVariationsExtension, silvershop-core

상속: extends DataExtension
파일 보기 프로젝트 열기: burnbright/silverstripe-shop

공개 메소드들

메소드 설명
PriceRange ( )
contentcontrollerInit ( $controller )
generateVariationsFromAttributes ( ProductAttributeType $attributetype, array $values ) Generates variations based on selected attributes.
getVariationByAttributes ( array $attributes ) : null Pass an array of attribute ids to query for the appropriate variation.
onAfterDelete ( ) Make sure variations are deleted with product.
possibleValuesForAttributeType ( $type ) : DataList Get all the {@link ProductAttributeValue} for a given attribute type, based on this product's variations.
updateCMSFields ( FieldList $fields ) Adds variations specific fields to the CMS.

메소드 상세

PriceRange() 공개 메소드

public PriceRange ( )

contentcontrollerInit() 공개 메소드

public contentcontrollerInit ( $controller )

generateVariationsFromAttributes() 공개 메소드

Generates variations based on selected attributes.
public generateVariationsFromAttributes ( ProductAttributeType $attributetype, array $values )
$attributetype ProductAttributeType
$values array

getVariationByAttributes() 공개 메소드

Pass an array of attribute ids to query for the appropriate variation.
public getVariationByAttributes ( array $attributes ) : null
$attributes array
리턴 null

onAfterDelete() 공개 메소드

Make sure variations are deleted with product.
public onAfterDelete ( )

possibleValuesForAttributeType() 공개 메소드

Get all the {@link ProductAttributeValue} for a given attribute type, based on this product's variations.
public possibleValuesForAttributeType ( $type ) : DataList
리턴 DataList

updateCMSFields() 공개 메소드

Adds variations specific fields to the CMS.
public updateCMSFields ( FieldList $fields )
$fields FieldList