SMGeoCoordsValue Class Reference

Inherits SMWDataValue.

List of all members.

Public Member Functions

 getQueryDescription ($value)
 Overwrite SMWDataValue::getQueryDescription() to be able to process comparators between all values.
 getShortWikiText ($linked=null)
 getShortHTMLText ($linker=null)
 getLongWikiText ($linked=null)
 getLongHTMLText ($linker=null)
 getWikiValue ()
 getExportData ()

Protected Member Functions

 loadDataItem (SMWDataItem $dataItem)
 parseUserValue ($value)
 parseUserValueOrQuery ($value, $asQuery=false)
 Parses the value into the coordinates and any meta data provided, such as distance.
 getServiceLinkParams ()
 Create links to mapping services based on a wiki-editable message.

Protected Attributes

 $wikiValue


Detailed Description

Definition at line 16 of file SM_GeoCoordsValue.php.


Member Function Documentation

SMGeoCoordsValue::loadDataItem ( SMWDataItem dataItem  )  [protected]

See also:
SMWDataValue::setDataItem()
Since:
1.0
Parameters:
$dataitem SMWDataItem
Returns:
boolean

Reimplemented from SMWDataValue.

Definition at line 29 of file SM_GeoCoordsValue.php.

References $smgQPCoodDirectional, $smgQPCoodFormat, and SMWDataItem::TYPE_GEO.

SMGeoCoordsValue::parseUserValue ( value  )  [protected]

See also:
SMWDataValue::parseUserValue
Since:
0.6

Reimplemented from SMWDataValue.

Definition at line 50 of file SM_GeoCoordsValue.php.

References parseUserValueOrQuery().

SMGeoCoordsValue::getQueryDescription ( value  ) 

Overwrite SMWDataValue::getQueryDescription() to be able to process comparators between all values.

Since:
0.6
Parameters:
string $value
Returns:
SMWDescription

Reimplemented from SMWDataValue.

Definition at line 64 of file SM_GeoCoordsValue.php.

References parseUserValueOrQuery().

SMGeoCoordsValue::parseUserValueOrQuery ( value,
asQuery = false 
) [protected]

Parses the value into the coordinates and any meta data provided, such as distance.

Since:
0.6
Parameters:
$value String
$asQuery Boolean
Returns:
SMWDescription

Definition at line 78 of file SM_GeoCoordsValue.php.

References SMWDataValue::addError(), SMWDataValue::getDataItem(), SMWDataValue::isValid(), SMWDataValue::prepareValue(), and SMWDataValue::setUserValue().

Referenced by getQueryDescription(), and parseUserValue().

SMGeoCoordsValue::getShortWikiText ( linked = null  ) 

SMGeoCoordsValue::getShortHTMLText ( linker = null  ) 

See also:
SMWDataValue::getShortHTMLText
Since:
0.6

Reimplemented from SMWDataValue.

Definition at line 153 of file SM_GeoCoordsValue.php.

References getShortWikiText().

SMGeoCoordsValue::getLongWikiText ( linked = null  ) 

SMGeoCoordsValue::getLongHTMLText ( linker = null  ) 

See also:
SMWDataValue::getLongHTMLText
Since:
0.6

Reimplemented from SMWDataValue.

Definition at line 194 of file SM_GeoCoordsValue.php.

References getLongWikiText().

SMGeoCoordsValue::getWikiValue (  ) 

See also:
SMWDataValue::getWikiValue
Since:
0.6

Reimplemented from SMWDataValue.

Definition at line 203 of file SM_GeoCoordsValue.php.

SMGeoCoordsValue::getExportData (  ) 

See also:
SMWDataValue::getExportData
Since:
0.6

Definition at line 212 of file SM_GeoCoordsValue.php.

References $smgQPCoodDirectional, $smgQPCoodFormat, and SMWDataValue::isValid().

SMGeoCoordsValue::getServiceLinkParams (  )  [protected]

Create links to mapping services based on a wiki-editable message.

The parameters available to the message are:

$1: The location in non-directional float notation. $2: The location in directional DMS notation. $3: The latitude in non-directional float notation. $4 The longitude in non-directional float notation.

Since:
0.6.4
Returns:
array

Reimplemented from SMWDataValue.

Definition at line 239 of file SM_GeoCoordsValue.php.


Member Data Documentation

SMGeoCoordsValue::$wikiValue [protected]

Definition at line 18 of file SM_GeoCoordsValue.php.


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

Generated on Fri Feb 10 07:15:44 2012 for Semantic MediaWiki by  doxygen 1.5.6