Changeset 7642 for trunk/src/inc/KMLPlacemark.class.php
- Timestamp:
- Apr 1, 2010, 8:26:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/KMLPlacemark.class.php
r7637 r7642 27 27 </Placemark>'; 28 28 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 34 35 35 36 /* … … 39 40 */ 40 41 function __construct() { 42 $this->name = ''; 43 $this->descriptionLocation = ''; 44 $this->descriptionStatus = ''; 45 $this->longitude = 0; 46 $this->latitude = 0; 47 $this->style = 'orangeArrowIcon'; 41 48 } 42 49 … … 45 52 } 46 53 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; 49 64 } 50 65 … … 65 80 66 81 $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); 68 83 $toString = str_replace('%LONGITUDE%', $this->longitude, $toString); 69 84 $toString = str_replace('%LATITUDE%', $this->latitude, $toString);
Note:
See TracChangeset
for help on using the changeset viewer.