Check if resource exists in repository

Adrià Mercader amptarraco at hotmail.com
Thu Nov 30 07:52:06 EST 2006


Hi everybody,
hope anyone can help me with this,

Is there a way to check if a resource already exists in the repository 
(Session or Library) i.e.
Session:$sessionId/POIs.FeatureSource
or
Library://Barcelona/Data/POIs.FeatureSource

something like:

$rsId = new MgResourceIdentifier(Session:$sessionId/POIs.FeatureSource);

if (! lostFunctionToCheckIfResourceExists($rsId)) {
  createResource();
}

Thanks in advance!

_________________________________________________________________
Moda para esta temporada. Ponte al día de todas las tendencias. 
http://www.msn.es/Mujer/moda/default.asp





More information about the Mapguide-users mailing list