static function buildFromJSON($vo_json) { //var_dump( $vo_json ); $o_internet = new Internet(); if (array_key_exists("internet_days_between_order_and_shipping", $vo_json)) { $o_internet->setDaysBetweenOrderAndShipping($vo_json["internet_days_between_order_and_shipping"]); } if (array_key_exists("internet_delivery_confimation", $vo_json)) { $o_delivery_confirmation = $vo_json["internet_delivery_confimation"]; for ($n_index = 0, $n_size = count($o_delivery_confirmation); $n_index < $n_size; $n_index++) { $o_internet->addDeliveryConfirmation($o_delivery_confirmation[$n_index]); } } if (array_key_exists("internet_deposit", $vo_json)) { $o_internet->setDeposit($vo_json["internet_deposit"]); } if (array_key_exists("internet_deposit_required", $vo_json)) { $o_internet->setDepositRequired($vo_json["internet_deposit_required"]); } if (array_key_exists("internet_delivery_of_goods", $vo_json)) { $o_internet->setDeliveryOfGoods($vo_json["internet_delivery_of_goods"]); } if (array_key_exists("internet_return_policy_time_period", $vo_json)) { $o_internet->setReturnPolicyTimePeriod($vo_json["internet_return_policy_time_period"]); } if (array_key_exists("internet_return_policy", $vo_json)) { $o_return_policy = $vo_json["internet_return_policy"]; for ($n_index = 0, $n_size = count($o_return_policy); $n_index < $n_size; $n_index++) { $o_internet->addReturnPolicy($o_return_policy[$n_index]); } } if (array_key_exists("internet_shipped_goods", $vo_json)) { $o_shipped_goods = $vo_json["internet_shipped_goods"]; for ($n_index = 0, $n_size = count($o_shipped_goods); $n_index < $n_size; $n_index++) { $o_internet->addShippedGoods($o_shipped_goods[$n_index]); } } if (array_key_exists("internet_fulfillment_vendor_utilized", $vo_json)) { $o_internet->setFulfillmentVendorUtilized($vo_json["internet_fulfillment_vendor_utilized"]); } if (array_key_exists("internet_percent_of_sales_to_non_us_cardholders", $vo_json)) { $o_internet->setPercentOfSalesToNonUsCardHolders($vo_json["internet_percent_of_sales_to_non_us_cardholders"]); } if (array_key_exists("internet_website_ip", $vo_json)) { $o_internet->setWebsiteIpAddress($vo_json["internet_website_ip"]); } if (array_key_exists("internet_applicant_owns_web_domain_and_content", $vo_json)) { $o_internet->setApplicantOwnsWebDomainAndContent($vo_json["internet_applicant_owns_web_domain_and_content"]); } if (array_key_exists("internet_policies_accessible_on_website", $vo_json)) { $o_policies = $vo_json["internet_policies_accessible_on_website"]; for ($n_index = 0, $n_size = count($o_policies); $n_index < $n_size; $n_index++) { $o_internet->addPoliciesAccessibleOnWebsite($o_policies[$n_index]); } } if (array_key_exists("internet_web_host_vendor_name", $vo_json)) { $o_internet->setWebHostVendorName($vo_json["internet_web_host_vendor_name"]); } if (array_key_exists("internet_ssl_certificate_issuer", $vo_json)) { $o_internet->setSslCertificateIssuer($vo_json["internet_ssl_certificate_issuer"]); } if (array_key_exists("internet_ssl_certificate_number", $vo_json)) { $o_internet->setSslCertificateNumber($vo_json["internet_ssl_certificate_number"]); } if (array_key_exists("internet_ssl_certificate_type", $vo_json)) { $o_internet->setSslCertificateType($vo_json["internet_ssl_certificate_type"]); } if (array_key_exists("internet_gateway_software_name", $vo_json)) { $o_internet->setGatewaySoftwareName($vo_json["internet_gateway_software_name"]); } if (array_key_exists("internet_gateway_software_version", $vo_json)) { $o_internet->setGatewaySoftwareVersion($vo_json["internet_gateway_software_version"]); } if (array_key_exists("internet_gateway_software_vendor", $vo_json)) { $o_internet->setGatewaySoftwareVendor($vo_json["internet_gateway_software_vendor"]); } if (array_key_exists("internet_temp_login_credentials", $vo_json)) { $o_internet->setTempLoginCredentials($vo_json["internet_temp_login_credentials"]); } if (array_key_exists("internet_inventory_owner", $vo_json)) { $o_internet->setInventoryOwner($vo_json["internet_inventory_owner"]); } if (array_key_exists("internet_fulfillment_vendor", $vo_json)) { $o_internet->setFulfillmentVendor($vo_json["internet_fulfillment_vendor"]); } if (array_key_exists("internet_fulfillment_vendor_phone_number", $vo_json)) { $o_internet->setFulfillmentVendorPhoneNumber($vo_json["internet_fulfillment_vendor_phone_number"]); } return $o_internet; }