r49214 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49213‎ | r49214 | r49215 >
Date:15:26, 5 April 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
implemented new method for signaling query mode
Modified paths:
  • /trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/vCard/SRF_vCard.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php
@@ -43,6 +43,10 @@
4444 }
4545 }
4646
 47+ public function getQueryMode($context) {
 48+ return ($context==SMWQueryProcessor::SPECIAL_PAGE)?SMWQuery::MODE_INSTANCES:SMWQuery::MODE_NONE;
 49+ }
 50+
4751 protected function getResultText($res, $outputmode) {
4852 global $smwgIQRunningNumber, $wgSitename, $wgServer, $wgRequest;
4953 $result = '';
Index: trunk/extensions/SemanticResultFormats/vCard/SRF_vCard.php
@@ -28,6 +28,10 @@
2929 }
3030 }
3131
 32+ public function getQueryMode($context) {
 33+ return ($context==SMWQueryProcessor::SPECIAL_PAGE)?SMWQuery::MODE_INSTANCES:SMWQuery::MODE_NONE;
 34+ }
 35+
3236 protected function getResultText($res, $outputmode) {
3337 global $smwgIQRunningNumber, $wgSitename, $wgServer, $wgRequest;
3438 $result = '';

Status & tagging log