PHP Class Sylius\Bundle\GridBundle\Renderer\TwigGridRenderer

Author: Paweł Jędrzejewski ([email protected])
Inheritance: implements Sylius\Component\Grid\Renderer\GridRendererInterface
ファイルを表示 Open project: sylius/sylius

Public Methods

Method Description
__construct ( Twig_Environment $twig, Sylius\Component\Registry\ServiceRegistryInterface $fieldsRegistry, Symfony\Component\Form\FormFactoryInterface $formFactory, Sylius\Bundle\GridBundle\Form\Registry\FormTypeRegistryInterface $formTypeRegistry, string $defaultTemplate, array $actionTemplates = [], array $filterTemplates = [] )
render ( Sylius\Component\Grid\View\GridViewInterface $gridView, $template = null )
renderAction ( Sylius\Component\Grid\View\GridViewInterface $gridView, Sylius\Component\Grid\Definition\Action $action, $data = null )
renderField ( Sylius\Component\Grid\View\GridViewInterface $gridView, Sylius\Component\Grid\Definition\Field $field, $data )
renderFilter ( Sylius\Component\Grid\View\GridViewInterface $gridView, Sylius\Component\Grid\Definition\Filter $filter )

Private Methods

Method Description
getFilterTemplate ( Sylius\Component\Grid\Definition\Filter $filter ) : string

Method Details

__construct() public method

public __construct ( Twig_Environment $twig, Sylius\Component\Registry\ServiceRegistryInterface $fieldsRegistry, Symfony\Component\Form\FormFactoryInterface $formFactory, Sylius\Bundle\GridBundle\Form\Registry\FormTypeRegistryInterface $formTypeRegistry, string $defaultTemplate, array $actionTemplates = [], array $filterTemplates = [] )
$twig Twig_Environment
$fieldsRegistry Sylius\Component\Registry\ServiceRegistryInterface
$formFactory Symfony\Component\Form\FormFactoryInterface
$formTypeRegistry Sylius\Bundle\GridBundle\Form\Registry\FormTypeRegistryInterface
$defaultTemplate string
$actionTemplates array
$filterTemplates array

render() public method

public render ( Sylius\Component\Grid\View\GridViewInterface $gridView, $template = null )
$gridView Sylius\Component\Grid\View\GridViewInterface

renderAction() public method

public renderAction ( Sylius\Component\Grid\View\GridViewInterface $gridView, Sylius\Component\Grid\Definition\Action $action, $data = null )
$gridView Sylius\Component\Grid\View\GridViewInterface
$action Sylius\Component\Grid\Definition\Action

renderField() public method

public renderField ( Sylius\Component\Grid\View\GridViewInterface $gridView, Sylius\Component\Grid\Definition\Field $field, $data )
$gridView Sylius\Component\Grid\View\GridViewInterface
$field Sylius\Component\Grid\Definition\Field

renderFilter() public method

public renderFilter ( Sylius\Component\Grid\View\GridViewInterface $gridView, Sylius\Component\Grid\Definition\Filter $filter )
$gridView Sylius\Component\Grid\View\GridViewInterface
$filter Sylius\Component\Grid\Definition\Filter