MapGuide API Reference
|
virtual MgByteReader* MgResourceService::EnumerateReferences | ( | MgResourceIdentifier * | resource | ) | [pure virtual] |
Enumerates all the resources which reference the specified resource.
virtual MgByteReader EnumerateReferences(MgResourceIdentifier resource); |
virtual MgByteReader EnumerateReferences(MgResourceIdentifier resource); |
virtual MgByteReader EnumerateReferences(MgResourceIdentifier resource); |
resource | (MgResourceIdentifier) Resource to get references for. |
// Assuming $resourceService is already initialized. $resourceID= new MgResourceIdentifier('Library://Samples/Sheboygan/Layers/BuildingOutlines.LayerDefinition'); $byteReader = $resourceService->EnumerateReferences($resourceID); echo $byteReader->ToString(); /* Returns for example: <?xml version="1.0" encoding="UTF-8"?> <ResourceReferenceList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ResourceReferenceList-1.0.0.xsd"> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId> </ResourceReferenceList> */