fetch( 'infocollector', 'collected_info_count' )
Defined in kernel/infocollector/function_definition.php; it calls eZInfocollectorFunctionCollection::fetchCollectedInfoCount() (kernel/infocollector/ezinfocollectorfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
object_attribute_id | integer | no | false |
object_id | integer | no | false |
value | integer | no | false |
creator_id | integer | no | false |
user_identifier | string | no | false |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'infocollector', 'collected_info_count', hash( 'object_attribute_id', 1 ) )
{* with every parameter *}
{def $all = fetch( 'infocollector', 'collected_info_count', hash( 'object_attribute_id', 1,
'object_id', 1,
'value', 1,
'creator_id', 1,
'user_identifier', 'user_identifier' ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'infocollector', 'collected_info_count', array( 'object_attribute_id' => 1 ) );Related
- All fetch functions of infocollector
- The views of the infocollector module
- The fetch template operator
Generated by ./console exp:help:examples from kernel/infocollector/function_definition.php, kernel/infocollector/ezinfocollectorfunctioncollection.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.