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

Public Member Functions

 __construct ( $typeid='')
 
 getShortWikiText ( $linker=null)
 
 getShortHTMLText ( $linker=null)
 
 getLongWikiText ( $linker=null)
 
 getLongHTMLText ( $linker=null)
 
 getWikiValue ()
 

Static Public Member Functions

static newFromTypeId ( $typeId)
 
static getTypeUriFromTypeId ( $typeId)
 

Public Attributes

const TYPE_ID = '__typ'
 

Protected Member Functions

 parseUserValue ( $value)
 
 loadDataItem (DataItem $dataItem)
 

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.

GNU GPL v2+

Since
3.0
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\DataValues\TypesValue::__construct (   $typeid = '')
Parameters
string$typeid

Member Function Documentation

◆ getLongHTMLText()

SMW\DataValues\TypesValue::getLongHTMLText (   $linker = null)
See also
DataValue::getLongHTMLText

◆ getLongWikiText()

SMW\DataValues\TypesValue::getLongWikiText (   $linker = null)
See also
DataValue::getLongWikiText

◆ getShortHTMLText()

SMW\DataValues\TypesValue::getShortHTMLText (   $linker = null)
See also
DataValue::getShortHTMLText

◆ getShortWikiText()

SMW\DataValues\TypesValue::getShortWikiText (   $linker = null)
See also
DataValue::getShortWikiText

◆ getTypeUriFromTypeId()

static SMW\DataValues\TypesValue::getTypeUriFromTypeId (   $typeId)
static
Since
1.6
Parameters
string$typeId
Returns
DIUri

◆ getWikiValue()

SMW\DataValues\TypesValue::getWikiValue ( )
See also
DataValue::getWikiValue

◆ loadDataItem()

SMW\DataValues\TypesValue::loadDataItem ( DataItem  $dataItem)
protected
See also
DataValue::loadDataItem

◆ newFromTypeId()

static SMW\DataValues\TypesValue::newFromTypeId (   $typeId)
static
Since
1.6
Parameters
string$typeId
Returns
TypesValue

◆ parseUserValue()

SMW\DataValues\TypesValue::parseUserValue (   $value)
protected
See also
DataValue::loadDataItem

Member Data Documentation

◆ TYPE_ID

const SMW\DataValues\TypesValue::TYPE_ID = '__typ'

DV identifier


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

About | General disclaimer | Privacy policy