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

item_count

Summary

Fetches the number of collaboration items

Usage

fetch( 'collaboration', 'item_list',
    hash(
       [ 'status' , status,                   ]
       [ 'is_read' , is_read,                 ]
       [ 'is_active' , is_active,             ]
       [ 'parent_group_id' , parent_group_id, ]
    )
)

Parameters

NameTypeDescriptionRequired
status array The status of the items to return no
is_read boolean The read status of the items to return no
is_active boolean The active status of the items to return no
parent_group_id integer The group id of the items no

Returns

The number of eZCollaborationItems matching the parameters.

Description

This function returns the number of collaboration items that match the given parameters.

The available status (as integer) are:

  • 1 for active collaboration items
  • 2 for inactive collaboration items
  • 3 for archived collaboration items.

Examples

{fetch( "collaboration", "item_count",
       hash(
               "is_active", true(),
               "status", array( 1 )
        )
)}

Count the active collaboration items.

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

Andrea Melo (16/09/2012 2:11 pm)

Balazs Halasy, Andrea Melo


Comments

There are no comments.