Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }