PHP Class WellCommerce\Bundle\CoreBundle\Twig\Extension\DynamicRoutingExtension

Author: Adam Piotrowski ([email protected])
Inheritance: extends Twig_Extension
显示文件 Open project: wellcommerce/wellcommerce

Public Methods

Method Description
__construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $generator, WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface $requestHelper ) DynamicRoutingExtension constructor.
checkRouteIsActive ( string $route ) : boolean
getDynamicPath ( array $replacements = [] ) : string
getFunctions ( )
getName ( )
getSortingOptions ( array $columns = [] ) : array

Private Methods

Method Description
isSortingActive ( string $column, string $direction ) : boolean

Method Details

__construct() public method

DynamicRoutingExtension constructor.
public __construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $generator, WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface $requestHelper )
$generator Symfony\Component\Routing\Generator\UrlGeneratorInterface
$requestHelper WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface

checkRouteIsActive() public method

public checkRouteIsActive ( string $route ) : boolean
$route string
return boolean

getDynamicPath() public method

public getDynamicPath ( array $replacements = [] ) : string
$replacements array
return string

getFunctions() public method

public getFunctions ( )

getName() public method

public getName ( )

getSortingOptions() public method

public getSortingOptions ( array $columns = [] ) : array
$columns array
return array