Searched refs:getApi (Results 1 – 6 of 6) sorted by relevance
45 return $this->getApi()->toDate(time());
52 public function getApi() function in Google\\Service\\ServiceControl\\AttributeContext
2469 this.environment.getApi().onreadystatechange=pi.util.Curry(this.event.readystatechange,this);2483 this.environment.getApi().abort();2527 … var readyState = this.environment.getApi().readyState, callback=this.environment.getCallback();2546 return _returnPiObject?request:request.environment.getApi();
119 …getApi().onreadystatechange=pi.util.Curry(this.event.readystatechange,this);this.environment.setUr…122 …getApi().readyState,callback=this.environment.getCallback();for(var i=0,len=callback.length;i<len;…
130 this.environment.getApi().onreadystatechange=pi.util.Curry(this.event.readystatechange,this);this.environment.setUrl(_url);this.environment.setCallback([]);return this;};pi.xhr.body={"addCallback":function(){return this.environment.addCallback.apply(this.environment,arguments);},"addData":function(){return this.environment.addData.apply(this.environment,arguments);},"abort":function(){this.environment.getApi().abort();return this;},"send":function(){var url=this.environment.getUrl(),data=this.environment.getData(),dataUrl="";if(!this.environment.getCache())133 url+=(url.search("\\?")==-1?"?":"&")+pi.util.String.format("{0}",dataUrl);this.api.open(this.environment.getType(),url,this.environment.getAsync());if(this.environment.getType()=="POST"){this.api.setRequestHeader("Content-Type","application/x-www-form-urlencoded");};this.api.send(this.environment.getType()=="GET"?"":dataUrl);return this;}};pi.xhr.body.environment={"_async":true,"_api":null,"_cache":true,"_callback":null,"_data":{},"_type":"GET","_url":"","setApi":function(_value){this._parent_.api=_value;this._setApi(_value);},"addCallback":function(_readyState,_fn){this.getCallback().push({"fn":_fn,"readyState":_readyState});return this._parent_;},"addData":function(_key,_value){this.getData()[_key]=_value;return this._parent_;},"setType":function(_value){this._setType(_value);return this._parent_;}};pi.xhr.body.event={"readystatechange":function(){var readyState=this.environment.getApi().readyState,callback=this.environment.getCallback();for(var i=0,len=callback.length;i<len;i++){if(pi.util.Array.indexOf(callback[i].readyState,readyState)>-1){callback[i].fn.apply(this);}}}};pi.xhr=pi.xhr.build();pi.xhr.get=function(_url,_returnPiObject){var request=new pi.xhr();request.environment.setAsync(false);request.environment.setUrl(_url);request.send();return _returnPiObject?request:request.environment.getApi();};pi.util.AddEvent(pi.env.ie?window:document,pi.env.ie?"load":"DOMContentLoaded",function(){for(var i=0,len=pi.util.Init.length;i<len;i++){pi.util.Init[i]();}});})(firebug);(function(){with(firebug){var scriptsIncluded=document.getElementsByTagName('script');for(var i=scriptsIncluded.length-1;i>=0;i--){var script=scriptsIncluded[i],src=getFileName(script.src);if(src){internal.liteFilename=src;break;}}
2480 this.environment.getApi().onreadystatechange=pi.util.Curry(this.event.readystatechange,this);2494 this.environment.getApi().abort();2538 var readyState = this.environment.getApi().readyState, callback=this.environment.getCallback();2557 return _returnPiObject?request:request.environment.getApi();