PHP Class Elcodi\Admin\CurrencyBundle\Controller\CurrencyController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Show file Open project: elcodi/bamboo

Public Methods

Method Description
disableCurrencyAction ( Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface $currency ) : array Disable entity
enableCurrencyAction ( Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface $currency ) : array Enable entity
listAction ( ) : array List elements of certain entity type.
masterCurrencyAction ( Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface $currency ) : array Set the master currency.
navAction ( ) : array Nav for currency group

Method Details

disableCurrencyAction() public method

Disable entity
public disableCurrencyAction ( Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface $currency ) : array
$currency Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface The currency to disable
return array Result

enableCurrencyAction() public method

Enable entity
public enableCurrencyAction ( Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface $currency ) : array
$currency Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface The currency to enable
return array Result

listAction() public method

This action is just a wrapper, so should never get any data, as this is component responsibility
public listAction ( ) : array
return array Result

masterCurrencyAction() public method

Set the master currency.
public masterCurrencyAction ( Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface $currency ) : array
$store Elcodi\Component\Store\Entity\Interfaces\StoreInterface
$currency Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface
return array

navAction() public method

Nav for currency group
public navAction ( ) : array
return array Result