fetch( 'content', 'trash_count' )
Defined in kernel/content/function_definition.php; it calls eZContentFunctionCollection::fetchTrashObjectCount() (kernel/content/ezcontentfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
objectname_filter | string | no | null |
attribute_filter | mixed | no | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'content', 'trash_count', hash( 'objectname_filter', 'objectname_filter' ) )
{* with every parameter *}
{def $all = fetch( 'content', 'trash_count', hash( 'objectname_filter', 'objectname_filter',
'attribute_filter', $attribute_filter ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'content', 'trash_count', array( 'objectname_filter' => 'objectname_filter' ) );In a shipped template
The first use in the templates of this installation, design/admin/templates/content/trash.tpl line 28:
set $list_count = fetch( 'content', 'trash_count', hash( 'objectname_filter', $view_parameters.namefilter ) )Related
Generated by ./console exp:help:examples from kernel/content/function_definition.php, kernel/content/ezcontentfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.