PHP Class SteppedCheckout, silvershop-core

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

Protected Properties

Свойство Type Description
$owner CheckoutPage_Controller

Méthodes publiques

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

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

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

IsFutureStep() public méthode

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

IsPastStep() public méthode

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

StepExists() public méthode

public StepExists ( $name )

getSteps() public méthode

public getSteps ( )

index() public méthode

Get first step from stored steps
public index ( )

onAfterInit() public méthode

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

setupSteps() public static méthode

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

Property Details

$owner protected_oe property

protected CheckoutPage_Controller $owner
Résultat CheckoutPage_Controller