PHP Class WellCommerce\Bundle\ShopBundle\Twig\Extension\ShopExtension

Author: Adam Piotrowski ([email protected])
Inheritance: extends Twig_Extension
Show file Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$shopDataset WellCommerce\Component\DataSet\DataSetInterface
$shopStorage WellCommerce\Bundle\ShopBundle\Storage\ShopStorageInterface

Public Methods

Method Description
__construct ( WellCommerce\Bundle\ShopBundle\Storage\ShopStorageInterface $shopStorage, WellCommerce\Component\DataSet\DataSetInterface $shopDataset ) ShopExtension constructor.
getCurrentShop ( ) : WellCommerce\Bundle\ShopBundle\Entity\ShopInterface
getFunctions ( )
getName ( )
getShops ( ) : array

Method Details

__construct() public method

ShopExtension constructor.
public __construct ( WellCommerce\Bundle\ShopBundle\Storage\ShopStorageInterface $shopStorage, WellCommerce\Component\DataSet\DataSetInterface $shopDataset )
$shopStorage WellCommerce\Bundle\ShopBundle\Storage\ShopStorageInterface
$shopDataset WellCommerce\Component\DataSet\DataSetInterface

getCurrentShop() public method

public getCurrentShop ( ) : WellCommerce\Bundle\ShopBundle\Entity\ShopInterface
return WellCommerce\Bundle\ShopBundle\Entity\ShopInterface

getFunctions() public method

public getFunctions ( )

getName() public method

public getName ( )

getShops() public method

public getShops ( ) : array
return array

Property Details

$shopDataset protected property

protected DataSetInterface,WellCommerce\Component\DataSet $shopDataset
return WellCommerce\Component\DataSet\DataSetInterface

$shopStorage protected property

protected ShopStorageInterface,WellCommerce\Bundle\ShopBundle\Storage $shopStorage
return WellCommerce\Bundle\ShopBundle\Storage\ShopStorageInterface