PHP Class eZ\Publish\Core\FieldType\Page\PageStorage\Gateway\LegacyStorage

Inheritance: extends eZ\Publish\Core\FieldType\Page\PageStorage\Gateway
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler

Public Methods

Method Description
getArchivedBlockItems ( Block $block ) : Item[] Returns archived items (that were previously displayed), for a given block.
getContentIdByBlockId ( integer | string $id ) : integer Returns Content id for the given Block $id, or false if Block could not be found.
getLastValidBlockItem ( Block $block ) : Item | null Returns the block item having a highest visible date, for given block.
getValidBlockItems ( Block $block ) : Item[] Returns valid items (that are to be displayed), for a given block.
getWaitingBlockItems ( Block $block ) : Item[] Returns queued items (the next to be displayed), for a given block.
setConnection ( mixed $dbHandler ) Set database handler for this gateway.

Protected Methods

Method Description
buildBlockItem ( array $row ) : Item Builds a Page\Parts\Item object from a row returned from ezm_pool table.
getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler Returns the active connection.

Method Details

buildBlockItem() protected method

Builds a Page\Parts\Item object from a row returned from ezm_pool table.
protected buildBlockItem ( array $row ) : Item
$row array Hash representing a block item as stored in ezm_pool table.
return eZ\Publish\Core\FieldType\Page\Parts\Item

getArchivedBlockItems() public method

Returns archived items (that were previously displayed), for a given block.
public getArchivedBlockItems ( Block $block ) : Item[]
$block eZ\Publish\Core\FieldType\Page\Parts\Block
return eZ\Publish\Core\FieldType\Page\Parts\Item[]

getConnection() protected method

Returns the active connection.
protected getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler
return eZ\Publish\Core\Persistence\Database\DatabaseHandler

getContentIdByBlockId() public method

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

getLastValidBlockItem() public method

Will return null if no block item is registered for block.
public getLastValidBlockItem ( Block $block ) : Item | null
$block eZ\Publish\Core\FieldType\Page\Parts\Block
return eZ\Publish\Core\FieldType\Page\Parts\Item | null

getValidBlockItems() public method

Returns valid items (that are to be displayed), for a given block.
public getValidBlockItems ( Block $block ) : Item[]
$block eZ\Publish\Core\FieldType\Page\Parts\Block
return eZ\Publish\Core\FieldType\Page\Parts\Item[]

getWaitingBlockItems() public method

Returns queued items (the next to be displayed), for a given block.
public getWaitingBlockItems ( Block $block ) : Item[]
$block eZ\Publish\Core\FieldType\Page\Parts\Block
return eZ\Publish\Core\FieldType\Page\Parts\Item[]

setConnection() public method

Set database handler for this gateway.
public setConnection ( mixed $dbHandler )
$dbHandler mixed

Property Details

$dbHandler protected_oe property

protected DatabaseHandler,eZ\Publish\Core\Persistence\Database $dbHandler
return eZ\Publish\Core\Persistence\Database\DatabaseHandler