sendNow() public method

public sendNow ( )
コード例 #1
0
 /**
  * Proxy request from server to GwtPHP server and return list of Gadgets
  * @service gadget read
  * @param Gpf_Rpc_Params $params
  * @return Gpf_Data_RecordSet
  */
 public function getWidgetsList(Gpf_Rpc_Params $params)
 {
     $proxyRequest = new Gpf_Rpc_Request('Aw_GadgetLibrary', 'getRows');
     $proxyRequest->setUrl('http://addons.qualityunit.com/scripts/server.php');
     $proxyRequest->setParams($params);
     $proxyRequest->sendNow();
     return $proxyRequest->getResponseObject();
 }
コード例 #2
0
 private function sendRequest(Gpf_Rpc_Request $request, Gpf_Rpc_Params $params) {
     $request->setUrl('http://addons.qualityunit.com/scripts/server.php');
     // $request->setUrl('http://localhost/trunk/AddonsWeb/trunk/server/scripts/server.php');
     $params->add('application_code', Gpf_Application::getInstance()->getCode());
     $params->add('application_version', Gpf_Application::getInstance()->getVersion());
     $request->setParams($params);
     $request->sendNow();
 }