a:17:{s:9:"#provides";s:24:"dojox.atom.io.Connection";s:9:"#resource";s:21:"atom/io/Connection.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:19:"dojox.atom.io.model";}}s:24:"dojox.atom.io.Connection";a:6:{s:4:"type";s:8:"Function";s:7:"summary";s:11:"initializer";s:11:"description";s:278:"This object implements a transport layer for working with ATOM feeds and ATOM publishing protocols. Specifically, it provides a mechanism by which feeds can be fetched and entries can be fetched, created deleted, and modified. It also provides access to the introspection data.";s:10:"parameters";a:2:{s:4:"sync";a:1:{s:4:"type";s:7:"Boolean";}s:12:"preventCache";a:1:{s:4:"type";s:7:"Boolean";}}s:6:"source";s:55:" this.sync = sync; this.preventCache = preventCache;";s:9:"classlike";b:1;}s:37:"dojox.atom.io.Connection.preventCache";a:3:{s:9:"prototype";s:24:"dojox.atom.io.Connection";s:8:"instance";s:24:"dojox.atom.io.Connection";s:7:"summary";s:0:"";}s:38:"dojox.atom.io.Connection.alertsEnabled";a:2:{s:9:"prototype";s:24:"dojox.atom.io.Connection";s:7:"summary";s:0:"";}s:32:"dojox.atom.io.Connection.getFeed";a:7:{s:9:"prototype";s:24:"dojox.atom.io.Connection";s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:3:"url";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:34:"The URL of the ATOM feed to fetch.";}s:8:"callback";a:2:{s:4:"type";s:8:"Function";s:7:"summary";s:172:"A function reference that will handle the feed when it has been retrieved. The callback should accept two parameters: The feed object and the original complete DOM object.";}s:13:"errorCallback";a:1:{s:4:"type";s:8:"Function";}s:5:"scope";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:35:"The scope to use for all callbacks.";}}s:6:"source";s:164:" this._getXmlDoc(url, "feed", new dojox.atom.io.model.Feed(), dojox.atom.io.model._Constants.ATOM_NS, callback, /*handleDocumentRetrieved,*/ errorCallback, scope);";s:7:"summary";s:69:"Function to obtain a s specific ATOM feed from a given ATOM Feed url.";s:11:"description";s:141:"This function takes the URL for a specific ATOM feed and returns the data from that feed to the caller through the use of a callback handler.";s:14:"return_summary";s:60:"Nothing. The return is handled through the callback handler.";}s:35:"dojox.atom.io.Connection.getService";a:7:{s:9:"prototype";s:24:"dojox.atom.io.Connection";s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:3:"url";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:69:"The URL of the ATOM document to obtain the introspection document of.";}s:8:"callback";a:2:{s:4:"type";s:8:"Function";s:7:"summary";s:208:"A function reference that will handle the introspection document when it has been retrieved. The callback should accept two parameters: The introspection document object and the original complete DOM object.";}s:13:"errorCallback";a:1:{s:4:"type";s:0:"";}s:5:"scope";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:143:" this._getXmlDoc(url, "service", new dojox.atom.io.model.Service(url), dojox.atom.io.model._Constants.APP_NS, callback, errorCallback, scope);";s:7:"summary";s:66:"Function to retrieve an introspection document from the given URL.";s:11:"description";s:93:"This function takes the URL for an ATOM item and feed and returns the introspection document.";s:14:"return_summary";s:60:"Nothing. The return is handled through the callback handler.";}s:33:"dojox.atom.io.Connection.getEntry";a:7:{s:9:"prototype";s:24:"dojox.atom.io.Connection";s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:3:"url";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:44:"The URL of the ATOM Entry document to parse.";}s:8:"callback";a:2:{s:4:"type";s:8:"Function";s:7:"summary";s:166:"A function reference that will handle the Entry object obtained. The callback should accept two parameters, the dojox.atom.io.model.Entry object and the original dom.";}s:13:"errorCallback";a:1:{s:4:"type";s:0:"";}s:5:"scope";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:137:" this._getXmlDoc(url, "entry", new dojox.atom.io.model.Entry(), dojox.atom.io.model._Constants.ATOM_NS, callback, errorCallback, scope);";s:7:"summary";s:73:"Function to retrieve a single entry from an ATOM feed from the given URL.";s:11:"description";s:138:"This function takes the URL for an ATOM entry and returns the constructed dojox.atom.io.model.Entry object through the specified callback.";s:14:"return_summary";s:60:"Nothing. The return is handled through the callback handler.";}s:35:"dojox.atom.io.Connection._getXmlDoc";a:8:{s:9:"prototype";s:24:"dojox.atom.io.Connection";s:4:"type";s:8:"Function";s:10:"parameters";a:7:{s:3:"url";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:39:"The URL of the XML document to retrieve";}s:8:"nodeName";a:1:{s:4:"type";s:0:"";}s:7:"newNode";a:1:{s:4:"type";s:0:"";}s:9:"namespace";a:1:{s:4:"type";s:0:"";}s:8:"callback";a:2:{s:4:"type";s:8:"Function";s:7:"summary";s:139:"A function reference that will handle the retrieved XML data. The callback should accept one parameter, the DOM of the parsed XML document.";}s:13:"errorCallback";a:1:{s:4:"type";s:0:"";}s:5:"scope";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:2244:" if(!scope){ scope = dojo.global; } var ae = this.alertsEnabled; var xhrArgs = { url: url, handleAs: "xml", sync: this.sync, preventCache: this.preventCache, load: function(data, args){ var node = null; var evaldObj = data; var nodes; if(evaldObj){ //find the first node of the appropriate name if(typeof(evaldObj.getElementsByTagNameNS)!= "undefined"){ nodes = evaldObj.getElementsByTagNameNS(namespace,nodeName); if(nodes && nodes.length > 0){ node = nodes.item(0); }else if(evaldObj.lastChild){ // name_spaces can be used without declaration of atom (for example // gooogle feeds often returns iTunes name_space qualifiers on elements) // Treat this situation like name_spaces not enabled. node = evaldObj.lastChild; } }else if(typeof(evaldObj.getElementsByTagName)!= "undefined"){ // Find the first eith the correct tag name and correct namespace. nodes = evaldObj.getElementsByTagName(nodeName); if(nodes && nodes.length > 0){ for(var i=0; i