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

Public Member Functions

 __construct ($typeid= '')
 
 setFieldProperties (array $properties)
 
 getProperties ()
 
 getValuesFromString ($value)
 
 getShortWikiText ($linker=null)
 
 getShortHTMLText ($linker=null)
 
 getLongWikiText ($linker=null)
 
 getLongHTMLText ($linker=null)
 
 getWikiValue ()
 
 getPropertyDataItems ()
 
 getDataItems ()
 

Public Attributes

const TYPE_ID = '_ref_rec'
 

Protected Member Functions

 parseUserValue ($value)
 
 loadDataItem (DataItem $dataItem)
 

Detailed Description

ReferenceValue allows to define additional DV to describe the state of a SourceValue in terms of provenance or referential evidence. ReferenceValue is stored as separate entity to the original subject in order to encapsulate the SourceValue from the remaining annotations with reference to a subject.

Defining which fields are required can vary and therefore is left to the user to specify such requirements using the `'Has fields' property.

For example, declaring [[Has fields::SomeValue;Date;SomeUrl;...]] on a SomeProperty property page is to define:

An annotation like [[SomeProperty::Foo;12-12-1212;http://example.org]] is expected to be a concatenated string and to be separated by ';' to indicate the next value string and will corespondent to the index of the Has fields declaration.

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

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

Member Function Documentation

SMW\DataValues\ReferenceValue::getDataItems ( )
Since
2.5
SMW\DataValues\ReferenceValue::getLongHTMLText (   $linker = null)
See also
DataValue::getLongHTMLText
Since
2.5
SMW\DataValues\ReferenceValue::getLongWikiText (   $linker = null)
See also
DataValue::getLongWikiText
Since
2.5
SMW\DataValues\ReferenceValue::getProperties ( )
Since
2.5
SMW\DataValues\ReferenceValue::getPropertyDataItems ( )
Since
2.5
SMW\DataValues\ReferenceValue::getShortHTMLText (   $linker = null)
See also
DataValue::getShortHTMLText
Since
2.5
SMW\DataValues\ReferenceValue::getShortWikiText (   $linker = null)
See also
DataValue::getShortWikiText
Since
2.5
SMW\DataValues\ReferenceValue::getValuesFromString (   $value)
Since
2.5
SMW\DataValues\ReferenceValue::getWikiValue ( )
See also
DataValue::getWikiValue
Since
2.5
SMW\DataValues\ReferenceValue::loadDataItem ( DataItem  $dataItem)
protected
See also
DataValue::loadDataItem
SMW\DataValues\ReferenceValue::parseUserValue (   $value)
protected
Note
called by DataValue::setUserValue
See also
DataValue::parseUserValue
SMW\DataValues\ReferenceValue::setFieldProperties ( array  $properties)
Since
2.5

Member Data Documentation

const SMW\DataValues\ReferenceValue::TYPE_ID = '_ref_rec'

DV identifier


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