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
Afficher le fichier Open project: burnbright/silverstripe-shop Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public addValues ( array $values )
$values array

canDelete() public méthode

public canDelete ( $member = null )

convertArrayToValues() public méthode

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

find_or_make() public static méthode

public static find_or_make ( $name )

getCMSFields() public méthode

public getCMSFields ( )

getDropDownField() public méthode

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

onBeforeWrite() public méthode

public onBeforeWrite ( )