프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$contents | array | Cache of the current contents stage. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$types |
메소드 | 설명 | |
---|---|---|
__construct ( |
||
addType ( string $type, |
||
getContentTypes ( ) : |
||
getSlotContents ( integer $nodeId, integer $slotId ) : |
||
getTypeRenderer ( string $type ) : |
||
renderContent ( Jarves\Model\ContentInterface $content, array $parameters = [] ) : string | Build HTML for given content. | |
renderContents ( |
Renders all Content elements into html. | |
renderSingleSlot ( integer $nodeId = null, integer $slotId = 1, array $params = [] ) : string | ||
renderSlot ( integer $nodeId = null, integer $slotId = 1, array $params = [] ) : string | ||
renderSlotContents ( array $contents, array $slotProperties ) : string | null | Build HTML for given contents, used in {% contents 1 %}. |
메소드 | 설명 | |
---|---|---|
filterContentsForAccess ( |
Filters $contents and returns only $content items which have valid access. (is visible, accessible by current user etc) |
public __construct ( |
||
$jarves | ||
$stopwatch | ||
$editMode | ||
$cacher | ||
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | |
$pageStack | ||
$templating | Symfony\Component\Templating\EngineInterface |
protected filterContentsForAccess ( |
||
$contents | ||
리턴 | array |
public getContentTypes ( ) : |
||
리턴 |
public getSlotContents ( integer $nodeId, integer $slotId ) : |
||
$nodeId | integer | |
$slotId | integer | |
리턴 |
public getTypeRenderer ( string $type ) : |
||
$type | string | |
리턴 |
public renderContent ( Jarves\Model\ContentInterface $content, array $parameters = [] ) : string | ||
$content | Jarves\Model\ContentInterface | |
$parameters | array | |
리턴 | string |
public renderContents ( |
||
$contents | ||
리턴 | string | generated html |