PHP 클래스 Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardStatus

파일 보기 프로젝트 열기: elcodi/bamboo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$productRepository Elcodi\Component\Product\Repository\ProductRepository Product repository
$store Elcodi\Component\Store\Entity\Interfaces\StoreInterface Store

공개 메소드들

메소드 설명
__construct ( Elcodi\Component\Product\Repository\ProductRepository $productRepository, Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, array $enabledPaymentPlugins, array $enabledShippingPlugins ) Builds a new WizardStepChecker
getNextStep ( ) : integer | null Get the next step.
getStepsFinishStatus ( ) : boolean[] Gets the finish status for all the steps
isStepFinished ( integer $stepNumber ) : boolean Checks if the received step is finished.
isWizardFinished ( ) : boolean Checks if the wizard has already been finished

보호된 메소드들

메소드 설명
isAddressFulfilled ( ) : boolean Checks if the address has been fulfilled.
isPaymentFulfilled ( ) : boolean Checks if the payment has been fulfilled
isShippingFulfilled ( ) : boolean Checks if any shipping range has been added to the store.
isThereAnyProduct ( ) : boolean Checks if there is any product on the store.

메소드 상세

__construct() 공개 메소드

Builds a new WizardStepChecker
public __construct ( Elcodi\Component\Product\Repository\ProductRepository $productRepository, Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, array $enabledPaymentPlugins, array $enabledShippingPlugins )
$productRepository Elcodi\Component\Product\Repository\ProductRepository Product repository
$store Elcodi\Component\Store\Entity\Interfaces\StoreInterface Store
$enabledPaymentPlugins array The enabled payment methods
$enabledShippingPlugins array The enabled shipping methods

getNextStep() 공개 메소드

Get the next step.
public getNextStep ( ) : integer | null
리턴 integer | null The next step, null if the wizard is finished.

getStepsFinishStatus() 공개 메소드

Gets the finish status for all the steps
public getStepsFinishStatus ( ) : boolean[]
리턴 boolean[]

isAddressFulfilled() 보호된 메소드

Checks if the address has been fulfilled.
protected isAddressFulfilled ( ) : boolean
리턴 boolean

isPaymentFulfilled() 보호된 메소드

Checks if the payment has been fulfilled
protected isPaymentFulfilled ( ) : boolean
리턴 boolean

isShippingFulfilled() 보호된 메소드

Checks if any shipping range has been added to the store.
protected isShippingFulfilled ( ) : boolean
리턴 boolean

isStepFinished() 공개 메소드

Checks if the received step is finished.
public isStepFinished ( integer $stepNumber ) : boolean
$stepNumber integer A step number.
리턴 boolean If the step is finished

isThereAnyProduct() 보호된 메소드

Checks if there is any product on the store.
protected isThereAnyProduct ( ) : boolean
리턴 boolean

isWizardFinished() 공개 메소드

Checks if the wizard has already been finished
public isWizardFinished ( ) : boolean
리턴 boolean

프로퍼티 상세

$productRepository 보호되어 있는 프로퍼티

Product repository
protected ProductRepository,Elcodi\Component\Product\Repository $productRepository
리턴 Elcodi\Component\Product\Repository\ProductRepository

$store 보호되어 있는 프로퍼티

Store
protected StoreInterface,Elcodi\Component\Store\Entity\Interfaces $store
리턴 Elcodi\Component\Store\Entity\Interfaces\StoreInterface