fetch( 'content', 'reverse_related_objects_count' )
Defined in kernel/content/function_definition.php; it calls eZContentFunctionCollection::fetchReverseRelatedObjectsCount() (kernel/content/ezcontentfunctioncollection.php).
Operation type: read.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
object_id | integer | yes | |
attribute_identifier | string | no | |
all_relations | boolean | no | false |
ignore_visibility | boolean | no | null |
Example
In a template (the values are placeholders of each parameter's type):
def $result = fetch( 'content', 'reverse_related_objects_count', hash( 'object_id', 1 ) )
{* with every parameter *}
{def $all = fetch( 'content', 'reverse_related_objects_count', hash( 'object_id', 1,
'attribute_identifier', 'attribute_identifier',
'all_relations', true(),
'ignore_visibility', true() ) )}In PHP, the same function through the function handler (lib/ezutils/classes/ezfunctionhandler.php):
$result = eZFunctionHandler::execute( 'content', 'reverse_related_objects_count', array( 'object_id' => 1 ) );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.