Ejemplo n.º 1
0
 public function __construct(Response $response, $method, array $sent, &$result)
 {
     $this->result =& $result;
     $this->sent = $sent;
     $this->xml = $response->content();
     if ($response->success()) {
         if (mw_conf('save_data')) {
             $callable = "_save" . ucfirst($method);
             if (method_exists($this, $callable)) {
                 $this->{$callable}();
             }
             mw_log($response->content()->asXML(), $sent);
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * Returns the API Passphrase for the Merchant Warrior account
  * @return mixed
  */
 function mw_api_passphrase()
 {
     return mw_conf('api_passphrase');
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     $this->testing = mw_conf('testing');
 }