Index
-
\com\setasign\SetaSite
-
Block
- AbstractBlock
- AbstractMultiBlock
- AbstractTwigBlock
- AbstractTwigControllerBlock
- AbstractTwigMultiBlock
- AbstractViewBlock
- AbstractViewControllerBlock
- AbstractViewMultiBlock
- AnchorInterface
- BlockActionInterface
- BlockActionReferrerInterface
- BlockActionTrait
- BlockFactory
- BlockInterface
- BlockParent
- BlockRenderException
- ControllerBlockInterface
- DefaultBlocks
- ForceResponseException
- HasCacheInterface
- MultiBlockInterface
- PageRenderDataChangeCacheValidator
-
Block
com\setasign\SetaSite\Block
AbstractBlock Interface BlockInterface
File: /SetaSite/src/Block/AbstractBlock.php
Class hierarchy
Implements
- \Psr\Log\LoggerAwareInterface
- BlockInterface
- HasCacheInterface
Summary
Constants
PROVIDED_FILES
Properties
$blockName
protected string AbstractBlock::$blockName
$cache
private ?\Psr\SimpleCache\CacheInterface AbstractBlock::$cache
$isBlockFinal
protected AbstractBlock::$isBlockFinal
$logger
protected ?\Psr\Log\LoggerInterface AbstractBlock::$logger
Static Methods
lookupFile()
public static AbstractBlock::lookupFile (
string $file
): \com\setasign\SetaFramework\FileSystem\FileParameters
- $file : string
Exceptions
Throws \com\setasign\SetaSite\FileSystem\InvalidPathException
Methods
__construct()
public AbstractBlock::__construct (
\com\setasign\SetaSite\SetaSite $setasite,
\com\setasign\SetaSite\SessionContext $sessionContext,
BlockParent\BlockParentInterface $blockParent,
string $blockName,
array $blockData
)\com\setasign\SetaSite\SessionContext $sessionContext,
BlockParent\BlockParentInterface $blockParent,
string $blockName,
array $blockData
Parameters
- $setasite : \com\setasign\SetaSite\SetaSite
- $sessionContext : \com\setasign\SetaSite\SessionContext
- $blockParent : BlockParent\BlockParentInterface
- $blockName : string
- $blockData : array
__sleep()
get()
final public AbstractBlock::get (
string $propertyName
): \com\setasign\SetaSite\PropertyContainer\Property\AbstractPropertyParameters
- $propertyName : string
getBlockCache()
protected AbstractBlock::getBlockCache (
void
): ?\com\setasign\SetaFramework\SimpleCache\ValidationCacheEntrygetModuleAdapters()
If the block has some special functionality for an external module it will return an adapter for this otherwise the array is empty.
Parameters
getPropertyContainer()
final public AbstractBlock::getPropertyContainer (
void
): \com\setasign\SetaSite\PropertyContainer\PropertyContainerrender()
Return Values
The rendered block
Exceptions
Throws ForceResponseException If the block forces a complete response.
Throws \com\setasign\SetaSite\HttpErrorException If the block forces a http error.
Throws \com\setasign\SetaFramework\Bootstrap\MaintenanceException
Throws BlockRenderException If something went wrong on rendering the block.
