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

Public Member Functions

 __construct ($typeid=self::TYPE_ID)
 
 getShortWikiText ($linked=null)
 
 getShortHTMLText ($linker=null)
 
 getLongWikiText ($linked=null)
 
 getLongHTMLText ($linker=null)
 
 getWikiValue ()
 
 getNS ()
 
 getNSID ()
 
 getLocalName ()
 
 getTermType ()
 
 getImportReference ()
 

Public Attributes

const TYPE_ID = '__imp'
 
const IMPORT_PREFIX = 'Smw_import_'
 

Protected Member Functions

 parseUserValue ($value)
 
 loadDataItem (DataItem $dataItem)
 

Detailed Description

This datavalue implements datavalues used by special property '_IMPO' used for assigning imported vocabulary to some page of the wiki. It looks up a MediaWiki message to find out whether a user-supplied vocabulary name can be imported in the wiki, and whether its declaration is correct (to the extent that this can be checked).

Author
Fabian Howahl
Markus Krötzsch

Constructor & Destructor Documentation

SMW\DataValues\ImportValue::__construct (   $typeid = self::TYPE_ID)
Parameters
string$typeid

Member Function Documentation

SMW\DataValues\ImportValue::getImportReference ( )
Since
2.2
Returns
string
SMW\DataValues\ImportValue::getLocalName ( )
SMW\DataValues\ImportValue::getLongHTMLText (   $linker = null)
See also
DataValue::getLongHTMLText
SMW\DataValues\ImportValue::getLongWikiText (   $linked = null)
See also
DataValue::getLongWikiText
SMW\DataValues\ImportValue::getNS ( )
SMW\DataValues\ImportValue::getNSID ( )
SMW\DataValues\ImportValue::getShortHTMLText (   $linker = null)
See also
DataValue::getShortHTMLText
SMW\DataValues\ImportValue::getShortWikiText (   $linked = null)
See also
DataValue::getShortWikiText
SMW\DataValues\ImportValue::getTermType ( )
Since
2.2
Returns
string
SMW\DataValues\ImportValue::getWikiValue ( )
See also
DataValue::getWikiValue
SMW\DataValues\ImportValue::loadDataItem ( DataItem  $dataItem)
protected
See also
SMWDataValue::loadDataItem
Parameters
DataItem$dataitem
Returns
boolean
SMW\DataValues\ImportValue::parseUserValue (   $value)
protected
See also
DataValue::parseUserValue
Parameters
string$value

Member Data Documentation

const SMW\DataValues\ImportValue::IMPORT_PREFIX = 'Smw_import_'

Fixed Mediawiki import prefix

const SMW\DataValues\ImportValue::TYPE_ID = '__imp'

DV identifier


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