@ 2013-12-17T10:09:04Z <?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.016 0.045 12.37 5.4.22 0.015 0.046 12.36 5.4.21 0.022 0.046 12.37 5.4.20 0.018 0.043 12.36 5.4.19 0.014 0.043 12.36 5.4.18 0.033 0.056 12.36 5.4.17 0.016 0.042 12.37 5.4.16 0.017 0.043 12.36 5.4.15 0.014 0.048 12.36 5.4.14 0.024 0.067 12.05 5.4.13 0.019 0.039 12.03 5.4.12 0.020 0.036 12.00 5.4.11 0.011 0.047 11.99 5.4.10 0.017 0.042 11.99 5.4.9 0.025 0.064 12.00 5.4.8 0.016 0.049 12.00 5.4.7 0.020 0.047 11.99 5.4.6 0.013 0.045 11.99 5.4.5 0.015 0.044 11.99 5.4.4 0.017 0.040 11.98 5.4.3 0.035 0.087 11.98 5.4.2 0.013 0.048 11.97 5.4.1 0.013 0.045 11.97 5.4.0 0.019 0.040 11.47 5.3.28 0.014 0.053 12.71 5.3.27 0.021 0.044 12.73 5.3.26 0.043 0.084 12.71 5.3.25 0.019 0.044 12.72 5.3.24 0.019 0.052 12.72 5.3.23 0.016 0.047 12.71 5.3.22 0.023 0.043 12.68 5.3.21 0.036 0.088 12.68 5.3.20 0.021 0.047 12.68 5.3.19 0.023 0.045 12.68 5.3.18 0.038 0.086 12.67 5.3.17 0.022 0.044 12.67 5.3.16 0.018 0.046 12.67 5.3.15 0.026 0.039 12.67 5.3.14 0.043 0.082 12.66 5.3.13 0.019 0.046 12.66 5.3.12 0.015 0.048 12.66 5.3.11 0.019 0.042 12.65 5.3.10 0.018 0.042 12.12 5.3.9 0.017 0.046 12.08 5.3.8 0.013 0.050 12.07 5.3.7 0.017 0.043 12.08 5.3.6 0.017 0.044 12.07 5.3.5 0.016 0.048 12.00 5.3.4 0.018 0.044 12.00 5.3.3 0.022 0.069 11.94 5.3.2 0.017 0.045 11.71 5.3.1 0.016 0.040 11.67 5.3.0 0.018 0.041 11.65
preferences:dark mode live preview
143.63 ms | 1394 KiB | 7 Q