API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPWebDAVManager.j File Reference

Go to the source code of this file.

Variables

 CPWebDAVManagerCollectionResourceType = 1
 
 CPWebDAVManagerNonCollectionResourceType = 0
 
var mapURLsAndProperties
 
var parsePROPFINDResponse
 
var setURLResourceValuesForKeysFromProperties
 
var WebDAVPropertiesForURLKeys = { }
 
var XMLDocumentFromString
 

Variable Documentation

CPWebDAVManagerCollectionResourceType = 1

Definition at line 48 of file CPWebDAVManager.j.

CPWebDAVManagerNonCollectionResourceType = 0

Definition at line 49 of file CPWebDAVManager.j.

var mapURLsAndProperties
Initial value:
= function( properties, ignoredURL)
{
}

Definition at line 231 of file CPWebDAVManager.j.

var parsePROPFINDResponse

Definition at line 188 of file CPWebDAVManager.j.

var setURLResourceValuesForKeysFromProperties
Initial value:
= function(aURL, keys, properties)
{
var resourceType = [properties objectForKey:@"resourcetype"];
{
[aURL setResourceValue:YES forKey:CPURLIsDirectoryKey];
[aURL setResourceValue:NO forKey:CPURLIsRegularFileKey];
}
else if (resourceType === CPWebDAVManagerNonCollectionResourceType)
{
[aURL setResourceValue:NO forKey:CPURLIsDirectoryKey];
[aURL setResourceValue:YES forKey:CPURLIsRegularFileKey];
}
var displayName = [properties objectForKey:@"displayname"];
if (displayName !== nil)
{
[aURL setResourceValue:displayName forKey:CPURLNameKey];
[aURL setResourceValue:displayName forKey:CPURLLocalizedNameKey];
}
}

Definition at line 24 of file CPWebDAVManager.j.

WebDAVPropertiesForURLKeys[CPURLIsDirectoryKey] = { }

Definition at line 145 of file CPWebDAVManager.j.

var XMLDocumentFromString
Initial value:
= function(anXMLString)
{
if (typeof window["ActiveXObject"] !== "undefined")
{
var XMLDocument = new ActiveXObject("Microsoft.XMLDOM");
XMLDocument.async = false;
XMLDocument.loadXML(anXMLString);
return XMLDocument;
}
return new DOMParser().parseFromString(anXMLString,"text/xml");
}

Definition at line 173 of file CPWebDAVManager.j.