Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | List of all members
Maps\SemanticMW\DataValues\CoordinateValue Class Reference
Inheritance diagram for Maps\SemanticMW\DataValues\CoordinateValue:
Inheritance graph
[legend]
Collaboration diagram for Maps\SemanticMW\DataValues\CoordinateValue:
Collaboration graph
[legend]

Public Member Functions

 getQueryDescription ( $value)
 
 getShortHTMLText ( $linker=null)
 
 getShortWikiText ( $linked=null)
 
 getLongHTMLText ( $linker=null)
 
 getLongWikiText ( $linked=null)
 
 getWikiValue ()
 
 getDataItem ()
 
- Public Member Functions inherited from SMWDataValue
 __construct ( $typeid)
 
 getTypeID ()
 
 setUserValue ( $value, $caption=false)
 
 setDataItem (SMWDataItem $dataItem)
 
 setDataValueServiceFactory (DataValueServiceFactory $dataValueServiceFactory)
 
 setProperty (DIProperty $property)
 
 getProperty ()
 
 setContextPage (SMWDIWikiPage $contextPage=null)
 
 getContextPage ()
 
 setCaption ( $caption)
 
 getCaption ()
 
 getPreferredCaption ()
 
 setOutputFormat ( $formatString)
 
 getOutputFormat ()
 
 addError ( $error)
 
 addErrorMsg ( $error, $type=Message::TEXT)
 
 getErrorText ()
 
 getErrors ()
 
 getErrorsByType ( $type=null)
 
 getRestrictionError ()
 
 clearErrors ()
 
 getQueryDescription ( $value)
 
 getDataItem ()
 
 __toString ()
 
 getShortWikiText ( $linker=null)
 
 getShortHTMLText ( $linker=null)
 
 getLongWikiText ( $linker=null)
 
 getLongHTMLText ( $linker=null)
 
 getWikiValue ()
 
 getShortText ( $outputFormat, $linker=null)
 
 getLongText ( $outputFormat, $linker=null)
 
 getInfolinkText ( $outputFormat, $linker=null)
 
 getInfolinks ()
 
 getHash ()
 
 isNumeric ()
 
 isValid ()
 
 canUse ()
 
 isRestricted ()
 
 addCallable ( $key, callable $callable)
 
 hasCallable ( $key)
 
 getCallable ( $key)
 
 clearCallable ( $key)
 
 copyOptions (Options $options=null)
 
 setOption ( $key, $value)
 
 getOption ( $key, $default=false)
 
 hasFeature ( $feature)
 
 isEnabledFeature ( $feature)
 
 checkConstraints ()
 

Protected Member Functions

 parseUserValue ( $value)
 
 loadDataItem (SMWDataItem $dataItem)
 
 getServiceLinkParams ()
 
- Protected Member Functions inherited from SMWDataValue
 getOptions ()
 
 parseUserValue ( $value)
 
 loadDataItem (SMWDataItem $dataItem)
 
 getServiceLinkParams ()
 
 checkAllowedValues ()
 

Additional Inherited Members

- Static Public Member Functions inherited from SMWDataValue
static prepareValue (&$value, &$comparator)
 
- Public Attributes inherited from SMWDataValue
const OPT_USER_LANGUAGE = 'user.language'
 
const OPT_CONTENT_LANGUAGE = 'content.language'
 
const OPT_QUERY_CONTEXT = 'query.context'
 
const OPT_QUERY_COMP_CONTEXT = 'query.comparator.context'
 
const OPT_DISABLE_INFOLINKS = 'disable.infolinks'
 
const OPT_DISABLE_SERVICELINKS = 'disable.servicelinks'
 
const OPT_COMPACT_INFOLINKS = 'compact.infolinks'
 
- Protected Attributes inherited from SMWDataValue
 $m_dataitem
 
 $m_property = null
 
 $m_contextPage = null
 
 $m_caption
 
 $m_typeid
 
 $m_outformat = false
 
 $restrictionError = false
 
 $dataValueServiceFactory
 

Member Function Documentation

◆ getDataItem()

Maps\SemanticMW\DataValues\CoordinateValue::getDataItem ( )
Returns
SMWDIGeoCoord|

◆ getLongHTMLText()

Maps\SemanticMW\DataValues\CoordinateValue::getLongHTMLText (   $linker = null)

◆ getLongWikiText()

Maps\SemanticMW\DataValues\CoordinateValue::getLongWikiText (   $linked = null)

◆ getQueryDescription()

Maps\SemanticMW\DataValues\CoordinateValue::getQueryDescription (   $value)

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

Parameters
string$value
Returns
Description
Exceptions
InvalidArgumentException

◆ getServiceLinkParams()

Maps\SemanticMW\DataValues\CoordinateValue::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.

Returns
array

◆ getShortHTMLText()

Maps\SemanticMW\DataValues\CoordinateValue::getShortHTMLText (   $linker = null)

◆ getShortWikiText()

Maps\SemanticMW\DataValues\CoordinateValue::getShortWikiText (   $linked = null)

◆ getWikiValue()

Maps\SemanticMW\DataValues\CoordinateValue::getWikiValue ( )

◆ loadDataItem()

Maps\SemanticMW\DataValues\CoordinateValue::loadDataItem ( SMWDataItem  $dataItem)
protected
See also
SMWDataValue::setDataItem
Parameters
SMWDataItem$dataItem
Returns
boolean

◆ parseUserValue()

Maps\SemanticMW\DataValues\CoordinateValue::parseUserValue (   $value)
protected

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

About | General disclaimer | Privacy policy