PHP Class SteppedCheckout, silvershop-core

Inheritance: extends Extension
Exibir arquivo Open project: burnbright/silverstripe-shop Class Usage Examples

Protected Properties

Property Type Description
$owner CheckoutPage_Controller

Public Methods

Method Description
IsCurrentStep ( $name ) Check if passed action is the same as the current step
IsFutureStep ( $name ) Check if passed action is for a step after current
IsPastStep ( $name ) Check if passed action is for a step before current
StepExists ( $name )
getSteps ( )
index ( ) Get first step from stored steps
onAfterInit ( ) Redirect back to start of checkout if no cart started
setupSteps ( $steps = null ) Set up CheckoutPage_Controller decorators for managing steps

Private Methods

Method Description
actionPos ( $incoming ) Get the numerical position of a step
compareActions ( $action1, $action2 ) Check if one step comes before or after the another

Method Details

IsCurrentStep() public method

Check if passed action is the same as the current step
public IsCurrentStep ( $name )

IsFutureStep() public method

Check if passed action is for a step after current
public IsFutureStep ( $name )

IsPastStep() public method

Check if passed action is for a step before current
public IsPastStep ( $name )

StepExists() public method

public StepExists ( $name )

getSteps() public method

public getSteps ( )

index() public method

Get first step from stored steps
public index ( )

onAfterInit() public method

Redirect back to start of checkout if no cart started
public onAfterInit ( )

setupSteps() public static method

Set up CheckoutPage_Controller decorators for managing steps
public static setupSteps ( $steps = null )

Property Details

$owner protected_oe property

protected CheckoutPage_Controller $owner
return CheckoutPage_Controller