PHP Class AddProductForm, silvershop-core

Inheritance: extends Form
Afficher le fichier Open project: burnbright/silverstripe-shop Class Usage Examples

Protected Properties

Свойство Type Description
$maxquantity integer Populates quantity dropdown with this many values
$saveablefields array Fields that can be saved to an order item.

Méthodes publiques

Méthode Description
__construct ( $controller, $name = "AddProductForm" )
addtocart ( $data, $form )
getBuyable ( $data = null )
setMaximumQuantity ( $qty ) Choose maximum value to populate quantity dropdown
setSaveableFields ( $fields )

Méthodes protégées

Méthode Description
getFormActions ( ) : FieldList
getFormFields ( ) : FieldList
getFormValidator ( ) : Validator

Method Details

__construct() public méthode

public __construct ( $controller, $name = "AddProductForm" )

addtocart() public méthode

public addtocart ( $data, $form )

getBuyable() public méthode

public getBuyable ( $data = null )

getFormActions() protected méthode

protected getFormActions ( ) : FieldList
Résultat FieldList Actions for this form.

getFormFields() protected méthode

protected getFormFields ( ) : FieldList
Résultat FieldList Fields for this form.

getFormValidator() protected méthode

protected getFormValidator ( ) : Validator
Résultat Validator Validator for this form.

setMaximumQuantity() public méthode

Choose maximum value to populate quantity dropdown
public setMaximumQuantity ( $qty )

setSaveableFields() public méthode

public setSaveableFields ( $fields )

Property Details

$maxquantity protected_oe property

Populates quantity dropdown with this many values
protected int $maxquantity
Résultat integer

$saveablefields protected_oe property

Fields that can be saved to an order item.
protected array $saveablefields
Résultat array