PHP Class eZ\Publish\Core\MVC\Symfony\FieldType\RichText\Renderer

Inheritance: implements eZ\Publish\Core\FieldType\RichText\RendererInterface
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$embedConfigurationNamespace string
$logger null | Psr\Log\LoggerInterface
$repository eZ\Publish\Core\Repository\Repository
$tagConfigurationNamespace string
$templateEngine Symfony\Component\Templating\EngineInterface

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\Repository $repository, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, Symfony\Component\Templating\EngineInterface $templateEngine, string $tagConfigurationNamespace, string $embedConfigurationNamespace, Psr\Log\LoggerInterface $logger = null )
renderContentEmbed ( $contentId, $viewType, array $parameters, $isInline )
renderLocationEmbed ( $locationId, $viewType, array $parameters, $isInline )
renderTag ( $name, array $parameters, $isInline )

Protected Methods

Method Description
checkContent ( integer | string $id ) Check embed permissions for the given Content $id.
checkLocation ( integer | string $id ) : eZ\Publish\API\Repository\Values\Content\Location Checks embed permissions for the given Location $id and returns the Location.
getEmbedTemplateName ( $resourceType, $isInline, $isDenied ) : null | string Returns configured template reference for the given embed parameters.
getTagTemplateName ( string $identifier, boolean $isInline ) : null | string Returns configured template name for the given template tag identifier.
render ( string $templateReference, array $parameters ) : string Renders template $templateReference with given $parameters.

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\Repository $repository, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, Symfony\Component\Templating\EngineInterface $templateEngine, string $tagConfigurationNamespace, string $embedConfigurationNamespace, Psr\Log\LoggerInterface $logger = null )
$repository eZ\Publish\API\Repository\Repository
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$templateEngine Symfony\Component\Templating\EngineInterface
$tagConfigurationNamespace string
$embedConfigurationNamespace string
$logger Psr\Log\LoggerInterface

checkContent() protected method

Check embed permissions for the given Content $id.
protected checkContent ( integer | string $id )
$id integer | string

checkLocation() protected method

Checks embed permissions for the given Location $id and returns the Location.
protected checkLocation ( integer | string $id ) : eZ\Publish\API\Repository\Values\Content\Location
$id integer | string
return eZ\Publish\API\Repository\Values\Content\Location

getEmbedTemplateName() protected method

Returns configured template reference for the given embed parameters.
protected getEmbedTemplateName ( $resourceType, $isInline, $isDenied ) : null | string
$resourceType
$isInline
$isDenied
return null | string

getTagTemplateName() protected method

Returns configured template name for the given template tag identifier.
protected getTagTemplateName ( string $identifier, boolean $isInline ) : null | string
$identifier string
$isInline boolean
return null | string

render() protected method

Renders template $templateReference with given $parameters.
protected render ( string $templateReference, array $parameters ) : string
$templateReference string
$parameters array
return string

renderContentEmbed() public method

public renderContentEmbed ( $contentId, $viewType, array $parameters, $isInline )
$parameters array

renderLocationEmbed() public method

public renderLocationEmbed ( $locationId, $viewType, array $parameters, $isInline )
$parameters array

renderTag() public method

public renderTag ( $name, array $parameters, $isInline )
$parameters array

Property Details

$configResolver protected_oe property

protected ConfigResolverInterface,eZ\Publish\Core\MVC $configResolver
return eZ\Publish\Core\MVC\ConfigResolverInterface

$embedConfigurationNamespace protected_oe property

protected string $embedConfigurationNamespace
return string

$logger protected_oe property

protected null|LoggerInterface,Psr\Log $logger
return null | Psr\Log\LoggerInterface

$repository protected_oe property

protected Repository,eZ\Publish\Core\Repository $repository
return eZ\Publish\Core\Repository\Repository

$tagConfigurationNamespace protected_oe property

protected string $tagConfigurationNamespace
return string

$templateEngine protected_oe property

protected EngineInterface,Symfony\Component\Templating $templateEngine
return Symfony\Component\Templating\EngineInterface