Path

ez.no / exponential / documentation / reference / data fetching / content / collected_info_count


collected_info_count

Summary

Will count the collected information matching a certain value

Usage

fetch( 'content', 
         'collected_info_count',
         hash( 'object_attribute_id', id, 'object_id', id, 'value', value ) )

Parameters

NameTypeDescriptionRequired
object_attribute_id integer Count values for this object attribute id yes
object_id integer The id of the contentobject to count yes
value integer Count only attributes containig this value yes

Returns

The collection count (integer)

Description

Will count the number of times a certain value has been collected. This is used to e.g. count the number of times someone has selected a specific value of a poll.

Examples

{let count=fetch( 'content', 'collected_info_count',

                       hash( 'object_attribute_id', 42, 'object_id', 20, 'value', 1 ) )}

  {$count}

{/let}

Comments

Contents

Reference

Database diagram
Template operators
Template functions
Data fetching
    Class
    Content
       access
       bookmarks
       can_instantiate_class_list
       can_instantiate_classes
       class
       class_attribute
       class_attribute_list
       collected_info_collection
       collected_info_count
       collected_info_count_list
       contentobject_attributes
       draft_count
       draft_version_list
       keyword
       keyword_count
       list
       list_count
       locale_list
       navigation_parts
       node
       non_translation_list
       object
       object_by_attribute
       object_count_by_user_id
       pending_count
       pending_list
       recent
       same_classattribute_node
       search
       section_list
       tipafriend_top_list
       translation_list
       trash_count
       trash_object_list
       tree
       tree_count
       version
       version_count
       version_list
       view_top_list
    Collaboration
    Layout
    Notification
    Package
    Section
    Shop
    URL
    User
Modules
XML tags


Created

06/02/2004
1:05:18 pm
by Balazs Halasy

Last updated

11/02/2004
2:18:59 pm
by Bård Farstad

Authors

Balazs Halasy
Bård Farstad



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.