@ 2013-12-17T10:06:59Z <?php
$row = array(31) {
'entity_id' =>
string(2) "14"
'entity_type_id' =>
string(1) "1"
'attribute_set_id' =>
string(1) "0"
'website_id' =>
string(1) "1"
'email' =>
string(29) "office@solarpower-augsburg.de"
'group_id' =>
string(1) "1"
'increment_id' =>
string(9) "000000011"
'store_id' =>
string(1) "0"
'created_at' =>
string(19) "2013-10-22 10:28:59"
'updated_at' =>
string(19) "2013-10-22 10:51:50"
'is_active' =>
string(1) "1"
'disable_auto_group_change' =>
string(1) "0"
'prefix' =>
string(4) "Herr"
'firstname' =>
string(9) "Gabriele "
'middlename' =>
NULL
'lastname' =>
string(5) "Ament"
'suffix' =>
string(26) "Solarpower Energy for Life"
'name' =>
string(46) "Herr Gabriele Ament Solarpower Energy for Life"
'is_partner' =>
string(1) "1"
'default_billing' =>
string(2) "16"
'billing_firstname' =>
string(9) "Gabriele "
'billing_lastname' =>
string(5) "Ament"
'billing_postcode' =>
string(5) "86199"
'billing_city' =>
string(8) "Augsburg"
'billing_telephone' =>
string(14) "0821·90732-50"
'billing_country_id' =>
string(2) "DE"
'billing_street' =>
string(20) "Zum Fuggerschloß 38"
'billing_region' =>
string(6) "Bayern"
'billing_company' =>
string(46) "Solarpower Energy for Life Gabriele Ament e.K."
'tom_geo_latitude' =>
string(10) "48.3237705"
'tom_geo_longitude' =>
string(10) "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.020 0.073 19.05 5.4.22 0.027 0.060 19.21 5.4.21 0.020 0.043 19.30 5.4.20 0.030 0.043 19.31 5.4.19 0.013 0.053 19.21 5.4.18 0.023 0.070 19.07 5.4.17 0.023 0.043 18.86 5.4.16 0.023 0.070 19.04 5.4.15 0.013 0.080 18.93 5.4.14 0.023 0.057 16.52 5.4.13 0.020 0.057 16.50 5.4.12 0.030 0.033 16.37 5.4.11 0.027 0.050 16.35 5.4.10 0.030 0.053 16.27 5.4.9 0.020 0.067 16.42 5.4.8 0.030 0.057 16.26 5.4.7 0.027 0.067 16.46 5.4.6 0.030 0.063 16.56 5.4.5 0.027 0.037 16.36 5.4.4 0.020 0.050 16.25 5.4.3 0.027 0.067 16.42 5.4.2 0.033 0.040 16.53 5.4.1 0.017 0.053 16.52 5.4.0 0.020 0.050 16.20 5.3.28 0.023 0.043 14.53 5.3.27 0.023 0.053 14.60 5.3.26 0.020 0.070 14.58 5.3.25 0.023 0.067 14.46 5.3.24 0.020 0.043 14.51 5.3.23 0.023 0.070 14.51 5.3.22 0.020 0.043 14.40 5.3.21 0.020 0.060 14.43 5.3.20 0.017 0.060 14.40 5.3.19 0.020 0.063 14.42 5.3.18 0.027 0.063 14.43 5.3.17 0.023 0.050 14.51 5.3.16 0.020 0.080 14.61 5.3.15 0.033 0.070 14.52 5.3.14 0.027 0.047 14.41 5.3.13 0.033 0.073 14.60 5.3.12 0.023 0.067 14.41 5.3.11 0.027 0.070 14.50 5.3.10 0.023 0.050 13.99 5.3.9 0.020 0.040 13.86 5.3.8 0.017 0.040 14.11 5.3.7 0.023 0.040 13.96 5.3.6 0.020 0.043 14.05 5.3.5 0.030 0.067 13.79 5.3.4 0.017 0.067 13.74 5.3.3 0.020 0.070 13.76 5.3.2 0.023 0.067 13.62 5.3.1 0.030 0.060 13.61 5.3.0 0.010 0.043 13.61
preferences:dark mode live preview
141.21 ms | 1394 KiB | 7 Q