/** * Get all resellers * * @access public * @return array Reseller */ public static function get_all() { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/reseller?wsdl'); $reseller_info = $client->get_all(); $resellers = []; foreach ($reseller_info as $info) { $resellers[] = Reseller::get_by_id($info['id']); } return $resellers; }
/** * Get all * * @access public * @return array $users */ public static function get_all() { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/product_type_category?wsdl'); $details = $client->get_all(); $categories = array(); foreach ($details as $detail) { $temp_ptc = new self(); $temp_ptc->id = $detail['id']; $temp_ptc->details = $detail; $categories[] = $temp_ptc; } return $categories; }
/** * Get all * * @access public * @return array $countries */ public static function get_all() { $client = new \Tigron\CP\Client\Soap('http://api.tigron.net/soap/country?wsdl'); $data = $client->get_all(); $countries = []; foreach ($data as $details) { $country = new self(); $country->id = $details['id']; $country->details = $details; $countries[] = $country; } return $countries; }