Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct ( $typeid='') | |
getProperties () | |
getValuesFromString ( $value) | |
getShortWikiText ( $linked=null) | |
getShortHTMLText ( $linker=null) | |
getLongWikiText ( $linked=null) | |
getLongHTMLText ( $linker=null) | |
getWikiValue () | |
setProperty (DIProperty $property) | |
setFieldProperties (array $properties) | |
getDataItems () | |
getPropertyDataItems () | |
Protected Member Functions | |
parseUserValue ( $value) | |
loadDataItem (DataItem $dataItem) | |
makeOutputText ( $type=0, $linker=null) | |
makeValueOutputText ( $type, SMWDataValue $dataValue, $linker) | |
Protected Attributes | |
$m_diProperties = null | |
cache for properties for the fields of this data value | |
SMWDataValue implements the handling of small sets of property-value pairs. The declaration of Records in SMW uses the order of values to encode the property that should be used, so the user only needs to enter a list of values. Internally, however, the property-value assignments are not stored with a particular order; they will only be ordered for display, following the declaration. This is why it is not supported to have Records using the same property for more than one value.
The class uses DIContainer objects to return its inner state. See the documentation for DIContainer for details on how this "pseudo" data encapsulated many property assignments. Such data is stored internally like a page with various property-value assignments. Indeed, record values can be created from DIWikiPage objects (the missing information will be fetched from the store).
Enforce limitation of maximal number of values.
Enforce uniqueness of properties in declaration.
Complete internationalisation.
SMWRecordValue::__construct | ( | $typeid = '' | ) |
string | $typeid |
SMWRecordValue::getDataItems | ( | ) |
SMWRecordValue::getProperties | ( | ) |
SMWRecordValue::getPropertyDataItems | ( | ) |
Return the array (list) of properties that the individual entries of this datatype consist of.
SMWRecordValue::getValuesFromString | ( | $value | ) |
string | $value |
|
protected |
SMWRecordValue::setFieldProperties | ( | array | $properties | ) |
DIProperty[] | $properties |
SMWRecordValue::setProperty | ( | DIProperty | $property | ) |
Make sure that the content is reset in this case.