PHP 인터페이스 MarvinLabs\SetupWizard\Contracts\SetupWizard

파일 보기 프로젝트 열기: marvinlabs/laravel-setup-wizard

공개 메소드들

메소드 설명
currentStep ( ) : MarvinLabs\SetupWizard\Contracts\WizardStep
firstStep ( ) : MarvinLabs\SetupWizard\Contracts\WizardStep
initialize ( $currentStepSlug ) Initialize the wizard for the current request. Sets the current step, etc.
isCurrent ( string $stepId ) : boolean Check if the step ID corresponds to the current step
isFirst ( string $stepId = null ) : boolean If the step the first one of the wizard
isLast ( string $stepId = null ) : boolean If the step the first one of the wizard
nextStep ( ) : MarvinLabs\SetupWizard\Contracts\WizardStep
previousStep ( ) : MarvinLabs\SetupWizard\Contracts\WizardStep
progress ( ) : integer
stepIndex ( string $stepId ) : integer
steps ( ) : array Get the steps which

메소드 상세

currentStep() 공개 메소드

public currentStep ( ) : MarvinLabs\SetupWizard\Contracts\WizardStep
리턴 MarvinLabs\SetupWizard\Contracts\WizardStep The current step

firstStep() 공개 메소드

public firstStep ( ) : MarvinLabs\SetupWizard\Contracts\WizardStep
리턴 MarvinLabs\SetupWizard\Contracts\WizardStep The first step of the wizard

initialize() 공개 메소드

Initialize the wizard for the current request. Sets the current step, etc.
public initialize ( $currentStepSlug )
$currentStepSlug

isCurrent() 공개 메소드

Check if the step ID corresponds to the current step
public isCurrent ( string $stepId ) : boolean
$stepId string The ID of the step
리턴 boolean true if the step is the current one

isFirst() 공개 메소드

If the step the first one of the wizard
public isFirst ( string $stepId = null ) : boolean
$stepId string The ID of the step, or null to target the current step
리턴 boolean true if the step is the first

isLast() 공개 메소드

If the step the first one of the wizard
public isLast ( string $stepId = null ) : boolean
$stepId string The ID of the step, or null to target the current step
리턴 boolean true if the step is the last

nextStep() 공개 메소드

public nextStep ( ) : MarvinLabs\SetupWizard\Contracts\WizardStep
리턴 MarvinLabs\SetupWizard\Contracts\WizardStep The next step

previousStep() 공개 메소드

public previousStep ( ) : MarvinLabs\SetupWizard\Contracts\WizardStep
리턴 MarvinLabs\SetupWizard\Contracts\WizardStep The previous step

progress() 공개 메소드

public progress ( ) : integer
리턴 integer Percentage of progress for the wizard, given the current step

stepIndex() 공개 메소드

public stepIndex ( string $stepId ) : integer
$stepId string The ID of the step
리턴 integer The step order number (0 is the first step)

steps() 공개 메소드

Get the steps which
public steps ( ) : array
리턴 array The step objects