Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\SQLStore\EntityStore\DataItemHandlers\DIGeoCoordinateHandler Class Reference
Inheritance diagram for SMW\SQLStore\EntityStore\DataItemHandlers\DIGeoCoordinateHandler:
Inheritance graph
[legend]
Collaboration diagram for SMW\SQLStore\EntityStore\DataItemHandlers\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)
 
 setFieldTypeFeatures ( $fieldTypeFeatures)
 
 hasFeature ( $feature)
 
 isDbType ( $dbType)
 
 getTableFields ()
 
 getFetchFields ()
 
 getTableIndexes ()
 
 getIndexHint ( $key)
 
 getWhereConds (DataItem $dataItem)
 
 getInsertValues (DataItem $dataItem)
 
 getIndexField ()
 
 getLabelField ()
 
 getSortField ()
 
 dataItemFromDBKeys ( $dbkeys)
 
 newFromDBKeys ( $dbkeys)
 

Additional Inherited Members

- Public Attributes inherited from SMW\SQLStore\EntityStore\DataItemHandler
const IHINT_PSUBJECTS = 'ihint.psubjects'
 
- Protected Attributes inherited from SMW\SQLStore\EntityStore\DataItemHandler
 $store
 
 $fieldTypeFeatures = false
 

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

◆ dataItemFromDBKeys()

SMW\SQLStore\EntityStore\DataItemHandlers\DIGeoCoordinateHandler::dataItemFromDBKeys (   $dbkeys)
Since
1.8

◆ getFetchFields()

SMW\SQLStore\EntityStore\DataItemHandlers\DIGeoCoordinateHandler::getFetchFields ( )
Since
1.8

◆ getIndexField()

SMW\SQLStore\EntityStore\DataItemHandlers\DIGeoCoordinateHandler::getIndexField ( )
Since
1.8

◆ getInsertValues()

SMW\SQLStore\EntityStore\DataItemHandlers\DIGeoCoordinateHandler::getInsertValues ( DataItem  $dataItem)
Since
1.8

◆ getLabelField()

SMW\SQLStore\EntityStore\DataItemHandlers\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

◆ getTableFields()

SMW\SQLStore\EntityStore\DataItemHandlers\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

◆ getTableIndexes()

SMW\SQLStore\EntityStore\DataItemHandlers\DIGeoCoordinateHandler::getTableIndexes ( )
Since
1.8

◆ getWhereConds()

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

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

About | General disclaimer | Privacy policy