PHP Class WellCommerce\Bundle\CategoryBundle\Twig\Extension\CategoryExtension

Author: Adam Piotrowski ([email protected])
Inheritance: extends Twig_Extension
ファイルを表示 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
getCategoriesTree ( integer $limit = 1000, string $orderBy = 'hierarchy', string $orderDir = 'asc' ) : array Returns categories tree
getFunctions ( )
getName ( )

Method Details

__construct() public method

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

getCategoriesTree() public method

Returns categories tree
public getCategoriesTree ( integer $limit = 1000, string $orderBy = 'hierarchy', string $orderDir = 'asc' ) : array
$limit integer
$orderBy string
$orderDir string
return array

getFunctions() public method

public getFunctions ( )

getName() public method

public getName ( )

Property Details

$dataset protected_oe property

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