fetch( 'collaboration', 'tree_count' )
Defined in kernel/collaboration/function_definition.php; it calls eZCollaborationFunctionCollection::fetchObjectTreeCount() (kernel/collaboration/ezcollaborationfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
parent_node_id | yes | ||
class_filter_type | no | false | |
class_filter_array | no | false | |
depth | no | 0 |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'collaboration', 'tree_count', hash( 'parent_node_id', $parent_node_id ) )
{* with every parameter *}
{def $all = fetch( 'collaboration', 'tree_count', hash( 'parent_node_id', $parent_node_id,
'class_filter_type', $class_filter_type,
'class_filter_array', $class_filter_array,
'depth', 0 ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'collaboration', 'tree_count', array( 'parent_node_id' => $parent_node_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.