Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

Fetch functions

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

  • waiting
  • valid
  • archived
  • valid_nodes

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:

  • block_id
  • object_id
  • node_id
  • priority
  • ts_publication
  • ts_visible
  • ts_hidden
  • rotation_until
  • moved_to

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.

Geir Arne Waaler (09/11/2011 2:36 pm)

Geir Arne Waaler (09/11/2011 2:36 pm)


Comments

There are no comments.