Path

ezpublish / documentation / ez publish / technical manual / 4.x / reference / modules / content / fetch functions / reverse_related_objects_count


Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

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',        all_relations,        ]
           [ 'ignore_visibility',    ignore_visibility     ] ) )

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.
ignore_visibility boolean Makes it possible to fetch hidden nodes. 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)

Svitlana Shatokhina (08/01/2007 12:37 pm)

Balazs Halasy, Svitlana Shatokhina


Comments

There are no comments.