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