com\setasign\SetaSite\Block\DefaultBlocks\BlockContainer

BlockContainer Interface BlockInterface

File: /SetaSite/src/Block/DefaultBlocks/BlockContainer/BlockContainer.php

Class hierarchy

Implements

Summary

Constants

PROVIDED_FILES

protected const \com\setasign\SetaSite\Block\AbstractBlock::PROVIDED_FILES = array ( 0 => 'icon.png', )

Properties

$blockInstances

private array BlockContainer::$blockInstances = array()

$logger

protected ?\Psr\Log\LoggerInterface \com\setasign\SetaSite\Block\AbstractBlock::$logger

Static Methods

getBlockPath()

public static BlockContainer::getBlockPath (
void
): string

Methods

__construct()

BlockContainer constructor.

Parameters
$blockFactory: \com\setasign\SetaSite\Block\BlockFactory
 
$setasite: \com\setasign\SetaSite\SetaSite
 
$sessionContext: \com\setasign\SetaSite\SessionContext
 
$blockParent: \com\setasign\SetaSite\Block\BlockParent\BlockParentInterface
 
$blockName: string
 
$blockData: array
 

__clone()

Implementation of __clone()

__sleep()

Blocks aren't serializable.

Exceptions

Throws \BadMethodCallException

get()

Parameters
$propertyName: string
 

getBlockCacheValidators()

getCacheName()

Overwrite if you need an alternative cache name e.g. for ControllerBlock

getData()

getFullName()

getName()

getUid()

isBlockFinal()

lookForBlockAction()

Parameters
$uuid: string
 

setCache()

final public \com\setasign\SetaSite\Block\AbstractBlock::setCache (
\Psr\SimpleCache\CacheInterface $cache
): void
Parameters
$cache: \Psr\SimpleCache\CacheInterface
 

setLogger()

final public \com\setasign\SetaSite\Block\AbstractBlock::setLogger (
\Psr\Log\LoggerInterface $logger
): void

Sets a logger instance on the object.

Parameters
$logger: \Psr\Log\LoggerInterface
 

setParams()