PHP Class OrderActionsForm, silvershop-core

Inheritance: extends Form
显示文件 Open project: burnbright/silverstripe-shop Class Usage Examples

Protected Properties

Property Type Description
$order

Public Methods

Method Description
__construct ( $controller, $name, Order $order )
docancel ( array $data, Form $form ) Form action handler for CancelOrderForm.
dopayment ( array $data, Form $form ) : boolean Make payment for a place order, where payment had previously failed.

Protected Methods

Method Description
getCCFields ( array $gateways ) : CompositeField | null Get credit card fields for the given gateways

Method Details

__construct() public method

public __construct ( $controller, $name, Order $order )
$order Order

docancel() public method

Take the order that this was to be change on, and set the status that was requested from the form request data.
public docancel ( array $data, Form $form )
$data array The form request data submitted
$form Form The {@link Form} this was submitted on

dopayment() public method

Make payment for a place order, where payment had previously failed.
public dopayment ( array $data, Form $form ) : boolean
$data array
$form Form
return boolean

getCCFields() protected method

Get credit card fields for the given gateways
protected getCCFields ( array $gateways ) : CompositeField | null
$gateways array
return CompositeField | null

Property Details

$order protected_oe property

protected $order