Свойство | Type | Description | |
---|---|---|---|
$configResolver | eZ\Publish\Core\MVC\ConfigResolverInterface | ||
$embedConfigurationNamespace | string | ||
$logger | null | Psr\Log\LoggerInterface | ||
$repository | |||
$tagConfigurationNamespace | string | ||
$templateEngine | Symfony\Component\Templating\EngineInterface |
Méthode | 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 ) |
Méthode | 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. |
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 |
protected checkContent ( integer | string $id ) | ||
$id | integer | string |
protected checkLocation ( integer | string $id ) : eZ\Publish\API\Repository\Values\Content\Location | ||
$id | integer | string | |
Résultat | eZ\Publish\API\Repository\Values\Content\Location |
protected getEmbedTemplateName ( $resourceType, $isInline, $isDenied ) : null | string | ||
$resourceType | ||
$isInline | ||
$isDenied | ||
Résultat | null | string |
public renderContentEmbed ( $contentId, $viewType, array $parameters, $isInline ) | ||
$parameters | array |
public renderLocationEmbed ( $locationId, $viewType, array $parameters, $isInline ) | ||
$parameters | array |
protected ConfigResolverInterface,eZ\Publish\Core\MVC $configResolver | ||
Résultat | eZ\Publish\Core\MVC\ConfigResolverInterface |
protected string $embedConfigurationNamespace | ||
Résultat | string |
protected null|LoggerInterface,Psr\Log $logger | ||
Résultat | null | Psr\Log\LoggerInterface |
protected Repository,eZ\Publish\Core\Repository $repository | ||
Résultat |
protected string $tagConfigurationNamespace | ||
Résultat | string |