Property | Type | Description | |
---|---|---|---|
$archivedBlockItems | SplObjectStorage | Cached archived block items by block. | |
$blockDefinition | array | Block definition set in YAML config. | |
$blocksById | Cached Blocks by id. | ||
$contentService | eZ\Publish\API\Repository\ContentService | ||
$lastValidItems | SplObjectStorage | Cached last valid items, by block (one per block). | |
$storageGateway | |||
$validBlockItems | SplObjectStorage | Cached valid block items by block. | |
$waitingBlockItems | SplObjectStorage | Cached waiting block items by block. | |
$zoneDefinition | array | Zone definition set in YAML config. |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\ContentService $contentService, array $zoneDefinition = [], array $blockDefinition = [] ) | Constructor. | |
getArchivedBlockItems ( |
Returns archived items (that were previously displayed), for a given block. | |
getAvailableZoneLayouts ( ) : array | Returns list of available zone layouts. | |
getBlockDefinition ( ) : array | Returns block definition as an array. | |
getBlockDefinitionByIdentifier ( string $blockIdentifier ) : array | Returns a block definition for a given block identifier. | |
getLastValidBlockItem ( |
Returns the last valid item, for a given block. | |
getLayoutTemplate ( string $layoutIdentifier ) : string | Returns the template to use for given layout. | |
getValidBlockItems ( |
Returns valid items (that are to be displayed), for a given block. | |
getWaitingBlockItems ( |
Returns queued items (the next to be displayed), for a given block. | |
getZoneDefinition ( ) : array | Returns zone definition as an array. | |
getZoneDefinitionByLayout ( string $layoutIdentifier ) : array | Returns a zone definition for a given layout. | |
hasBlockDefinition ( string $blockIdentifier ) : boolean | Checks if block definition contains a block having $blockIdentifier as identifier. | |
hasStorageGateway ( ) : boolean | Checks if storage gateway has already been injected or not. | |
hasZoneLayout ( string $layoutIdentifier ) : boolean | Checks if zone definition contains a layout having $layoutIdentifier as identifier. | |
loadBlock ( integer | string $id ) : |
Loads Block object for the given $id. | |
setStorageGateway ( |
Injects the storage gateway to interact with. |
Method | Description | |
---|---|---|
getStorageGateway ( ) : |
public __construct ( eZ\Publish\API\Repository\ContentService $contentService, array $zoneDefinition = [], array $blockDefinition = [] ) | ||
$contentService | eZ\Publish\API\Repository\ContentService | |
$zoneDefinition | array | |
$blockDefinition | array |
public getArchivedBlockItems ( |
||
$block | ||
return |
public getAvailableZoneLayouts ( ) : array | ||
return | array |
public getBlockDefinition ( ) : array | ||
return | array |
public getBlockDefinitionByIdentifier ( string $blockIdentifier ) : array | ||
$blockIdentifier | string | |
return | array |
public getLastValidBlockItem ( |
||
$block | ||
return |
public getLayoutTemplate ( string $layoutIdentifier ) : string | ||
$layoutIdentifier | string | |
return | string |
protected getStorageGateway ( ) : |
||
return |
public getValidBlockItems ( |
||
$block | ||
return |
public getWaitingBlockItems ( |
||
$block | ||
return |
public getZoneDefinition ( ) : array | ||
return | array |
public getZoneDefinitionByLayout ( string $layoutIdentifier ) : array | ||
$layoutIdentifier | string | |
return | array |
public hasBlockDefinition ( string $blockIdentifier ) : boolean | ||
$blockIdentifier | string | |
return | boolean |
public hasStorageGateway ( ) : boolean | ||
return | boolean |
public hasZoneLayout ( string $layoutIdentifier ) : boolean | ||
$layoutIdentifier | string | |
return | boolean |
public setStorageGateway ( |
||
$storageGateway |
protected SplObjectStorage $archivedBlockItems | ||
return | SplObjectStorage |
protected array $blockDefinition | ||
return | array |
protected Block[],eZ\Publish\Core\FieldType\Page\Parts $blocksById | ||
return |
protected ContentService,eZ\Publish\API\Repository $contentService | ||
return | eZ\Publish\API\Repository\ContentService |
protected SplObjectStorage $lastValidItems | ||
return | SplObjectStorage |
protected Gateway,eZ\Publish\Core\FieldType\Page\PageStorage $storageGateway | ||
return |
protected SplObjectStorage $validBlockItems | ||
return | SplObjectStorage |
protected SplObjectStorage $waitingBlockItems | ||
return | SplObjectStorage |
protected array $zoneDefinition | ||
return | array |