PHP Class ProductAttributeType, silvershop-core

.., but the lists that contain the ProductAttributeValues. For a clothing store you will have two entries: - Size - Colour
Inheritance: extends DataObject, implements EditableEcommerceObject
ファイルを表示 Open project: burnbright/silverstripe-shop Class Usage Examples

Public Methods

Method Description
addValues ( array $values )
canDelete ( $member = null )
convertArrayToValues ( array $values ) : ArrayList Finds or creates values for this type.
find_or_make ( $name )
getCMSFields ( )
getDropDownField ( $emptystring = null, ArrayList $values = null ) : DropdownField Returns a dropdown field for the user to select a variant.
onBeforeWrite ( )

Method Details

addValues() public method

public addValues ( array $values )
$values array

canDelete() public method

public canDelete ( $member = null )

convertArrayToValues() public method

Finds or creates values for this type.
public convertArrayToValues ( array $values ) : ArrayList
$values array
return ArrayList

find_or_make() public static method

public static find_or_make ( $name )

getCMSFields() public method

public getCMSFields ( )

getDropDownField() public method

Returns a dropdown field for the user to select a variant.
public getDropDownField ( $emptystring = null, ArrayList $values = null ) : DropdownField
$values ArrayList
return DropdownField

onBeforeWrite() public method

public onBeforeWrite ( )