MapGuide API Reference
|
MgResourceIdentifier::MgResourceIdentifier | ( | CREFSTRING | resource | ) |
Initialize and validate a resource identifier from a string.
Library://
. For session repositories, it must begin Session:identifier://
where identifier
is the session identifier.MgResourceIdentifier(string resource); |
MgResourceIdentifier(String resource); |
MgResourceIdentifier(string resource); |
resource | (String/string) The location of a document or a folder. The string cannot be empty. It can contain spaces but cannot contain any of the characters %*:|?<'&">= If the resource is a folder, you must include the trailing slash. |
$newResourceID = new MgResourceIdentifier("Library://Geography/World.MapDefinition");
$newResourceID = new MgResourceIdentifier("Session:Session1234//Geography/World.Map");
$newResourceID = new MgResourceIdentifier("Library://Floor Plans/New York/");