PHP Класс ProductVariationsExtension, silvershop-core

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

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

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