ibexa

Path

ez publish / technical manual / 3.7 / reference / modules / content / fetch functions / reverse_related_objects_count


Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

reverse_related_objects_count

Summary

Fetches the number of reverse related objects.

Usage

fetch( 'content', 'reverse_related_objects_count',
       hash( 'object_id',            object_id,
           [ 'attribute_identifier', attribute_identifier,  ]
           [ 'all_relations',        boolean,               ] ) )

Parameters

NameTypeDescriptionRequired
object_id integer The ID number of the target object. Yes.
attribute_identifier mixed The ID number or class/attribute identifier of the target attribute. No.
all_relations boolean Controls whether to fetch all types of relastions or not, default is FALSE. No.

Returns

An integer (number of reverse related objects).

Description

This function is the same as the "reverse_related_objects" function. However, instead of returning an array of objects, it returns the number of objects that were found. Please refer to the documentation of the "reverse_related_objects" function for information about the parameters.

Balazs Halasy (04/04/2005 2:47 pm)

Balazs Halasy (08/03/2006 2:49 pm)


Comments