Fetch functions

Four fetch functions are defined in the ezmedia module which can be used in templates:

waiting

The fetch function has one parameter, block_id. This fetches the waiting items (items in the queue) for a block identified by the block_id parameter. The result is the array of items represented by an array with following keys:

Example

fetch( 'ezmedia', 'waiting', hash( 'block_id', $block.id ) )

valid

The same as the waiting fetch function, but the array of valid items is returned.

archived

The same as the waiting fetch function, but the array of archived items (items in the archive) is returned.

valid_nodes

The same as valid fetch function, but the array of node objects, for example of eZContentObjectTreeNode class, is returned. This fetch function should be used in the template rendering the block.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.