Public Member Functions | |
| __construct () | |
| Constructor. | |
| getDIType () | |
| (non-PHPdoc) | |
| getCoordinateSet () | |
| Returns the coordinate set as an array with lat and long (and alt) keys pointing to float values. | |
| getSortKey () | |
| (non-PHPdoc) | |
| getSerialization () | |
| (non-PHPdoc) | |
| getLatitude () | |
| Returns the latitude. | |
| getLongitude () | |
| Returns the longitude. | |
| getAltitude () | |
| Returns the altitude if set, null otherwise. | |
Static Public Member Functions | |
| static | doUnserialize ($serialization) |
| Create a data item from the provided serialization string and type ID. | |
Protected Attributes | |
| $latitude | |
| $longitude | |
| $altitude = null | |
Definition at line 14 of file SMW_DI_GeoCoord.php.
| SMWDIGeoCoord::__construct | ( | ) |
Constructor.
Takes a latitude and longitude, and optionally an altitude. These can be provided in 2 forms: * An associative array with lat, lon and alt keys * Lat, lon and alt arguments
The second way to provide the arguments, as well as the altitude argument, where introduced in SMW 1.7.
Definition at line 48 of file SMW_DI_GeoCoord.php.
| SMWDIGeoCoord::getDIType | ( | ) |
(non-PHPdoc)
Reimplemented from SMWDataItem.
Definition at line 83 of file SMW_DI_GeoCoord.php.
References SMWDataItem::TYPE_GEO.
| SMWDIGeoCoord::getCoordinateSet | ( | ) |
Returns the coordinate set as an array with lat and long (and alt) keys pointing to float values.
Definition at line 95 of file SMW_DI_GeoCoord.php.
Referenced by getSerialization().
| SMWDIGeoCoord::getSortKey | ( | ) |
(non-PHPdoc)
Reimplemented from SMWDataItem.
Definition at line 109 of file SMW_DI_GeoCoord.php.
| SMWDIGeoCoord::getSerialization | ( | ) |
(non-PHPdoc)
Reimplemented from SMWDataItem.
Definition at line 118 of file SMW_DI_GeoCoord.php.
References getCoordinateSet().
| static SMWDIGeoCoord::doUnserialize | ( | $ | serialization | ) | [static] |
Create a data item from the provided serialization string and type ID.
| string | $serialization |
Definition at line 134 of file SMW_DI_GeoCoord.php.
| SMWDIGeoCoord::getLatitude | ( | ) |
| SMWDIGeoCoord::getLongitude | ( | ) |
| SMWDIGeoCoord::getAltitude | ( | ) |
Returns the altitude if set, null otherwise.
Definition at line 180 of file SMW_DI_GeoCoord.php.
SMWDIGeoCoord::$latitude [protected] |
Definition at line 22 of file SMW_DI_GeoCoord.php.
SMWDIGeoCoord::$longitude [protected] |
Definition at line 30 of file SMW_DI_GeoCoord.php.
SMWDIGeoCoord::$altitude = null [protected] |
Definition at line 38 of file SMW_DI_GeoCoord.php.
1.5.6