Changeset 7720 for trunk/src/inc/KMLPlacemark.class.php
- Timestamp:
- Apr 12, 2010, 5:56:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/inc/KMLPlacemark.class.php ¶
r7692 r7720 5 5 * Purpose: Placemark used in KMLFile 6 6 */ 7 8 define('PLACEMARK_GREEN', 'greenArrowIcon'); 9 define('PLACEMARK_ORANGE', 'orangeArrowIcon'); 10 define('PLACEMARK_RED', 'redArrowIcon'); 7 11 8 12 class KMLPlacemark { … … 41 45 /* 42 46 * Function: __construct (constructor) 47 * Description: Creating a new KMLFile 43 48 * Parameters: - 44 * Function: Creating a new KMLFile49 * Returns: - 45 50 */ 46 51 function __construct() { … … 54 59 } 55 60 61 /* 62 * Function: setID 63 * Description: Setting the ID of the placemark 64 * Parameters: string $newID 65 * Returns: - 66 */ 56 67 function setID($newID) { 57 68 $this->id = $newID; 58 69 } 59 70 71 /* 72 * Function: setName 73 * Description: Setting the name of the placemark 74 * Parameters: string $newName 75 * Returns: - 76 */ 60 77 function setName($newName) { 61 78 $this->name = $newName; 62 79 } 63 80 81 /* 82 * Function: getName 83 * Description: Getting the name of the placemark 84 * Parameters: - 85 * Returns: The name of the placemark 86 */ 64 87 function getName() { 65 88 return $this->name; 66 89 } 67 90 91 /* 92 * Function: setDescriptionLocation 93 * Description: Setting the location description of the placemark 94 * Parameters: string $newDescriptionLocation 95 * Returns: - 96 */ 68 97 function setDescriptionLocation($newDescriptionLocation) { 69 98 $this->descriptionLocation = (string) $newDescriptionLocation; 70 99 } 71 100 101 /* 102 * Function: setDescriptionStatus 103 * Description: Setting the status description of the placemark 104 * Parameters: string $newDescriptionStatus 105 * Returns: - 106 */ 72 107 function setDescriptionStatus($newDescriptionStatus) { 73 108 $this->descriptionStatus = (string) $newDescriptionStatus; 74 109 } 75 110 111 /* 112 * Function: setLongitude 113 * Description: Setting the longitude of the placemark 114 * Parameters: string $newLongitude 115 * Returns: - 116 */ 76 117 function setLongitude($newLongitude) { 77 118 $this->longitude = (double) $newLongitude; 78 119 } 79 120 121 /* 122 * Function: setLatitude 123 * Description: Setting the latitude of the placemark 124 * Parameters: string $newLatitude 125 * Returns: - 126 */ 80 127 function setLatitude($newLatitude) { 81 128 $this->latitude = (double) $newLatitude; 82 129 } 83 130 131 /* 132 * Function: setStyle 133 * Description: Setting the style of the placemark 134 * Parameters: string $newStyle 135 * Returns: - 136 */ 84 137 function setStyle($newStyle) { 85 138 $this->style = (string) $newStyle; 86 139 } 87 140 141 /* 142 * Function: toString 143 * Description: Converts the content of this placemark to a KML valid string 144 * Parameters: - 145 * Returns: KML valid string 146 */ 88 147 function toString() { 89 148 $toString = $this->template;
Note:
See TracChangeset
for help on using the changeset viewer.