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

Author: Adam Piotrowski ([email protected])
Inheritance: extends Twig_Extension
Afficher le fichier Open project: wellcommerce/wellcommerce

Méthodes publiques

Méthode 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

Méthode Description
isSortingActive ( string $column, string $direction ) : boolean

Method Details

__construct() public méthode

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 méthode

public checkRouteIsActive ( string $route ) : boolean
$route string
Résultat boolean

getDynamicPath() public méthode

public getDynamicPath ( array $replacements = [] ) : string
$replacements array
Résultat string

getFunctions() public méthode

public getFunctions ( )

getName() public méthode

public getName ( )

getSortingOptions() public méthode

public getSortingOptions ( array $columns = [] ) : array
$columns array
Résultat array