PHP Интерфейс Yosymfony\Spress\Core\ContentManager\Renderizer\RenderizerInterface

Renderizer are responsible for formatting items. This can be considered as a template engine.
Автор: Victor Puertas ([email protected])
Показать файл Открыть проект

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

Метод Описание
addInclude ( string $id, string $content, array $attributes = [] ) Add a new include.
addLayout ( string $id, string $content, array $attributes = [] ) Add a new layout.
clear ( ) Clears all templates registered.
renderBlocks ( string $id, string $content, array $attributes ) : string Render a blocks of content (layout NOT included).
renderPage ( string $id, string $content, string $layoutName, array $siteAttributes ) : string Render a page completely (layout included).

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

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

Add a new include.
public addInclude ( string $id, string $content, array $attributes = [] )
$id string The identifier of the include. e.g: path
$content string The content of the include
$attributes array The attributes of the include

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

Add a new layout.
public addLayout ( string $id, string $content, array $attributes = [] )
$id string The identifier of the layout. e.g: path
$content string The content of the layout
$attributes array The attributes of the layout

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

Clears all templates registered.
public clear ( )

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

Render a blocks of content (layout NOT included).
public renderBlocks ( string $id, string $content, array $attributes ) : string
$id string The identifier of the content. e.g: path
$content string The content
$attributes array The attributes for using inside the content
Результат string The block rendered

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

Render a page completely (layout included).
public renderPage ( string $id, string $content, string $layoutName, array $siteAttributes ) : string
$id string The identifier of the page. e.g: path
$content string The page content
$layoutName string The name of the layout
$siteAttributes array The attributes for using inside the content
Результат string The page rendered