Class

eZ\Publish\Core\FieldType\Page\PageStorage\Gateway

abstract class Gateway extends StorageGateway

Main abstract storage gateway for Page field type.

Methods

Item[] getValidBlockItems(Block $block)

Item|null getLastValidBlockItem(Block $block)

Returns the block item having a highest visible date, for given block.

Item[] getWaitingBlockItems(Block $block)

Item[] getArchivedBlockItems(Block $block)

int|string getContentIdByBlockId(int|string $id)

Returns Content id for the given Block $id, or false if Block could not be found.

Details

at line 24
abstract public Item[] getValidBlockItems(Block $block)

Parameters

Block $block

Return Value

Item[]

at line 34
abstract public Item|null getLastValidBlockItem(Block $block)

Returns the block item having a highest visible date, for given block.

Will return null if no block item is registered for block.

Parameters

Block $block

Return Value

Item|null

at line 41
abstract public Item[] getWaitingBlockItems(Block $block)

Parameters

Block $block

Return Value

Item[]

at line 48
abstract public Item[] getArchivedBlockItems(Block $block)

Parameters

Block $block

Return Value

Item[]

at line 60
abstract public int|string getContentIdByBlockId(int|string $id)

Returns Content id for the given Block $id, or false if Block could not be found.

Parameters

int|string $id

Return Value

int|string

Exceptions

NotFoundException If block could not be found.