PHP Class eZ\Publish\Core\MVC\Symfony\View\Builder\ContentViewBuilder

Inheritance: implements eZ\Publish\Core\MVC\Symfony\View\Builder\ViewBuilder
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\Repository $repository, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, eZ\Publish\Core\MVC\Symfony\View\Configurator $viewConfigurator, eZ\Publish\Core\MVC\Symfony\View\ParametersInjector $viewParametersInjector, eZ\Publish\Core\Helper\ContentInfoLocationLoader $locationLoader = null )
buildView ( array $parameters ) : ContentView | eZ\Publish\Core\MVC\Symfony\View\View
matches ( $argument )

Private Methods

Method Description
canRead ( eZ\Publish\API\Repository\Values\Content\Content $content, eZ\Publish\API\Repository\Values\Content\Location $location = null ) : boolean Checks if a user can read a content, or view it as an embed.
isEmbed ( array $parameters ) : boolean Checks if the view is an embed one.
loadContent ( mixed $contentId ) : eZ\Publish\API\Repository\Values\Content\Content Loads Content with id $contentId.
loadEmbeddedContent ( mixed $contentId, eZ\Publish\API\Repository\Values\Content\Location $location = null ) : eZ\Publish\API\Repository\Values\Content\Content Loads the embedded content with id $contentId.
loadLocation ( $locationId ) : eZ\Publish\API\Repository\Values\Content\Location Loads a visible Location.

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\Repository $repository, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, eZ\Publish\Core\MVC\Symfony\View\Configurator $viewConfigurator, eZ\Publish\Core\MVC\Symfony\View\ParametersInjector $viewParametersInjector, eZ\Publish\Core\Helper\ContentInfoLocationLoader $locationLoader = null )
$repository eZ\Publish\API\Repository\Repository
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$viewConfigurator eZ\Publish\Core\MVC\Symfony\View\Configurator
$viewParametersInjector eZ\Publish\Core\MVC\Symfony\View\ParametersInjector
$locationLoader eZ\Publish\Core\Helper\ContentInfoLocationLoader

buildView() public method

public buildView ( array $parameters ) : ContentView | eZ\Publish\Core\MVC\Symfony\View\View
$parameters array
return eZ\Publish\Core\MVC\Symfony\View\ContentView | eZ\Publish\Core\MVC\Symfony\View\View If both contentId and locationId parameters are missing

matches() public method

public matches ( $argument )