PHP Class eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController

显示文件 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\ContentService $contentService, Symfony\Component\HttpKernel\HttpKernelInterface $kernel, ContentPreviewHelper $previewHelper, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, eZ\Publish\Core\Helper\PreviewLocationProvider $locationProvider, eZ\Publish\Core\MVC\Symfony\View\CustomLocationControllerChecker $controllerChecker )
previewContentAction ( Request $request, $contentId, $versionNo, $language, $siteAccessName = null )

Protected Methods

Method Description
getForwardRequest ( eZ\Publish\API\Repository\Values\Content\Location $location, eZ\Publish\API\Repository\Values\Content\Content $content, SiteAccess $previewSiteAccess, Request $request, string $language ) : Request Returns the Request object that will be forwarded to the kernel for previewing the content.

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\ContentService $contentService, Symfony\Component\HttpKernel\HttpKernelInterface $kernel, ContentPreviewHelper $previewHelper, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, eZ\Publish\Core\Helper\PreviewLocationProvider $locationProvider, eZ\Publish\Core\MVC\Symfony\View\CustomLocationControllerChecker $controllerChecker )
$contentService eZ\Publish\API\Repository\ContentService
$kernel Symfony\Component\HttpKernel\HttpKernelInterface
$previewHelper eZ\Publish\Core\Helper\ContentPreviewHelper
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$locationProvider eZ\Publish\Core\Helper\PreviewLocationProvider
$controllerChecker eZ\Publish\Core\MVC\Symfony\View\CustomLocationControllerChecker

getForwardRequest() protected method

Returns the Request object that will be forwarded to the kernel for previewing the content.
protected getForwardRequest ( eZ\Publish\API\Repository\Values\Content\Location $location, eZ\Publish\API\Repository\Values\Content\Content $content, SiteAccess $previewSiteAccess, Request $request, string $language ) : Request
$location eZ\Publish\API\Repository\Values\Content\Location
$content eZ\Publish\API\Repository\Values\Content\Content
$previewSiteAccess eZ\Publish\Core\MVC\Symfony\SiteAccess
$request Symfony\Component\HttpFoundation\Request
$language string
return Symfony\Component\HttpFoundation\Request

previewContentAction() public method

public previewContentAction ( Request $request, $contentId, $versionNo, $language, $siteAccessName = null )
$request Symfony\Component\HttpFoundation\Request