com\setasign\SetaSite\Block

AbstractMultiBlock Interface BlockInterface

File: /SetaSite/src/Block/AbstractMultiBlock.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

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 AbstractMultiBlock::__construct (
\com\setasign\SetaSite\SetaSite $blockFactory,
\com\setasign\SetaSite\SessionContext $pageSettings,
BlockParent\BlockParentInterface $setasite,
string $sessionContext,
array $blockParent,
string $blockName,
array $blockData
)
Parameters
$blockFactory : \com\setasign\SetaSite\SetaSite
 
$pageSettings : \com\setasign\SetaSite\SessionContext
 
$setasite : BlockParent\BlockParentInterface
 
$sessionContext : string
 
$blockParent : array
 
$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()

abstract public MultiBlockInterface::fetchPlaceholders (
void
): array

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

abstract public BlockInterface::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()

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