eZ\Publish\Core\FieldType\Page\PageStorage\Gateway\LegacyStorage::getArchivedBlockItems PHP Метод

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[]
    public function getArchivedBlockItems(Block $block)
    {
        $dbHandler = $this->getConnection();
        $q = $dbHandler->createSelectQuery();
        $q->select('object_id, node_id, priority, ts_publication, ts_visible, ts_hidden, rotation_until, moved_to')->from($dbHandler->quoteTable('ezm_pool'))->where($q->expr->eq('block_id', $q->bindValue($block->id)), $q->expr->gt('ts_hidden', $q->bindValue(0, null, PDO::PARAM_INT)))->orderBy('ts_hidden');
        $stmt = $q->prepare();
        $stmt->execute();
        $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
        $items = array();
        foreach ($rows as $row) {
            $items[] = $this->buildBlockItem($row + array('block_id' => $block->id));
        }
        return $items;
    }