Inherits SMWDataValue.
Public Member Functions | |
| getShortWikiText ($linked=null) | |
| Returns a short textual representation for this data value. | |
| getShortHTMLText ($linker=null) | |
| Returns a short textual representation for this data value. | |
| getLongWikiText ($linked=null) | |
| Return the long textual description of the value, as printed for example in the factbox. | |
| getLongHTMLText ($linker=null) | |
| Return the long textual description of the value, as printed for example in the factbox. | |
| getWikiValue () | |
| Return the plain wiki version of the value, or FALSE if no such version is available. | |
| getNS () | |
| getNSID () | |
| getLocalName () | |
Protected Member Functions | |
| parseUserValue ($value) | |
| Initialise the datavalue from the given value string. | |
| loadDataItem (SMWDataItem $dataItem) | |
Protected Attributes | |
| $m_qname = '' | |
| $m_uri = '' | |
| $m_namespace = '' | |
| $m_section = '' | |
| $m_name = '' | |
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).
Definition at line 18 of file SMW_DV_Import.php.
| SMWImportValue::parseUserValue | ( | $ | value | ) | [protected] |
Initialise the datavalue from the given value string.
The format of this strings might be any acceptable user input and especially includes the output of getWikiValue().
| string | $value |
Reimplemented from SMWDataValue.
Definition at line 26 of file SMW_DV_Import.php.
References SMWDataValue::addError().
| SMWImportValue::loadDataItem | ( | SMWDataItem $ | dataItem | ) | [protected] |
| $dataitem | SMWDataItem |
Reimplemented from SMWDataValue.
Definition at line 118 of file SMW_DV_Import.php.
References SMWDataValue::addError(), and SMWDataItem::TYPE_STRING.
| SMWImportValue::getShortWikiText | ( | $ | linked = null |
) |
Returns a short textual representation for this data value.
If the value was initialised from a user supplied string, then this original string should be reflected in this short version (i.e. no normalisation should normally happen). There might, however, be additional parts such as code for generating tooltips. The output is in wiki text.
The parameter $linked controls linking of values such as titles and should be non-NULL and non-false if this is desired.
Reimplemented from SMWDataValue.
Definition at line 137 of file SMW_DV_Import.php.
| SMWImportValue::getShortHTMLText | ( | $ | linker = null |
) |
Returns a short textual representation for this data value.
If the value was initialised from a user supplied string, then this original string should be reflected in this short version (i.e. no normalisation should normally happen). There might, however, be additional parts such as code for generating tooltips. The output is in HTML text.
The parameter $linker controls linking of values such as titles and should be some Linker object (or NULL for no linking).
Reimplemented from SMWDataValue.
Definition at line 141 of file SMW_DV_Import.php.
| SMWImportValue::getLongWikiText | ( | $ | linked = null |
) |
Return the long textual description of the value, as printed for example in the factbox.
If errors occurred, return the error message The result always is a wiki-source string.
The parameter $linked controls linking of values such as titles and should be non-NULL and non-false if this is desired.
Reimplemented from SMWDataValue.
Definition at line 145 of file SMW_DV_Import.php.
References SMWDataValue::getErrorText(), and SMWDataValue::isValid().
| SMWImportValue::getLongHTMLText | ( | $ | linker = null |
) |
Return the long textual description of the value, as printed for example in the factbox.
If errors occurred, return the error message The result always is an HTML string.
The parameter $linker controls linking of values such as titles and should be some Linker object (or NULL for no linking).
Reimplemented from SMWDataValue.
Definition at line 153 of file SMW_DV_Import.php.
References SMWDataValue::getErrorText(), and SMWDataValue::isValid().
| SMWImportValue::getWikiValue | ( | ) |
Return the plain wiki version of the value, or FALSE if no such version is available.
The returned string suffices to reobtain the same DataValue when passing it as an input string to setUserValue().
Reimplemented from SMWDataValue.
Definition at line 161 of file SMW_DV_Import.php.
| SMWImportValue::getNS | ( | ) |
Definition at line 165 of file SMW_DV_Import.php.
| SMWImportValue::getNSID | ( | ) |
Definition at line 169 of file SMW_DV_Import.php.
| SMWImportValue::getLocalName | ( | ) |
Definition at line 173 of file SMW_DV_Import.php.
SMWImportValue::$m_qname = '' [protected] |
Definition at line 20 of file SMW_DV_Import.php.
SMWImportValue::$m_uri = '' [protected] |
Definition at line 21 of file SMW_DV_Import.php.
SMWImportValue::$m_namespace = '' [protected] |
Definition at line 22 of file SMW_DV_Import.php.
SMWImportValue::$m_section = '' [protected] |
Definition at line 23 of file SMW_DV_Import.php.
SMWImportValue::$m_name = '' [protected] |
Definition at line 24 of file SMW_DV_Import.php.
1.5.6