Path

ez.no / documentation / ez publish / technical manual / 3.6 / reference / modules / content / fetch functions / collected_info_collection


This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

collected_info_collection

Summary

Fetches an information collection.

Usage

fetch( 'content', 'collected_info_collection',
       hash( 'collection_id',    collection_id,
             'contentobject_id', contentobject_id ) )

Parameters

NameTypeDescriptionRequired
collection_id integer The ID number of the collection that should be fetched. Yes.
contentobject_id integer The ID number of the object that should be fetched. Yes.

Returns

An ezinformationcollection object or FALSE.

Description

This function fetches an information collection. Both the ID number of the collection and the contentobject must be provided. The function returns an ezinformationcollection object or FALSE.

Examples

Example 1

{def $collection=fetch( 'content', 'collected_info_collection',
                        hash( 'collection_id',    123,
                              'contentobject_id', 456 ) )}
 
{foreach $collection.attributes as $attribute}
    {$attribute.contentclass_attribute_name} <br />
{/foreach}

Outputs the attributes for the 123rd information collection for object number 456.

Balazs Halasy (06/02/2004 1:04 pm)

Balazs Halasy (20/12/2005 12:39 pm)


Comments

There are no comments.