r44259 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44258‎ | r44259 | r44260 >
Date:18:46, 5 December 2008
Author:mkroetzsch
Status:deferred
Tags:
Comment:
modified display to fix Bug 15214
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DV_NAry.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_NAry.php
@@ -165,8 +165,8 @@
166166 switch ($type) {
167167 case 0: return $this->m_values[$index]->getShortWikiText($linker);
168168 case 1: return $this->m_values[$index]->getShortHTMLText($linker);
169 - case 2: return $this->m_values[$index]->getLongWikiText($linker);
170 - case 3: return $this->m_values[$index]->getLongHTMLText($linker);
 169+ case 2: return $this->m_values[$index]->getShortWikiText($linker);
 170+ case 3: return $this->m_values[$index]->getShortHTMLText($linker);
171171 }
172172 }
173173
@@ -326,39 +326,6 @@
327327 return implode(';', $this->m_outputmodifiers);
328328 }
329329
330 - /**
331 - * Exports this n-ary relation to an appropriate RDF-structure.
332 - * The lines within the subject element.
333 - *
334 - * @param string $QName The element name of this datavalue
335 - * @param ExportRDF $exporter the exporter calling this function
336 - * @return string the lines to be exported
337 - */
338 -// public function exportToRDF( $QName, ExportRDF $exporter ) {
339 -// $rdf = "\t\t<$QName>\n";
340 -// $rdf.= "\t\t\t<swivt:Container>\n";
341 -// $count = 0;
342 -// foreach ($this->m_values as $value) {
343 -// $count++;
344 -// if ($value === NULL) {
345 -// continue;
346 -// }
347 -// if (($value->getTypeID() == '_wpg') || ($value->getTypeID() == '_uri') || ($value->getTypeID() == '_ema')) {
348 -// $element = "object" . $count;
349 -// $rdf .= "\t\t" . $value->exportToRDF( "swivt:$element", $exporter );
350 -// $exporter->addSchemaRef( $element, "owl:ObjectProperty" );
351 -// } else {
352 -// $element = "value" . $count;
353 -// $rdf .= "\t\t" . $value->exportToRDF( "swivt:$element", $exporter );
354 -// $exporter->addSchemaRef( $element, "owl:DatatypeProperty" );
355 -// }
356 -// }
357 -// $rdf .= "\t\t\t</swivt:Container>\n";
358 -// $exporter->addSchemaRef( "Container", "owl:Class" );
359 -// $rdf .= "\t\t</$QName>\n";
360 -// return $rdf;
361 -// }
362 -
363330 public function getExportData() {
364331 if (!$this->isValid()) return NULL;
365332

Status & tagging log