com\setasign\SetaSite\Block

AbstractViewMultiBlock Interface BlockInterface

File: /SetaSite/src/Block/AbstractViewMultiBlock.php

Class hierarchy

Implements

Summary

Constants

PROVIDED_FILES

protected const AbstractBlock::PROVIDED_FILES = array ( 0 => 'icon.png', )

Properties

$blockName

protected string AbstractBlock::$blockName

$isBlockFinal

$logger

protected ?\Psr\Log\LoggerInterface AbstractBlock::$logger

$params

protected array AbstractMultiBlock::$params

$view

protected \com\setasign\SetaFramework\View\View AbstractViewMultiBlock::$view

$viewScript

protected string AbstractViewMultiBlock::$viewScript = 'html.phtml'

Static Methods

getAllowedChildBlocks()

public static AbstractMultiBlock::getAllowedChildBlocks (
void
): ?array
Return Values

If null all blocks are allowed!

getBlockPath()

abstract public static BlockInterface::getBlockPath (
void
): string

Just return DIR

getConfig()

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

lookupFile()

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

Throws \com\setasign\SetaSite\FileSystem\InvalidPathException

readConfig()

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

Methods

__construct()

public AbstractViewMultiBlock::__construct (
\com\setasign\SetaFramework\Di\Di $di,
\com\setasign\SetaFramework\View\View $view,
\com\setasign\SetaSite\Page\PlaceholderFinder $placeholderFinder,
BlockFactory $blockFactory,
\com\setasign\SetaSite\Page\PageSettings $pageSettings,
\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
 
$view : \com\setasign\SetaFramework\View\View
 
$placeholderFinder : \com\setasign\SetaSite\Page\PlaceholderFinder
 
$blockFactory : BlockFactory
 
$pageSettings : \com\setasign\SetaSite\Page\PageSettings
 
$setasite : \com\setasign\SetaSite\SetaSite
 
$sessionContext : \com\setasign\SetaSite\SessionContext
 
$blockParent : BlockParent\BlockParentInterface
 
$blockName : string
 
$blockData : array
 

__clone()

public AbstractBlock::__clone (
void
): void

Implementation of __clone()

__sleep()

final public AbstractBlock::__sleep (
void
): void

Blocks aren't serializable.

Exceptions

Throws \BadMethodCallException

fetchPlaceholders()

get()

Parameters
$propertyName : string
 

getAnchors()

public AbstractMultiBlock::getAnchors (
void
): array
Return Values

Returns an associative array

getBlockCache()

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

getBlockCacheValidators()

protected AbstractBlock::getBlockCacheValidators (
void
): array

getCacheName()

protected AbstractBlock::getCacheName (
void
): string

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

getData()

public AbstractMultiBlock::getData (
void
): array

getFullName()

public AbstractBlock::getFullName (
void
): string

getName()

public AbstractBlock::getName (
void
): string

getSubpagesTree()

public AbstractMultiBlock::getSubpagesTree (
void
): ?array

getUid()

public AbstractBlock::getUid (
void
): ?string

isBlockFinal()

public AbstractBlock::isBlockFinal (
void
): bool

lookForBlockAction()

Parameters
$uuid : string
 

render()

public AbstractViewMultiBlock::render (
void
): string
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.

renderBlockManager()

renderView()

private AbstractViewMultiBlock::renderView (
void
): string

This is the real render method.

This method will not be called if the cache is used.

Exceptions

Throws \com\setasign\SetaFramework\View\MissingViewException

Throws \com\setasign\SetaFramework\View\RenderException

Throws ForceResponseException

Throws \com\setasign\SetaSite\HttpErrorException

Throws \Throwable

setCache()

final public AbstractBlock::setCache (
\Psr\SimpleCache\CacheInterface $cache
): void
Parameters
$cache : \Psr\SimpleCache\CacheInterface
 

setLogger()

final public AbstractBlock::setLogger (
\Psr\Log\LoggerInterface $logger
): void

Sets a logger instance on the object.

Parameters
$logger : \Psr\Log\LoggerInterface
 

setParams()

public AbstractMultiBlock::setParams (
array $params
): void
Parameters
$params : array