r86090 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86089‎ | r86090 | r86091 >
Date:22:42, 14 April 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
adding new required method for SMW 1.6, not tested yet, as SMW is currently unstable and fails before executing this code
Modified paths:
  • /trunk/extensions/SemanticMaps/includes/SM_GeoCoordsValue.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/includes/SM_GeoCoordsValue.php
@@ -19,6 +19,24 @@
2020 protected $wikiValue;
2121
2222 /**
 23+ * @see SMWDataValue::setDataItem()
 24+ *
 25+ * @since 0.8
 26+ *
 27+ * @param $dataitem SMWDataItem
 28+ *
 29+ * @return boolean
 30+ */
 31+ public function setDataItem( SMWDataItem $dataItem ) {
 32+ if ( $dataItem->getDIType() == SMWDataItem::TYPE_GEO ) {
 33+ $this->m_dataitem = $dataItem;
 34+ return true;
 35+ } else {
 36+ return false;
 37+ }
 38+ }
 39+
 40+ /**
2341 * @see SMWDataValue::parseUserValue
2442 *
2543 * @since 0.6

Status & tagging log