FindWHFSObjectReferences (open)

Search for objects of types or referring to objects or instances of certain types

Syntax

LOADLIB "mod::system/lib/whfs.whlib";

RECORD ARRAY FUNCTION FindWHFSObjectReferences(RECORD searchoptions)

Parameters

RECORD searchoptions

Search options

fstypes

ID of types we're looking for

publishedonly

Do not return unpublished files (may still return folders)

Return value

RECORD ARRAY

List of references

INTEGER fsobject

The id of the referring object or the object with the requested type (the one you would need to republish)

BOOLEAN isfolder

If the referring object is a folder

STRING membername

The name of the type member that contains the references (for whfsref and instance references)

STRING refersto

The whfspath of the object that is referred to (for whfsref references)

INTEGER referstofsobject

The id of the object that is referred to (for whfsref references)

STRING whfspath

The whfspath of the referring object or the object with the requested type

Description

This function returns the objects with one of the requested types and the objects referring to one of the requested types, either by direct referencing it through a whfsref reference or by having an instance value of the type.