fetch( 'collaboration', 'item_list' )
Defined in kernel/collaboration/function_definition.php; it calls eZCollaborationFunctionCollection::fetchItemList() (kernel/collaboration/ezcollaborationfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
sort_by | no | false | |
offset | no | false | |
limit | no | false | |
status | no | false | |
is_read | no | null | |
is_active | no | null | |
parent_group_id | no | null |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'collaboration', 'item_list', hash( 'sort_by', $sort_by ) )
{* with every parameter *}
{def $all = fetch( 'collaboration', 'item_list', hash( 'sort_by', $sort_by,
'offset', $offset,
'limit', $limit,
'status', $status,
'is_read', $is_read,
'is_active', $is_active,
'parent_group_id', $parent_group_id ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'collaboration', 'item_list', array( 'sort_by' => $sort_by ) );In a shipped template
The first use in the templates of this installation, design/admin/templates/collaboration/group/view/list.tpl line 23:
include uri="design:collaboration/item_list.tpl" item_list=fetch( "collaboration", "item_list", hash( "limit", $item_limit, "offset", $offset, "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.