/** * Save function * * @access public */ public function save() { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/invoice_queue?wsdl'); if (isset($this->details['id']) and $this->details['id'] > 0) { $this->details = $client->update($this->details['id'], $this->details); } else { $this->id = $client->insert($this->details); } $this->get_details(); }
/** * Save * * @access public */ public function save() { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/subdomain?wsdl'); if (isset($this->id)) { $client->update($this->id, $this->details); } else { $this->id = $this->insert($this->id, $this->details); } }