Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SMW\DataValues\ImportValue Class Reference
Inheritance diagram for SMW\DataValues\ImportValue:
Inheritance graph
[legend]
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

◆ __construct()

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

Member Function Documentation

◆ getImportReference()

SMW\DataValues\ImportValue::getImportReference ( )
Since
2.2
Returns
string

◆ getLongHTMLText()

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

◆ getLongWikiText()

SMW\DataValues\ImportValue::getLongWikiText (   $linked = null)
See also
DataValue::getLongWikiText

◆ getShortHTMLText()

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

◆ getShortWikiText()

SMW\DataValues\ImportValue::getShortWikiText (   $linked = null)
See also
DataValue::getShortWikiText

◆ getTermType()

SMW\DataValues\ImportValue::getTermType ( )
Since
2.2
Returns
string

◆ getWikiValue()

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

◆ loadDataItem()

SMW\DataValues\ImportValue::loadDataItem ( DataItem  $dataItem)
protected
See also
SMWDataValue::loadDataItem
Parameters
DataItem$dataitem
Returns
boolean

◆ parseUserValue()

SMW\DataValues\ImportValue::parseUserValue (   $value)
protected
See also
DataValue::parseUserValue
Parameters
string$value

Member Data Documentation

◆ IMPORT_PREFIX

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

Fixed Mediawiki import prefix

◆ TYPE_ID

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

DV identifier


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

About | General disclaimer | Privacy policy