rax_rule_type = strtolower($type); $this->shipping_taxed = $shipping_taxed; $this->tax_rate = $tax_rate; if ($country_area != "") { $this->SetCountryArea($country_area); } $this->state_areas_arr = array(); $this->zip_patterns_arr = array(); } /** * @param $areas */ function SetStateAreas($areas) { if (is_array($areas)) { $this->state_areas_arr = $areas; } else $this->state_areas_arr = array($areas); } /** * @param $zips */ function SetZipPatterns($zips) { if (is_array($zips)) { $this->zip_patterns_arr = $zips; } else $this->zip_patterns_arr = array($zips); } /** * @param $country_area */ function SetCountryArea($country_area) { if ($country_area == "CONTINENTAL_48" || $country_area == "FULL_50_STATES" || $country_area = "ALL" ) $this->country_area = $country_area; else $this->country_area = ""; } }