/** * Get the details via Soap * * @access private */ private function get_details() { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/product_type_category?wsdl'); $this->details = $client->get_by_id($this->id); }
/** * Get the details via Soap * * @access private */ private function get_details() { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/invoice_queue?wsdl'); $this->details = $client->get_by_id($this->id); }
/** * Get by id * * @access public * @return \Tigron\Invoice $invoice */ public static function get_by_id($id) { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/invoice?wsdl'); $details = $client->get_by_id($id); $invoice = new self(); $invoice->id = $details['id']; $invoice->details = $details; return $invoice; }
/** * Get by ID * * @access public * @param int $user_id * @Return User $user */ public static function get_by_id($id) { if (!isset(self::$objectcache[$id])) { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/user?wsdl'); $info = $client->get_by_id($id); $user = new User(); $user->id = $info['id']; $user->details = $info; self::$objectcache[$id] = $user; } return self::$objectcache[$id]; }
/** * Get by id * * @access public * @return Order_Item $order_item */ public static function get_by_id($id) { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/order_item?wsdl'); $details = $client->get_by_id($id); $order_item = new self(); $order_item->id = $details['id']; $order_item->details = $details; return $order_item; }
/** * Get by id * * @access public * @return \Tigron\Product $product */ public static function get_by_id($id) { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/subdomain?wsdl'); $details = $client->get_by_id($id); $subdomain = new self(); $subdomain->id = $details['id']; $subdomain->details = $details; return $subdomain; }
/** * Get by id * * @access public * @return \Tigron\Country $contact */ public static function get_by_id($id) { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/country?wsdl'); $details = $client->get_by_id($id); $country = new self(); $country->id = $details['id']; $country->details = $details; return $country; }