r1143 - trunk/core/Form

From: <givAT@ATshadanakar.org>
Date: Fri, 16 Dec 2005 19:07:10 +0300 (MSK)

Author: giv
Date: 2005-12-16 19:07:09 +0300 (Fri, 16 Dec 2005)
New Revision: 1143

Modified:
   trunk/core/Form/DateRangeList.class.php
Log:
* delimiter using

Modified: trunk/core/Form/DateRangeList.class.php
===================================================================
--- trunk/core/Form/DateRangeList.class.php 2005-12-16 15:52:22 UTC (rev 1142)
+++ trunk/core/Form/DateRangeList.class.php 2005-12-16 16:07:09 UTC (rev 1143)
@@ -62,17 +62,17 @@
                         return $list;
                 }
                 
- public static function printRange(DateRange $range)
+ public static function printRange(DateRange $range, $delimiter = '-')
                 {
                         $rangeString = '';
                         
                         if ($range->getStart())
- $rangeString .= $range->getStart()->toDate('.');
+ $rangeString .= $range->getStart()->toDate($delimiter);
                                 
                         $rangeString .= ' - ';
                         
                         if ($range->getEnd())
- $rangeString .= $range->getEnd()->toDate('.');
+ $rangeString .= $range->getEnd()->toDate($delimiter);
                                 
                         return $rangeString;
                 }
Received on Fri Dec 16 2005 - 19:07:10 MSK

This archive was generated by hypermail 2.2.0 : Sat Oct 27 2007 - 19:42:16 MSD