item_count
Summary
Fetches the number of collaboration itemsUsage
fetch( 'collaboration', 'item_list', hash( [ 'status' , status, ] [ 'is_read' , is_read, ] [ 'is_active' , is_active, ] [ 'parent_group_id' , parent_group_id, ] ) )
Parameters
Name | Type | Description | Required |
---|---|---|---|
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)
Comments
There are no comments.