@ 2013-12-17T10:09:54Z <?php
$row = array(
'entity_id' =>
"14",
'entity_type_id' =>
"1",
'attribute_set_id' =>
"0",
'website_id' =>
"1",
'email' =>
"office@solarpower-augsburg.de",
'group_id' =>
"1",
'increment_id' =>
"000000011",
'store_id' =>
"0",
'created_at' =>
"2013-10-22 10:28:59",
'updated_at' =>
"2013-10-22 10:51:50",
'is_active' =>
"1",
'disable_auto_group_change' =>
"0",
'prefix' =>
"Herr",
'firstname' =>
"Gabriele ",
'middlename' =>
NULL,
'lastname' =>
"Ament",
'suffix' =>
"Solarpower Energy for Life",
'name' =>
"Herr Gabriele Ament Solarpower Energy for Life",
'is_partner' =>
"1",
'default_billing' =>
"16",
'billing_firstname' =>
"Gabriele ",
'billing_lastname' =>
"Ament",
'billing_postcode' =>
"86199",
'billing_city' =>
"Augsburg",
'billing_telephone' =>
"0821·90732-50",
'billing_country_id' =>
"DE",
'billing_street' =>
"Zum Fuggerschloß 38",
'billing_region' =>
"Bayern",
'billing_company' =>
"Solarpower Energy for Life Gabriele Ament e.K.",
'tom_geo_latitude' =>
"48.3237705",
'tom_geo_longitude' =>
"10.8221745",
);
$dom = new DOMDocument("1.0","UTF-8");
$node = $dom->createElement("Markers");
$parnode = $dom->appendChild($node);
$this->getResponse()->setHeader('Content-Type','text/xml','utf8');
foreach ($row as $key => $value) {
$address = $value['billing_street'] .','. $value['billing_country_id'] .'-'. $value['billing_postcode'] .' '. $value['billing_city'];
$distance = 6371 * acos( cos( deg2rad($qryVal[0]) ) * cos( deg2rad( $value['tom_geo_latitude'] ) ) * cos( deg2rad( $value['tom_geo_longitude'] ) - deg2rad($qryVal[1]) ) + sin( deg2rad($qryVal[0]) ) * sin(deg2rad( $value['tom_geo_latitude'] ) ) );
$contactPerson = $value['billing_firstname'] .' '. $value['billing_lastname'];
// ADD TO XML DOCUMENT NODE
$marker = $dom->createElement("Marker");
$newnode = $parnode->appendChild($marker);
$newnode->setAttribute("StoreId", $value['store_id']);
$newnode->setAttribute("Lat", $value['tom_geo_latitude']);
$newnode->setAttribute("Lng", $value['tom_geo_longitude']);
$newnode->setAttribute("Distance", $distance);
$newnode->setAttribute("ImgUrl", $key['ImgUrl']);
$newnode->setAttribute("CategoryIcon", '/skin/frontend/default/solarinvert/tom/dealer/default.png');
$newnode->setAttribute("Contactperson", $contactPerson);
$newnode->setAttribute("Phone", $value['billing_telephone']);
$newnode->setAttribute("Logo", $value['logo']);
/*
$newnode->setAttribute("Country", $value['billing_country_id']);
$newnode->setAttribute("Fax", $value['billing_fax']);
$newnode->setAttribute("Address", $address);
$newnode->setAttribute("Type", $value['Type']);
$newnode->setAttribute("Email", $value['email']);
$newnode->setAttribute("Website", $value['Website']);
$newnode->setAttribute("State", $value['billing_region']);
$newnode->setAttribute("City", $value['billing_city']);
$newnode->setAttribute("Name", $value['billing_company']);
*/
// $newnode->setAttribute("LabelId", $key['LabelId']);
// $newnode->setAttribute("LabelText", $key['LabelText']);
// $newnode->setAttribute("Google", $key['Google']);
// $newnode->setAttribute("Facebook", $key['Facebook']);
// $newnode->setAttribute("Twitter", $key['Twitter']);
// $newnode->setAttribute("Printrest", $key['Printrest']);
// $newnode->setAttribute("Gallery", $row['Gallery']);
// $newnode->setAttribute("Info", $row['Info']);
// $newnode->setAttribute("Working", $row['Working']);
// $newnode->setAttribute("Video", $row['Video']);
// $newnode->setAttribute("Direction", $row['Direction']);
}
echo $dom->saveXML();
}
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.4.23 0.022 0.072 12.44 5.4.22 0.024 0.058 12.44 5.4.21 0.013 0.041 12.44 5.4.20 0.023 0.069 12.44 5.4.19 0.028 0.076 12.44 5.4.18 0.024 0.064 12.44 5.4.17 0.014 0.040 12.42 5.4.16 0.015 0.041 12.41 5.4.15 0.030 0.089 12.40 5.4.14 0.018 0.068 12.10 5.4.13 0.012 0.043 12.08 5.4.12 0.014 0.043 12.05 5.4.11 0.013 0.042 12.04 5.4.10 0.019 0.065 12.04 5.4.9 0.019 0.053 12.04 5.4.8 0.026 0.056 12.04 5.4.7 0.021 0.061 12.04 5.4.6 0.015 0.072 12.04 5.4.5 0.013 0.042 12.04 5.4.4 0.033 0.079 12.03 5.4.3 0.014 0.042 12.02 5.4.2 0.012 0.053 12.02 5.4.1 0.011 0.040 12.02 5.4.0 0.012 0.041 11.52 5.3.28 0.018 0.070 12.71 5.3.27 0.014 0.058 12.72 5.3.26 0.013 0.043 12.72 5.3.25 0.010 0.042 12.72 5.3.24 0.013 0.049 12.72 5.3.23 0.012 0.050 12.71 5.3.22 0.012 0.042 12.68 5.3.21 0.024 0.062 12.68 5.3.20 0.011 0.043 12.68 5.3.19 0.012 0.043 12.67 5.3.18 0.018 0.053 12.67 5.3.17 0.011 0.045 12.67 5.3.16 0.011 0.043 12.67 5.3.15 0.014 0.042 12.67 5.3.14 0.016 0.054 12.66 5.3.13 0.012 0.043 12.66 5.3.12 0.012 0.043 12.66 5.3.11 0.015 0.045 12.66 5.3.10 0.016 0.039 12.12 5.3.9 0.018 0.049 12.09 5.3.8 0.014 0.042 12.08 5.3.7 0.012 0.045 12.08 5.3.6 0.013 0.043 12.06 5.3.5 0.016 0.040 12.01 5.3.4 0.024 0.061 12.01 5.3.3 0.013 0.041 11.97 5.3.2 0.009 0.043 11.74 5.3.1 0.010 0.042 11.71 5.3.0 0.013 0.043 11.70
preferences:dark mode live preview
139.78 ms | 1394 KiB | 7 Q