예제 #1
0
파일: API.php 프로젝트: helmo/registrar_api
 public function process(OP_Request $r)
 {
     $this->doDebug($r->getRaw());
     $msg = $r->getRaw();
     $str = $this->_send($msg);
     if (!$str) {
         throw new OP_API_Exception('Bad reply');
     }
     $this->doDebug($str);
     return new OP_Reply($str);
 }
예제 #2
0
파일: api.php 프로젝트: jfquestiaux/fabrik
 public function process(OP_Request $r)
 {
     if ($this->debug) {
         echo $r->getRaw() . "\n";
     }
     $msg = $r->getRaw();
     $str = $this->_send($msg);
     if (!$str) {
         throw new OP_API_Exception('Bad reply');
     }
     if ($this->debug) {
         echo $str . "\n";
     }
     return new OP_Reply($str);
 }