a:11:{s:9:"#provides";s:11:"dojo.cookie";s:9:"#resource";s:9:"cookie.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:11:"dojo.regexp";}}s:18:"dojo.__cookieProps";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:753:"dojo.provide("dojo.cookie"); dojo.require("dojo.regexp"); dojo.__cookieProps = function(){ // expires: Date|String|Number? // If a number, the number of days from today at which the cookie // will expire. If a date, the date past which the cookie will expire. // If expires is in the past, the cookie will be deleted. // If expires is omitted or is 0, the cookie will expire when the browser closes. << FIXME: 0 seems to disappear right away? FF3. // path: String? // The path to use for the cookie. // domain: String? // The domain to use for the cookie. // secure: Boolean? // Whether to only send the cookie on secure connections this.expires = expires; this.path = path; this.domain = domain; this.secure = secure;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojo.__cookieProps.expires";a:4:{s:8:"instance";s:18:"dojo.__cookieProps";s:4:"type";s:19:"Date|String|Number?";s:7:"summary";s:318:"If a number, the number of days from today at which the cookie will expire. If a date, the date past which the cookie will expire. If expires is in the past, the cookie will be deleted. If expires is omitted or is 0, the cookie will expire when the browser closes. << FIXME: 0 seems to disappear right away? FF3.";s:14:"private_parent";b:1;}s:23:"dojo.__cookieProps.path";a:4:{s:8:"instance";s:18:"dojo.__cookieProps";s:4:"type";s:7:"String?";s:7:"summary";s:31:"The path to use for the cookie.";s:14:"private_parent";b:1;}s:25:"dojo.__cookieProps.domain";a:4:{s:8:"instance";s:18:"dojo.__cookieProps";s:4:"type";s:7:"String?";s:7:"summary";s:33:"The domain to use for the cookie.";s:14:"private_parent";b:1;}s:25:"dojo.__cookieProps.secure";a:4:{s:8:"instance";s:18:"dojo.__cookieProps";s:4:"type";s:8:"Boolean?";s:7:"summary";s:53:"Whether to only send the cookie on secure connections";s:14:"private_parent";b:1;}s:11:"dojo.cookie";a:7:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"name";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:18:"Name of the cookie";}s:5:"value";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"String";s:7:"summary";s:20:"Value for the cookie";}s:5:"props";a:3:{s:8:"optional";b:1;s:4:"type";s:18:"dojo.__cookieProps";s:7:"summary";s:25:"Properties for the cookie";}}s:6:"source";s:872:" var c = document.cookie; if(arguments.length == 1){ var matches = c.match(new RegExp("(?:^|; )" + dojo.regexp.escapeString(name) + "=([^;]*)")); return matches ? decodeURIComponent(matches[1]) : undefined; // String or undefined }else{ props = props || {}; // FIXME: expires=0 seems to disappear right away, not on close? (FF3) Change docs? var exp = props.expires; if(typeof exp == "number"){ var d = new Date(); d.setTime(d.getTime() + exp*24*60*60*1000); exp = props.expires = d; } if(exp && exp.toUTCString){ props.expires = exp.toUTCString(); } value = encodeURIComponent(value); var updatedCookie = name + "=" + value, propName; for(propName in props){ updatedCookie += "; " + propName; var propValue = props[propName]; if(propValue !== true){ updatedCookie += "=" + propValue; } } document.cookie = updatedCookie; }";s:7:"summary";s:20:"Get or set a cookie.";s:11:"description";s:103:"If one argument is passed, returns the value of the cookie For two or more arguments, acts as a setter.";s:7:"returns";s:19:"String or undefined";s:8:"examples";a:3:{i:0;s:159:"set a cookie with the JSON-serialized contents of an object which will expire 5 days from now: dojo.cookie("configObj", dojo.toJson(config), { expires: 5 });";i:1;s:108:"de-serialize a cookie back into a JavaScript object: var config = dojo.fromJson(dojo.cookie("configObj"));";i:2;s:65:"delete a cookie: dojo.cookie("configObj", null, {expires: -1});";}}s:23:"dojo.cookie.isSupported";a:3:{s:4:"type";s:8:"Function";s:6:"source";s:276:" if(!("cookieEnabled" in navigator)){ this("__djCookieTest__", "CookiesAllowed"); navigator.cookieEnabled = this("__djCookieTest__") == "CookiesAllowed"; if(navigator.cookieEnabled){ this("__djCookieTest__", "", {expires: -1}); } } return navigator.cookieEnabled;";s:7:"summary";s:147:"Use to determine if the current browser supports cookies or not. Returns true if user allows cookies. Returns false if user doesn't allow cookies.";}s:4:"dojo";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}