Ignore:
Timestamp:
Apr 1, 2010, 8:26:53 AM (15 years ago)
Author:
Pieter Naber
Message:

Application reads the node location file and the node status file and creates a KML file!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/inc/KMLPlacemark.class.php

    r7637 r7642  
    2727                </Placemark>';
    2828
    29         private $name;
    30         private $description;
    31         private $longitude;
    32         private $latitude;
    33         private $style;
     29        private $name;                                  // Name of the node
     30        private $descriptionLocation;   // Location information of the node
     31        private $descriptionStatus;             // Status information of the node
     32        private $longitude;                             // Longitude of the node
     33        private $latitude;                              // Latitude of the node
     34        private $style;                                 // Style of the placemark
    3435
    3536        /*
     
    3940         */
    4041        function __construct() {
     42                $this->name = '';
     43                $this->descriptionLocation = '';
     44                $this->descriptionStatus = '';
     45                $this->longitude = 0;
     46                $this->latitude = 0;
     47                $this->style = 'orangeArrowIcon';
    4148        }
    4249
     
    4552        }
    4653
    47         function setDescription($newDescription) {
    48                 $this->description = (string) $newDescription;
     54        function getName() {
     55                return $this->name;
     56        }
     57
     58        function setDescriptionLocation($newDescriptionLocation) {
     59                $this->descriptionLocation = (string) $newDescriptionLocation;
     60        }
     61
     62        function setDescriptionStatus($newDescriptionStatus) {
     63                $this->descriptionStatus = (string) $newDescriptionStatus;
    4964        }
    5065
     
    6580
    6681                $toString = str_replace('%NAME%', $this->name, $toString);
    67                 $toString = str_replace('%DESCRIPTION%', $this->description, $toString);
     82                $toString = str_replace('%DESCRIPTION%', $this->descriptionLocation . $this->descriptionStatus, $toString);
    6883                $toString = str_replace('%LONGITUDE%', $this->longitude, $toString);
    6984                $toString = str_replace('%LATITUDE%', $this->latitude, $toString);
Note: See TracChangeset for help on using the changeset viewer.