MapGuide API Reference
|
virtual STRING MgResourceIdentifier::GetRepositoryName | ( | ) | [virtual] |
Extracts the repository name from a resource's identifier.
virtual string GetRepositoryName(); |
virtual String GetRepositoryName(); |
virtual string GetRepositoryName(); |
$resourceID = new MgResourceIdentifier("Session:$sessionID//Geography/World.MapDefinition"); $repository_name = $resourceID->GetRepositoryName(); // returns: "b9b617ac-ffff-ffff-8000-005056c00008_eng"
$resourceID = new MgResourceIdentifier("Library://Geography/World.MapDefinition"); $repository_name = $resourceID->GetRepositoryName(); // returns: ""