Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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;
 }
Example #4
0
 /**
  * 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];
 }
Example #5
0
 /**
  * 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;
 }
Example #6
0
 /**
  * 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;
 }
Example #7
0
 /**
  * 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;
 }