PHP Класс eZ\Publish\Core\FieldType\Page\PageStorage\Gateway\LegacyStorage

Наследование: extends eZ\Publish\Core\FieldType\Page\PageStorage\Gateway
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

buildBlockItem() защищенный Метод

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.
Результат eZ\Publish\Core\FieldType\Page\Parts\Item

getArchivedBlockItems() публичный Метод

Returns archived items (that were previously displayed), for a given block.
public getArchivedBlockItems ( Block $block ) : Item[]
$block eZ\Publish\Core\FieldType\Page\Parts\Block
Результат eZ\Publish\Core\FieldType\Page\Parts\Item[]

getConnection() защищенный Метод

Returns the active connection.
protected getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler
Результат eZ\Publish\Core\Persistence\Database\DatabaseHandler

getContentIdByBlockId() публичный Метод

Returns Content id for the given Block $id, or false if Block could not be found.
public getContentIdByBlockId ( integer | string $id ) : integer
$id integer | string
Результат integer

getLastValidBlockItem() публичный Метод

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
Результат eZ\Publish\Core\FieldType\Page\Parts\Item | null

getValidBlockItems() публичный Метод

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
Результат eZ\Publish\Core\FieldType\Page\Parts\Item[]

getWaitingBlockItems() публичный Метод

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
Результат eZ\Publish\Core\FieldType\Page\Parts\Item[]

setConnection() публичный Метод

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

Описание свойств

$dbHandler защищенное свойство

protected DatabaseHandler,eZ\Publish\Core\Persistence\Database $dbHandler
Результат eZ\Publish\Core\Persistence\Database\DatabaseHandler