Path

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


object_count_by_user_id

Summary

returns the number of objects of a specific class created by a user

Usage

fetch( 'content', 'object_count_by_user_id', hash( 'class_id', 1, 'user_id', 14 ) )

Parameters

NameTypeDescriptionRequired
class_id integer the class id to use for the count yes
user_id integer the user id to use for the count yes

Returns

object count ( integer )

Description

Examples

{let count=fetch( 'content', 'object_count_by_user_id',
hash( 'class_id', 1,
'user_id', 14 ) )}

Number of folders created by user 14: {$count}.

{/let}

Comments

Log in or create a user account to comment.

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:10:32 pm
by Balazs Halasy

Last updated

10/02/2004
2:18:42 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.