- Timestamp:
- Apr 16, 2010, 11:25:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/kmlHandler.php
r7784 r7785 24 24 * Then we itirate trough all the data and fill the variables 25 25 */ 26 $location ;27 $status ;28 $interfaces ;29 $masterIP ;30 $nodeType ;31 $type ;32 $hostname ;33 $hasBeenChecked ;34 $checkExecutionTime ;35 $currentState ;36 $lastCheck ;37 $problemHasBeenAcknowledged ;26 $location = ""; 27 $status = ""; 28 $interfaces = ""; 29 $masterIP = ""; 30 $nodeType = ""; 31 $type = ""; 32 $hostname = ""; 33 $hasBeenChecked = ""; 34 $checkExecutionTime = ""; 35 $currentState = ""; 36 $lastCheck = ""; 37 $problemHasBeenAcknowledged = ""; 38 38 39 39 foreach($placemark->ExtendedData->Data as $data) … … 43 43 if($name == "location") 44 44 $location = $data->value; 45 elseif($name == "status") 45 46 if($name == "status") 46 47 $status = $data->value; 47 elseif($name == "interfaces") 48 49 if($name == "interfaces") 48 50 $interfaces = $data->value; 49 elseif($name == "masterIP") 51 52 if($name == "masterIP") 50 53 $masterIP = $data->value; 51 elseif($name == "nodeType") 54 55 if($name == "nodeType") 52 56 $nodeType = $data->value; 53 elseif($name == "type") 57 58 if($name == "type") 54 59 $type = $data->value; 55 elseif($name == "hostname") 60 61 if($name == "hostname") 56 62 $hostname = $data->value; 57 elseif($name == "hasBeenChecked") 63 64 if($name == "hasBeenChecked") 58 65 $hasBeenChecked = $data->value; 59 elseif($name == "checkExecutionTime") 66 67 if($name == "checkExecutionTime") 60 68 $checkExecutionTime = $data->value; 61 elseif($name == "currentState") 69 70 if($name == "currentState") 62 71 $currentState = $data->value; 63 elseif($name == "problemHasBeenAcknowledged") 72 73 if($name == "problemHasBeenAcknowledged") 64 74 $problemHasBeenAcknowledged = $data->value; 65 elseif($name == "location")66 $location = $data->value;67 75 } 68 76 } … … 77 85 "name"=>$placemark->name, 78 86 "location"=>$location, 79 "status"=>$status); 80 87 "status"=>$status, 88 "interfaces"=>$interfaces, 89 "masterIP"=>$masterIP, 90 "nodeType"=>$nodeType, 91 "type"=>$type, 92 "hostname"=>$hostname, 93 "hasBeenChecked"=>$hasBeenChecked, 94 "checkExecutionTime"=>$checkExecutionTime, 95 "currentState"=>$currentState, 96 "lastCheck"=>$lastCheck, 97 "problemHasBeenAcknowledged"=>$problemHasBeenAcknowledged); 81 98 } 82 99 return $markers;
Note:
See TracChangeset
for help on using the changeset viewer.