fetch( 'collaboration', 'item_count' )
Defined in kernel/collaboration/function_definition.php; it calls eZCollaborationFunctionCollection::fetchItemCount() (kernel/collaboration/ezcollaborationfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
is_read | no | null | |
is_active | no | null | |
parent_group_id | no | null | |
status | no | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'collaboration', 'item_count', hash( 'is_read', $is_read ) )
{* with every parameter *}
{def $all = fetch( 'collaboration', 'item_count', hash( 'is_read', $is_read,
'is_active', $is_active,
'parent_group_id', $parent_group_id,
'status', $status ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'collaboration', 'item_count', array( 'is_read' => $is_read ) );In a shipped template
The first use in the templates of this installation, design/admin/templates/collaboration/group/view/list.tpl line 6:
let group_item_count=fetch("collaboration","item_count",hash("parent_group_id",$collab_group.id))Related
- All fetch functions of collaboration
- The views of the collaboration module
- The fetch template operator
Generated by ./console exp:help:examples from kernel/collaboration/function_definition.php, kernel/collaboration/ezcollaborationfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.