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

getConfig()

final public static \com\setasign\SetaSite\Block\AbstractBlock::getConfig (
void
): \com\setasign\SetaFramework\Config\Config

lookupFile()

public static \com\setasign\SetaSite\Block\AbstractBlock::lookupFile (
string $file
): \com\setasign\SetaFramework\FileSystem\File
Parameters
$file : string
 
Exceptions

Throws \com\setasign\SetaSite\FileSystem\InvalidPathException

readConfig()

protected static \com\setasign\SetaSite\Block\AbstractBlock::readConfig (
void
): \com\setasign\SetaFramework\Config\Config

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
 

getBlockCache()

protected \com\setasign\SetaSite\Block\AbstractBlock::getBlockCache (
void
): ?\com\setasign\SetaFramework\SimpleCache\ValidationCacheEntry

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()

public BlockContainer::setParams (
array $params
): void
Parameters
$params : array
 
Exceptions

Throws \com\setasign\SetaSite\Page\UnknownPageException

Throws \com\setasign\SetaSite\BlockManager\UnknownBlockException