mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
68
apps/atlbiomed/lib/GMapMarker.class.php
Executable file
68
apps/atlbiomed/lib/GMapMarker.class.php
Executable file
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Represents a pinpointed location on a Google Map.
|
||||
*
|
||||
* @author Ciphent
|
||||
**/
|
||||
class GMapMarker
|
||||
{
|
||||
var $address;
|
||||
var $title;
|
||||
var $contents;
|
||||
var $imageColor;
|
||||
var $latitude;
|
||||
var $longitude;
|
||||
|
||||
public function GMapMarker($theAddress, $theLatitude, $theLongitude, $theTitle, $theContents, $theImageColor)
|
||||
{
|
||||
$this->address = $theAddress;
|
||||
|
||||
if($theLatitude != '')
|
||||
$this->latitude = $theLatitude;
|
||||
|
||||
if($theLongitude != '')
|
||||
$this->longitude = $theLongitude;
|
||||
|
||||
$this->title = $theTitle;
|
||||
$this->contents = $theContents;
|
||||
$this->imageColor = $theImageColor;
|
||||
}
|
||||
|
||||
public function hasLatLong()
|
||||
{
|
||||
return isset($this->latitude) && isset($this->longitude);
|
||||
}
|
||||
|
||||
public function getLatitude()
|
||||
{
|
||||
return $this->latitude;
|
||||
}
|
||||
|
||||
public function getLongitude()
|
||||
{
|
||||
return $this->longitude;
|
||||
}
|
||||
|
||||
public function getAddress()
|
||||
{
|
||||
return $this->address;
|
||||
}
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
public function getContent()
|
||||
{
|
||||
return $this->contents;
|
||||
}
|
||||
|
||||
public function getImageColor()
|
||||
{
|
||||
return $this->imageColor;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user