Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SMWTypesValue Class Reference
Collaboration diagram for SMWTypesValue:
Collaboration graph
[legend]

Public Member Functions

 getShortWikiText ($linker=null)
 
 getShortHTMLText ($linker=null)
 
 getLongWikiText ($linker=null)
 
 getLongHTMLText ($linker=null)
 
 getWikiValue ()
 
 getHash ()
 
 getDBkey ()
 
 isBuiltIn ()
 
 isAlias ()
 
- Public Member Functions inherited from SMWDataValue
 __construct ($typeid)
 
 setUserValue ($value, $caption=false)
 
 setDataItem (SMWDataItem $dataItem)
 
 setDataValueServiceFactory ($dataValueServiceFactory)
 
 setProperty (SMWDIProperty $property)
 
 getProperty ()
 
 setContextPage (SMWDIWikiPage $contextPage=null)
 
 getContextPage ()
 
 setOptions (Options $options=null)
 
 setOption ($key, $value)
 
 getOption ($key)
 
 isEnabledFeature ($feature)
 
 setCaption ($caption)
 
 getCaption ()
 
 getPreferredCaption ()
 
 setOutputFormat ($formatString)
 
 getOutputFormat ()
 
 addError ($error)
 
 addErrorMsg ($parameters, $type=null)
 
 clearErrors ()
 
 getQueryDescription ($value)
 
 getDataItem ()
 
 __toString ()
 
 getShortWikiText ($linked=null)
 
 getShortHTMLText ($linker=null)
 
 getLongWikiText ($linked=null)
 
 getLongHTMLText ($linker=null)
 
 getShortText ($outputformat, $linker=null)
 
 getLongText ($outputformat, $linker=null)
 
 getInfolinkText ($outputformat, $linker=null)
 
 getWikiValue ()
 
 getTypeID ()
 
 getInfolinks ()
 
 getHash ()
 
 isNumeric ()
 
 isValid ()
 
 canUse ()
 
 getExtraneousFunctionFor ($name, array $parameters=array())
 
 getErrorText ()
 
 getErrors ()
 

Static Public Member Functions

static newFromTypeId ($typeId)
 
static getTypeUriFromTypeId ($typeId)
 
- Static Public Member Functions inherited from SMWDataValue
static prepareValue (&$value, &$comparator)
 

Protected Member Functions

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

Protected Attributes

 $m_isAlias
 
 $m_realLabel
 
 $m_givenLabel
 
 $m_typeId
 
- Protected Attributes inherited from SMWDataValue
 $m_dataitem
 
 $m_property = null
 
 $m_contextPage = null
 
 $m_caption
 
 $m_typeid
 
 $m_outformat = false
 
 $dataValueServiceFactory
 

Additional Inherited Members

- 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'
 

Detailed Description

This datavalue implements special processing suitable for defining types of properties. Types behave largely like values of type SMWWikiPageValue with three main differences. First, they actively check if a value is an alias for another type, modifying the internal representation accordingly. Second, they have a modified display for emphasizing if some type is defined in SMW (built-in). Third, they use type ids for storing data (DB keys) instead of using page titles.

Author
Markus Krötzsch

Member Function Documentation

SMWTypesValue::getDBkey ( )

This class uses type ids as DB keys.

Returns
string
SMWTypesValue::getHash ( )
SMWTypesValue::getLongHTMLText (   $linker = null)
SMWTypesValue::getLongWikiText (   $linker = null)
SMWTypesValue::getShortHTMLText (   $linker = null)
SMWTypesValue::getShortWikiText (   $linker = null)
SMWTypesValue::getSpecialPageTitleText ( )
protected

Gets the title text for the types special page.

Since
1.6
Returns
string
static SMWTypesValue::getTypeUriFromTypeId (   $typeId)
static
SMWTypesValue::getWikiValue ( )
SMWTypesValue::isAlias ( )

Is this an alias for another datatype in SMW? This information is used to explain entries in Special:Types that are found since they have pages.

Returns
boolean
SMWTypesValue::isBuiltIn ( )

Is this a built-in datatype shipped with SMW (or an extension of SMW)? (Alternatively it would be a user-defined derived datatype.)

Deprecated:
As of SMW 1.6, there are no more user-defined datatypes, making this method useless. Will vanish in SMW 1.6.
SMWTypesValue::loadDataItem ( SMWDataItem  $dataItem)
protected
See also
SMWDataValue::loadDataItem()
Parameters
$dataitemSMWDataItem
Returns
boolean
static SMWTypesValue::newFromTypeId (   $typeId)
static
SMWTypesValue::parseUserValue (   $value)
protected

Member Data Documentation

SMWTypesValue::$m_givenLabel
protected
SMWTypesValue::$m_isAlias
protected
SMWTypesValue::$m_realLabel
protected
SMWTypesValue::$m_typeId
protected

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