Path

ez.no / documentation / ez publish / technical manual / 3.10 / reference / modules / content / fetch functions / collected_info_count_list


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

collected_info_count_list

Summary

Fetches the number of times different values were collected.

Usage

fetch( 'content', 'collected_info_count_list', hash( 'object_attribute_id', object_attribute_id ) )

Parameters

NameTypeDescriptionRequired
object_attribute_id integer The ID number of the target object attribute. Yes.

Returns

An array of integers representing a count for every value.

Description

This function calculates and returns the sum of collected values (integers). It was developed for the poll feature.

Examples

Example 1

{def $counts=fetch( 'content', 'collected_info_count_list',
                    hash( 'object_attribute_id', 1024 ) )}
 
{foreach $counts as $count}
    {$count} <br />
{/foreach}

Outputs the number of times different values were collected.

Balazs Halasy (06/02/2004 12:05 pm)

Balazs Halasy (29/04/2005 8:27 am)


Comments

  • hmm...

    Summary : Fetches the number of times different values were collected.
    Returns: An array of integers representing a count for every value.
    Description: This function calculates and returns the sum of collected values (integers).

    Is it me, or are those 3 descriptions all contradicting eachother ? :-)
  • translations

    Beware: since this fetch takes a contentobjectattribute id, it will return results for one specific language only - because the translated attribute has a different id.

    Depending on how you construct your code, viewing the german object may return only the german results, for example.

    $2c,
    *pike