PHP Class WellCommerce\Bundle\ProductStatusBundle\Twig\Extension\ProductStatusExtension

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

Protected Properties

Property Type Description
$dataset WellCommerce\Component\DataSet\DataSetInterface

Public Methods

Method Description
__construct ( WellCommerce\Component\DataSet\DataSetInterface $dataset ) Constructor
getFunctions ( )
getName ( )
getProductStatuses ( integer $limit = 5, string $orderBy = 'name', string $orderDir = 'asc' ) : array Returns product statuses

Method Details

__construct() public method

Constructor
public __construct ( WellCommerce\Component\DataSet\DataSetInterface $dataset )
$dataset WellCommerce\Component\DataSet\DataSetInterface

getFunctions() public method

public getFunctions ( )

getName() public method

public getName ( )

getProductStatuses() public method

Returns product statuses
public getProductStatuses ( integer $limit = 5, string $orderBy = 'name', string $orderDir = 'asc' ) : array
$limit integer
$orderBy string
$orderDir string
return array

Property Details

$dataset protected_oe property

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