Skip to the content
Documentation

reverse_related_objects_count

No ratings yet

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

Name Type Description Required
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.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.