PHP Класс eZ\Publish\Core\MVC\Symfony\Controller\Content\DownloadRedirectionController

Наследование: extends eZ\Publish\Core\MVC\Symfony\Controller\Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( eZ\Publish\API\Repository\ContentService $contentService, Symfony\Component\Routing\RouterInterface $router, RouteReferenceGenerator $routeReferenceGenerator )
redirectToContentDownloadAction ( mixed $contentId, integer $fieldId, Request $request ) : RedirectResponse Used by the REST API to reference downloadable files.

Защищенные методы

Метод Описание
findFieldInContent ( integer $fieldId, eZ\Publish\API\Repository\Values\Content\Content $content ) : eZ\Publish\API\Repository\Values\Content\Field Finds the field with id $fieldId in $content.

Описание методов

__construct() публичный Метод

public __construct ( eZ\Publish\API\Repository\ContentService $contentService, Symfony\Component\Routing\RouterInterface $router, RouteReferenceGenerator $routeReferenceGenerator )
$contentService eZ\Publish\API\Repository\ContentService
$router Symfony\Component\Routing\RouterInterface
$routeReferenceGenerator eZ\Publish\Core\MVC\Symfony\Routing\Generator\RouteReferenceGenerator

findFieldInContent() защищенный Метод

Finds the field with id $fieldId in $content.
protected findFieldInContent ( integer $fieldId, eZ\Publish\API\Repository\Values\Content\Content $content ) : eZ\Publish\API\Repository\Values\Content\Field
$fieldId integer
$content eZ\Publish\API\Repository\Values\Content\Content
Результат eZ\Publish\API\Repository\Values\Content\Field

redirectToContentDownloadAction() публичный Метод

It redirects (permanently) to the standard ez_content_download route, based on the language of the field passed as an argument, using the language switcher.
public redirectToContentDownloadAction ( mixed $contentId, integer $fieldId, Request $request ) : RedirectResponse
$contentId mixed
$fieldId integer
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\RedirectResponse