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
AbstractTwigBlock Interface BlockInterface
File: /SetaSite/src/Block/AbstractTwigBlock.php
Class hierarchy
Implements
- \Psr\Log\LoggerAwareInterface
- BlockInterface
- HasCacheInterface
Summary
Constants
PROVIDED_FILES
Properties
$blockName
$di
$isBlockFinal
$logger
$twig
Static Methods
lookupFile()
Parameters
- $file : string
Exceptions
Throws \com\setasign\SetaSite\FileSystem\InvalidPathException
Methods
__construct()
\com\setasign\SetaSite\Twig\SetasiteTwigEnvironment $twig,
\com\setasign\SetaSite\SetaSite $setasite,
\com\setasign\SetaSite\SessionContext $sessionContext,
BlockParent\BlockParentInterface $blockParent,
string $blockName,
array $blockData
AbstractViewBlock constructor.
Parameters
- $di : \com\setasign\SetaFramework\Di\Di
- $twig : \com\setasign\SetaSite\Twig\SetasiteTwigEnvironment
- $setasite : \com\setasign\SetaSite\SetaSite
- $sessionContext : \com\setasign\SetaSite\SessionContext
- $blockParent : BlockParent\BlockParentInterface
- $blockName : string
- $blockData : array
__sleep()
get()
Parameters
- $propertyName : string
getBlockCache()
getModuleAdapters()
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()
render()
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.
renderView()
This is the real render method.
This method will not be called if the cache is used.
Exceptions
Throws ForceResponseException
Throws \com\setasign\SetaSite\HttpErrorException
Throws \Throwable
