PHP Class Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardRoutes

Mostrar archivo Open project: elcodi/bamboo Class Usage Examples

Protected Properties

Property Type Description
$wizardRoutesByStep array The wizard routes by step
$wizardStatus WizardStatus The wizardStatus service

Public Methods

Method Description
__construct ( WizardStatus $wizardStatus ) Builds a new WizardRoutes class
getDefaultWizardRoute ( ) : boolean Gets the default route.
getNextStepRoute ( ) : string Get the next step route.
getStepByRoute ( string $route ) : integer | null Gets the step for the given routes.
getStepRoute ( string $step ) : string Get the route for the given step.
isWizardHidden ( string $route ) : boolean Checks if the wizard is hidden on the given route.
isWizardSetupRoute ( string $route ) : boolean Checks if the received route is one of the wizards setup pages.

Method Details

__construct() public method

Builds a new WizardRoutes class
public __construct ( WizardStatus $wizardStatus )
$wizardStatus WizardStatus

getDefaultWizardRoute() public method

Gets the default route.
public getDefaultWizardRoute ( ) : boolean
return boolean If is the default route.

getNextStepRoute() public method

Get the next step route.
public getNextStepRoute ( ) : string
return string The route

getStepByRoute() public method

Gets the step for the given routes.
public getStepByRoute ( string $route ) : integer | null
$route string The route to check
return integer | null The step route

getStepRoute() public method

Get the route for the given step.
public getStepRoute ( string $step ) : string
$step string The received step
return string The route

isWizardHidden() public method

Checks if the wizard is hidden on the given route.
public isWizardHidden ( string $route ) : boolean
$route string The route to check.
return boolean If the wizard is hidden.

isWizardSetupRoute() public method

Checks if the received route is one of the wizards setup pages.
public isWizardSetupRoute ( string $route ) : boolean
$route string The received route
return boolean If is part of the wizards setup.

Property Details

$wizardRoutesByStep protected_oe property

The wizard routes by step
protected array $wizardRoutesByStep
return array

$wizardStatus protected_oe property

The wizardStatus service
protected WizardStatus,Elcodi\Plugin\StoreSetupWizardBundle\Services $wizardStatus
return WizardStatus