protected function buildBlockItem(array $row)
    {
        return new Item(
            array(
                'blockId' => $row['block_id'],
                'contentId' => (int)$row['object_id'],
                'locationId' => (int)$row['node_id'],
                'priority' => (int)$row['priority'],
                'publicationDate' => new DateTime("@{$row['ts_publication']}"),
                'visibilityDate' => $row['ts_visible'] ? new DateTime("@{$row['ts_visible']}") : null,
                'hiddenDate' => $row['ts_hidden'] ? new DateTime("@{$row['ts_hidden']}") : null,
                'rotationUntilDate' => $row['rotation_until'] ? new DateTime("@{$row['rotation_until']}") : null,
                'movedTo' => $row['moved_to'],
            )
        );
    }
protected function buildBlockItem(array $row)
    {
        return new Item(
            array(
                'blockId' => $row['block_id'],
                'contentId' => (int)$row['object_id'],
                'locationId' => (int)$row['node_id'],
                'priority' => (int)$row['priority'],
                'publicationDate' => new DateTime("@{$row['ts_publication']}"),
                'visibilityDate' => $row['ts_visible'] ? new DateTime("@{$row['ts_visible']}") : null,
                'hiddenDate' => $row['ts_hidden'] ? new DateTime("@{$row['ts_hidden']}") : null,
                'rotationUntilDate' => $row['rotation_until'] ? new DateTime("@{$row['rotation_until']}") : null,
                'movedTo' => $row['moved_to'],
            )
        );
    }
protected function buildBlockItem ( array $ row ) { return new Item ( array ( 'blockId' => $ row [ 'block_id' ] , 'contentId' => ( int ) $ row [ 'object_id' ] , 'locationId' => ( int ) $ row [ 'node_id' ] , 'priority' => ( int ) $ row [ 'priority' ] , 'publicationDate' => new DateTime ( "@{$row['ts_publication']}" ) , 'visibilityDate' => $ row [ 'ts_visible' ] ? new DateTime ( "@{$row['ts_visible']}" ) : null , 'hiddenDate' => $ row [ 'ts_hidden' ] ? new DateTime ( "@{$row['ts_hidden']}" ) : null , 'rotationUntilDate' => $ row [ 'rotation_until' ] ? new DateTime ( "@{$row['rotation_until']}" ) : null , 'movedTo' => $ row [ 'moved_to' ] , ) ) ; }
Builds a Page\Parts\Item object from a row returned from ezm_pool table.

@param array $row Hash representing a block item as stored in ezm_pool table.

@return \eZ\Publish\Core\FieldType\Page\Parts\Item
Builds a Page \ Parts \ Item object from a row returned from ezm_pool table .