Index: trunk/extensions/SemanticResultFormats/SRF_Messages.php |
— | — | @@ -53,6 +53,10 @@ |
54 | 54 | 'srf_printername_median' => 'Median of numbers', |
55 | 55 | 'srf-paramdesc-default' => 'Default value that will be displayed when there are no numerical results', |
56 | 56 | |
| 57 | + // format "time" |
| 58 | + 'srf_printername_earliest' => 'Earliest time', |
| 59 | + 'srf_printername_lateest' => 'Latest time', |
| 60 | + |
57 | 61 | // formats "timeline" and "eventline" |
58 | 62 | 'srf_printername_timeline' => 'Timeline', |
59 | 63 | 'srf_printername_eventline' => 'Eventline', |
Index: trunk/extensions/SemanticResultFormats/Time/SRF_Time.php |
— | — | @@ -1,11 +1,15 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
| 5 | + * Formats that return a time. |
| 6 | + * @since 1.8 |
5 | 7 | * |
6 | | - * @file |
| 8 | + * @file SRF_Time.php |
7 | 9 | * @ingroup SemanticResultFormats |
| 10 | + * |
8 | 11 | * @licence GNU GPL v3+ |
9 | | - * |
| 12 | + * @author nischayn22 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
10 | 14 | */ |
11 | 15 | class SRFTime extends SMWResultPrinter { |
12 | 16 | |
— | — | @@ -44,9 +48,8 @@ |
45 | 49 | } |
46 | 50 | |
47 | 51 | /** |
48 | | - * Gets a list of SortKeys for all dates. |
| 52 | + * Returns an array with sortkeys for dates pointing to their source DataItems. |
49 | 53 | * |
50 | | - * |
51 | 54 | * @param SMWQueryResult $res |
52 | 55 | * |
53 | 56 | * @return array |
— | — | @@ -80,7 +83,7 @@ |
81 | 84 | |
82 | 85 | $params['default'] = new Parameter( 'default' ); |
83 | 86 | $params['default']->setMessage( 'srf-paramdesc-default' ); |
84 | | - $params['default']->setDefault( 'default' ); |
| 87 | + $params['default']->setDefault( '' ); |
85 | 88 | |
86 | 89 | return $params; |
87 | 90 | } |