PHP 클래스 Sylius\Bundle\GridBundle\Renderer\TwigGridRenderer

저자: Paweł Jędrzejewski ([email protected])
상속: implements Sylius\Component\Grid\Renderer\GridRendererInterface
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
__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 )

비공개 메소드들

메소드 설명
getFilterTemplate ( Sylius\Component\Grid\Definition\Filter $filter ) : string

메소드 상세

__construct() 공개 메소드

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 render ( Sylius\Component\Grid\View\GridViewInterface $gridView, $template = null )
$gridView Sylius\Component\Grid\View\GridViewInterface

renderAction() 공개 메소드

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 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 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