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

С версии: 6.0.0 All methods except `viewAction()` are deprecated and will be removed in the future.
Наследование: extends Controller
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$pageService eZ\Publish\Core\FieldType\Page\PageService

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

Метод Описание
__construct ( Manager $viewManager, PageService $pageService )
viewAction ( eZ\Publish\Core\MVC\Symfony\View\BlockView $view ) : eZ\Publish\Core\MVC\Symfony\View\BlockView This is the default view action for a BlockView object.
viewBlock ( Block $block, array $params = [], array $cacheSettings = [] ) : Response Render the block.
viewBlockById ( mixed $id, array $params = [], array $cacheSettings = [] ) : Response Renders the block with given $id.

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

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

public __construct ( Manager $viewManager, PageService $pageService )
$viewManager eZ\Publish\Core\MVC\Symfony\View\Manager
$pageService eZ\Publish\Core\FieldType\Page\PageService

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

It doesn't do anything by itself: the returned View object is rendered by the ViewRendererListener into an HttpFoundation Response. This action can be selectively replaced by a custom action by means of block_view configuration. Custom actions can add parameters to the view and customize the Response the View will be converted to. They may also bypass the ViewRenderer by returning an HttpFoundation Response. Cache is in both cases handled by the BlockCacheResponseListener.
public viewAction ( eZ\Publish\Core\MVC\Symfony\View\BlockView $view ) : eZ\Publish\Core\MVC\Symfony\View\BlockView
$view eZ\Publish\Core\MVC\Symfony\View\BlockView
Результат eZ\Publish\Core\MVC\Symfony\View\BlockView

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

Render the block.
public viewBlock ( Block $block, array $params = [], array $cacheSettings = [] ) : Response
$block eZ\Publish\Core\FieldType\Page\Parts\Block
$params array
$cacheSettings array settings for the HTTP cache, 'smax-age' and 'max-age' are checked.
Результат Symfony\Component\HttpFoundation\Response

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

This method can be used with ESI rendering strategy.
public viewBlockById ( mixed $id, array $params = [], array $cacheSettings = [] ) : Response
$id mixed Block id
$params array
$cacheSettings array settings for the HTTP cache, 'smax-age' and 'max-age' are checked.
Результат Symfony\Component\HttpFoundation\Response

Описание свойств

$pageService защищенное свойство

protected PageService,eZ\Publish\Core\FieldType\Page $pageService
Результат eZ\Publish\Core\FieldType\Page\PageService