tPost=$tPost; $this->sRequestMethod='POST'; } public function setGet($tGet){ $this->tGet=$tGet; } public function enableToken($sTokenName='token'){ $this->bToken=true; $this->sTokenName=$sTokenName; } public function send(){ $_SERVER['REQUEST_METHOD']=$this->sRequestMethod; if($this->bToken){ $oPluginXsrf=new plugin_xsrf(); $sToken=$oPluginXsrf->getToken(); $this->tPost[$this->sTokenName]=$sToken; } _root::addRequest($this->tGet); _root::addRequest($this->tPost); _root::loadRequest(); } }