diff options
| author | lsces <lester@lsces.co.uk> | 2015-12-08 12:48:49 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2015-12-08 12:48:49 +0000 |
| commit | b51fdc8f416f6c3c825f09c13dd6baa6bfdd59cd (patch) | |
| tree | d27a4d522ed0467882fc6bd4ae3a6082e4d69961 /lib | |
| parent | f334aa6583331ed6ec658b1624eb887ba374400a (diff) | |
| download | contact-b51fdc8f416f6c3c825f09c13dd6baa6bfdd59cd.tar.gz contact-b51fdc8f416f6c3c825f09c13dd6baa6bfdd59cd.tar.bz2 contact-b51fdc8f416f6c3c825f09c13dd6baa6bfdd59cd.zip | |
Rename constructor for compliance with PHP7
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/phpcoord-2.3.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/phpcoord-2.3.php b/lib/phpcoord-2.3.php index 46e105e..494d62d 100755 --- a/lib/phpcoord-2.3.php +++ b/lib/phpcoord-2.3.php @@ -32,7 +32,7 @@ * @param lat latitude * @param lng longitude */ - function LatLng($lat, $lng) { + function __construct($lat, $lng) { $this->lat = $lat; $this->lng = $lng; } @@ -374,7 +374,7 @@ * @param easting the easting of the reference (with 1m accuracy) * @param northing the northing of the reference (with 1m accuracy) */ - function OSRef($easting, $northing) { + function __construct($easting, $northing) { $this->easting = $easting; $this->northing = $northing; } @@ -541,7 +541,7 @@ * @param latZone * @param lngZone */ - function UTMRef($easting, $northing, $latZone, $lngZone) { + function __construct($easting, $northing, $latZone, $lngZone) { $this->easting = $easting; $this->northing = $northing; $this->latZone = $latZone; @@ -667,7 +667,7 @@ * @param maj the major axis * @param min the minor axis */ - function RefEll($maj, $min) { + function __construct($maj, $min) { $this->maj = $maj; $this->min = $min; $this->ecc = (($maj * $maj) - ($min * $min)) / ($maj * $maj); |
