Skip to the content
Documentation

collected_info_collection

No ratings yet

Summary

Fetches an information collection.

Usage

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

Parameters

Name Type Description Required
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.

Changed in Exponential 6.0.15

The parameters of fetch( 'content', 'collected_info_collection' ) as kernel/content/function_definition.php of Exponential 6.0.15 defines them (eZContentFunctionCollection::fetchCollectedInfoCollection()):

Parameter Change
collection_id Required in 6.0.15: No. (this page: Yes.)
contentobject_id Required in 6.0.15: No. (this page: Yes.)

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.