https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114486
Revision: 114486
Author: jeroendedauw
Date: 2012-03-26 11:58:37 +0000 (Mon, 26 Mar 2012)
Log Message:
-----------
applied modified patch by nischayn22
Modified Paths:
--------------
trunk/extensions/SemanticResultFormats/SRF_Messages.php
trunk/extensions/SemanticResultFormats/Time/SRF_Time.php
Modified: trunk/extensions/SemanticResultFormats/SRF_Messages.php
===================================================================
--- trunk/extensions/SemanticResultFormats/SRF_Messages.php 2012-03-26
11:58:08 UTC (rev 114485)
+++ trunk/extensions/SemanticResultFormats/SRF_Messages.php 2012-03-26
11:58:37 UTC (rev 114486)
@@ -53,6 +53,10 @@
'srf_printername_median' => 'Median of numbers',
'srf-paramdesc-default' => 'Default value that will be displayed when
there are no numerical results',
+ // format "time"
+ 'srf_printername_earliest' => 'Earliest time',
+ 'srf_printername_lateest' => 'Latest time',
+
// formats "timeline" and "eventline"
'srf_printername_timeline' => 'Timeline',
'srf_printername_eventline' => 'Eventline',
Modified: trunk/extensions/SemanticResultFormats/Time/SRF_Time.php
===================================================================
--- trunk/extensions/SemanticResultFormats/Time/SRF_Time.php 2012-03-26
11:58:08 UTC (rev 114485)
+++ trunk/extensions/SemanticResultFormats/Time/SRF_Time.php 2012-03-26
11:58:37 UTC (rev 114486)
@@ -1,11 +1,15 @@
<?php
/**
+ * Formats that return a time.
+ * @since 1.8
*
- * @file
+ * @file SRF_Time.php
* @ingroup SemanticResultFormats
+ *
* @licence GNU GPL v3+
- *
+ * @author nischayn22
+ * @author Jeroen De Dauw < [email protected] >
*/
class SRFTime extends SMWResultPrinter {
@@ -44,9 +48,8 @@
}
/**
- * Gets a list of SortKeys for all dates.
+ * Returns an array with sortkeys for dates pointing to their source
DataItems.
*
- *
* @param SMWQueryResult $res
*
* @return array
@@ -80,7 +83,7 @@
$params['default'] = new Parameter( 'default' );
$params['default']->setMessage( 'srf-paramdesc-default' );
- $params['default']->setDefault( 'default' );
+ $params['default']->setDefault( '' );
return $params;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs