PHP Class eZ\Publish\Core\MVC\Symfony\Templating\Twig\FieldBlockRenderer

Inheritance: implements eZ\Publish\Core\MVC\Symfony\Templating\FieldBlockRendererInterface
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Méthode Description
renderContentFieldEdit ( eZ\Publish\API\Repository\Values\Content\Field $field, $fieldTypeIdentifier, array $params = [] )
renderContentFieldView ( eZ\Publish\API\Repository\Values\Content\Field $field, $fieldTypeIdentifier, array $params = [] )
renderFieldDefinitionEdit ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, array $params = [] )
renderFieldDefinitionView ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, array $params = [] )
setBaseTemplate ( string | Twig_Templat\Twig_Template $baseTemplate )
setFieldDefinitionEditResources ( array $fieldDefinitionEditResources = null )
setFieldDefinitionViewResources ( array $fieldDefinitionViewResources = null )
setFieldEditResources ( array $fieldEditResources = null )
setFieldViewResources ( array $fieldViewResources = null )
setTwig ( Twig_Environment $twig )
sortResourcesCallback ( array $a, array $b )

Private Methods

Méthode Description
getBlockByName ( string $name, string $resourcesName ) : array Returns the template block of the given $name available in the resources which name is $resourcesName.
getBlocksByField ( string $fieldTypeIdentifier, integer $type, null | string | Twig_Templat\Twig_Template $localTemplate = null ) : array Returns template blocks for $fieldTypeIdentifier. First check in the $localTemplate if it's provided.
getBlocksByFieldDefinition ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $definition, integer $type ) : array Returns the template block for the settings of the field definition $definition.
getRenderFieldBlockName ( string $fieldTypeIdentifier, integer $type ) : string Returns expected block name for $fieldTypeIdentifier, attached in $content.
getRenderFieldDefinitionBlockName ( string $fieldTypeIdentifier, integer $type ) : string Returns the name of the block to render the settings of the field definition $definition.
renderContentField ( eZ\Publish\API\Repository\Values\Content\Field $field, string $fieldTypeIdentifier, array $params, integer $type ) : string
renderFieldDefinition ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, array $params, integer $type ) : string
searchBlock ( string $blockName, Twig_Template $tpl ) : array | null Returns the block named $blockName in the given template. If it's not found, returns null.

Method Details

renderContentFieldEdit() public méthode

public renderContentFieldEdit ( eZ\Publish\API\Repository\Values\Content\Field $field, $fieldTypeIdentifier, array $params = [] )
$field eZ\Publish\API\Repository\Values\Content\Field
$params array

renderContentFieldView() public méthode

public renderContentFieldView ( eZ\Publish\API\Repository\Values\Content\Field $field, $fieldTypeIdentifier, array $params = [] )
$field eZ\Publish\API\Repository\Values\Content\Field
$params array

renderFieldDefinitionEdit() public méthode

public renderFieldDefinitionEdit ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, array $params = [] )
$fieldDefinition eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$params array

renderFieldDefinitionView() public méthode

public renderFieldDefinitionView ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, array $params = [] )
$fieldDefinition eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$params array

setBaseTemplate() public méthode

public setBaseTemplate ( string | Twig_Templat\Twig_Template $baseTemplate )
$baseTemplate string | Twig_Templat\Twig_Template

setFieldDefinitionEditResources() public méthode

public setFieldDefinitionEditResources ( array $fieldDefinitionEditResources = null )
$fieldDefinitionEditResources array

setFieldDefinitionViewResources() public méthode

public setFieldDefinitionViewResources ( array $fieldDefinitionViewResources = null )
$fieldDefinitionViewResources array

setFieldEditResources() public méthode

public setFieldEditResources ( array $fieldEditResources = null )
$fieldEditResources array

setFieldViewResources() public méthode

public setFieldViewResources ( array $fieldViewResources = null )
$fieldViewResources array

setTwig() public méthode

public setTwig ( Twig_Environment $twig )
$twig Twig_Environment

sortResourcesCallback() public méthode

public sortResourcesCallback ( array $a, array $b )
$a array
$b array