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 searchoptionsSearch options
fstypesID of types we're looking for
publishedonlyDo not return unpublished files (may still return folders)
Return value
RECORD ARRAYList of references
INTEGER fsobjectThe id of the referring object or the object with the requested type (the one you would need to republish)
BOOLEAN isfolderIf the referring object is a folder
STRING membernameThe name of the type member that contains the references (for whfsref and instance references)
STRING referstoThe whfspath of the object that is referred to (for whfsref references)
INTEGER referstofsobjectThe id of the object that is referred to (for whfsref references)
STRING whfspathThe 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.