Copied!

Page

Page.php : 19

Represents page.

Page contains collection of zones

Methods

public__construct()

Page.php : 31
public __construct([string $layout = '' ][, array<string|int, Zone$zones = [] ])

Parameters

Name Type Default value Description
$layout string '' -
$zones array<string|int, Zone> [] -

publicgetBlockById()

Page.php : 110

Returns block by its ID.

public getBlockById(mixed $id) : BlockValue

Parameters

Name Type Default value Description
$id mixed - -

Return values

BlockValue

Tags
Throws
BlockNotFoundException

publicgetBlockIterator()

Page.php : 126
public getBlockIterator() : array<string|int, BlockValue>

Return values

array<string|int, BlockValue>

publicgetLayout()

Page.php : 40
public getLayout() : string

Return values

string

publicgetZoneByIdentifier()

Page.php : 76
public getZoneByIdentifier(mixed $id) : Zone

Parameters

Name Type Default value Description
$id mixed - -

Return values

Zone

Tags
Throws
ZoneNotFoundException

publicgetZoneByName()

Page.php : 90
public getZoneByName(string $name) : Zone

Parameters

Name Type Default value Description
$name string - -

Return values

Zone

Tags
Throws
ZoneNotFoundException

publicgetZones()

Page.php : 56
public getZones() : array<string|int, Zone>

Return values

array<string|int, Zone>

publicsetLayout()

Page.php : 48
public setLayout(string $layout) : void

Parameters

Name Type Default value Description
$layout string - -

publicsetZones()

Page.php : 64
public setZones(array<string|int, Zone$zones) : void

Parameters

Name Type Default value Description
$zones array<string|int, Zone> - -