com\setasign\SetaSite\Block

MultiBlockInterface Interface BlockInterface

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

Implemented in

Implements

Summary

Static Methods

getAllowedChildBlocks()

abstract public static MultiBlockInterface::getAllowedChildBlocks (
void
): ?array
Return Values

If null all blocks are allowed!

getBlockPath()

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

Just return DIR

getConfig()

abstract public static BlockInterface::getConfig (
void
): \com\setasign\SetaFramework\Config\Config

lookupFile()

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

Throws \com\setasign\SetaSite\FileSystem\InvalidPathException


Methods

fetchPlaceholders()

abstract public MultiBlockInterface::fetchPlaceholders (
void
): array

getData()

abstract public BlockInterface::getData (
void
): array

Returns the block data

getFullName()

abstract public BlockInterface::getFullName (
void
): string

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
$module : \com\setasign\SetaSite\Module\ModuleInterface
 

getName()

abstract public BlockInterface::getName (
void
): string

getPage()

getPropertyContainer()

Get the property container of the block

getSubpagesTree()

abstract public ControllerBlockInterface::getSubpagesTree (
void
): ?array

getUid()

abstract public BlockInterface::getUid (
void
): ?string

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.

setParams()

abstract public ControllerBlockInterface::setParams (
array $params
): void
Parameters
$params : array