EmbedGoogleMapParameters

The Embed Google Map EmbedGoogleMapParameters class.

Defined (1)

The class is defined in the following location(s).

/embed_google_map.php  
  1. class EmbedGoogleMapParameters { 
  2. private $version = "new"; 
  3. private $embedAPIKey = ""; 
  4. private $address = ""; 
  5. private $mapType = "normal"; 
  6. private $zoomLevel = 14; 
  7. private $language = "en"; 
  8. private $addLink = 0; 
  9. private $linkLabel = ""; 
  10. private $linkFull = 0; 
  11. private $showInfo = 1; 
  12. private $height = 300; 
  13. private $width = 400; 
  14. private $border = 0; 
  15. private $borderStyle = "solid"; 
  16. private $borderColor = "#000000"; 
  17. private $https = 0; 
  18. private $infoLabel = "";  
  19.  
  20. public function setVersion($value) { 
  21. $this->version = $value; 
  22.  
  23. public function getVersion() { 
  24. return $this->version; 
  25.  
  26. public function setEmbedAPIKey($value) { 
  27. $this->embedAPIKey = $value; 
  28.  
  29. public function getEmbedAPIKey() { 
  30. return $this->embedAPIKey; 
  31.  
  32. public function setAddress($value) { 
  33. $this->address = $value; 
  34.  
  35. public function getAddress() { 
  36. return $this->address; 
  37.  
  38. public function setMapType($value) { 
  39. $this->mapType = $value; 
  40.  
  41. public function getMapType() { 
  42. return $this->mapType; 
  43.  
  44. public function setZoomLevel($value) { 
  45. $this->zoomLevel = $value; 
  46.  
  47. public function getZoomLevel() { 
  48. return $this->zoomLevel; 
  49. public function setLanguage($value) { 
  50. $this->language = $value; 
  51.  
  52. public function getLanguage() { 
  53. return $this->language; 
  54.  
  55. public function setAddLink($value) { 
  56. $this->addLink = $value; 
  57.  
  58. public function getAddLink() { 
  59. return $this->addLink; 
  60.  
  61. public function setLinkLabel($value) { 
  62. $this->linkLabel = $value; 
  63.  
  64. public function getLinkLabel() { 
  65. return $this->linkLabel; 
  66.  
  67. public function setLinkFull($value) { 
  68. $this->linkFull = $value; 
  69.  
  70. public function getLinkFull() { 
  71. return $this->linkFull; 
  72.  
  73. public function setShowInfo($value) { 
  74. $this->showInfo = $value; 
  75.  
  76. public function getShowInfo() { 
  77. return $this->showInfo ; 
  78.  
  79. public function setHeight($value) { 
  80. $this->height = $value; 
  81.  
  82. public function getHeight() { 
  83. return $this->height; 
  84.  
  85. public function setWidth($value) { 
  86. $this->width = $value; 
  87.  
  88. public function getWidth() { 
  89. return $this->width; 
  90.  
  91. public function setBorder($value) { 
  92. $this->border = $value; 
  93.  
  94. public function getBorder() { 
  95. return $this->border; 
  96.  
  97. public function setBorderStyle($value) { 
  98. $this->borderStyle = $value; 
  99.  
  100. public function getBorderStyle() { 
  101. return $this->borderStyle; 
  102.  
  103.  
  104. public function setBorderColor($value) { 
  105. $this->borderColor = $value; 
  106.  
  107. public function getBorderColor() { 
  108. return $this->borderColor; 
  109.  
  110. public function setHttps($value) { 
  111. $this->https = $value; 
  112.  
  113. public function getHttps() { 
  114. return $this->https; 
  115.  
  116. public function setInfoLabel($value) { 
  117. $this->infoLabel = $value; 
  118.  
  119. public function getInfoLabel() { 
  120. return $this->infoLabel; 
  121.  
  122. public function setIsGoogleMapsEngine($value) { 
  123. $this->isGoogleMapsEngine = $value; 
  124.  
  125. public function isGoogleMapsEngine() { 
  126. if(preg_match('/^http(s|):\/\/mapsengine\.google\.com/i', $this->address)) { 
  127. return 1; 
  128. return 0; 
  129.  
  130. public function isLink() { 
  131. if(preg_match('/^http(s|):\/\//i', $this->address)) { 
  132. return 1; 
  133. return 0;