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
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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