Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler Class Reference
Collaboration diagram for SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler:
Collaboration graph
[legend]

Public Member Functions

 getTableFields ()
 
 getFetchFields ()
 
 getTableIndexes ()
 
 getWhereConds (DataItem $dataItem)
 
 getInsertValues (DataItem $dataItem)
 
 getIndexField ()
 
 getLabelField ()
 
 dataItemFromDBKeys ($dbkeys)
 
- Public Member Functions inherited from SMW\SQLStore\EntityStore\DataItemHandler
 __construct (SQLStore $store)
 
 getTableFields ()
 
 getFetchFields ()
 
 getTableIndexes ()
 
 getWhereConds (DataItem $dataItem)
 
 getInsertValues (DataItem $dataItem)
 
 getIndexField ()
 
 getLabelField ()
 
 dataItemFromDBKeys ($dbkeys)
 

Additional Inherited Members

- Protected Attributes inherited from SMW\SQLStore\EntityStore\DataItemHandler
 $store
 

Detailed Description

This class implements store access to DIGeoCoord data items.

Note
The table layout and behavior of this class is not coherent with the way that other DIs work. This is because of the unfortunate use of the concept table to store extra cache data, but also due to the design of concept DIs. This will be cleaned up at some point.

GNU GPL v2+

Since
1.8
Author
Nischay Nahata

Member Function Documentation

SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler::dataItemFromDBKeys (   $dbkeys)
Since
1.8
SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler::getFetchFields ( )
Since
1.8
SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler::getIndexField ( )
Since
1.8
SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler::getInsertValues ( DataItem  $dataItem)
Since
1.8
SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler::getLabelField ( )

Coordinates do not have a general string version that could be used for string search, so this method returns no label column (empty string).

Since
1.8
SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler::getTableFields ( )

Coordinates have three fields: a string version to keep the serialized value (exact), and two floating point columns for latitude and longitude (inexact, useful for bounding box selects). Altitude is not stored in an extra column since no operation uses this for anything so far.

Since
1.8
SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler::getTableIndexes ( )
Since
1.8
SMW\SQLStore\EntityStore\DIHandlers\DIGeoCoordinateHandler::getWhereConds ( DataItem  $dataItem)
Since
1.8

The documentation for this class was generated from the following file: