[limb-svn] r6429 - 3.x/trunk/limb/calendar/src/template/tags

svn at limb-project.com svn at limb-project.com
Tue Oct 16 16:32:52 MSD 2007


Author: svk
Date: 2007-10-16 16:32:52 +0400 (Tue, 16 Oct 2007)
New Revision: 6429
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6429

Added:
   3.x/trunk/limb/calendar/src/template/tags/date3select.tag.php
Removed:
   3.x/trunk/limb/calendar/src/template/tags/date_select.tag.php
Log:
- date_select tag renamed to date3select

Added: 3.x/trunk/limb/calendar/src/template/tags/date3select.tag.php
===================================================================
--- 3.x/trunk/limb/calendar/src/template/tags/date3select.tag.php	                        (rev 0)
+++ 3.x/trunk/limb/calendar/src/template/tags/date3select.tag.php	2007-10-16 12:32:52 UTC (rev 6429)
@@ -0,0 +1,64 @@
+<?php
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
+ */
+require_once('limb/wact/src/tags/form/input.tag.php');
+require_once('limb/calendar/src/lmbDateWidget.class.php');
+
+/**
+ * @tag date3select
+ * @forbid_end_tag
+ * @req_attributes id
+ * @package calendar
+ * @version $Id: $
+*/
+class lmbDate3SelectTag extends WactInputTag
+{
+  function getRenderedTag()
+  {
+    return 'input';
+  }
+
+  function prepare()
+  {
+    $this->setAttribute('type', 'hidden');
+    parent :: prepare();
+  }
+
+  function generateAfterCloseTag($code)
+  {
+    parent :: generateAfterCloseTag($code);
+
+    if(!$lang = $this->getAttribute('lang'))
+      $lang = 'en';
+
+    $year_class = $this->getAttribute('year_class');
+    $month_class = $this->getAttribute('year_class');
+    $day_class = $this->getAttribute('year_class');
+    $show_default = $this->getBoolAttribute('show_default');
+    $min_year = $this->getAttribute('min_year');
+    $max_year = $this->getAttribute('max_year');
+
+    $widget = new lmbDateWidget($lang, $year_class, $month_class, $day_class, $show_default);
+    if ($min_year)
+    {
+      $widget -> setMinYear(intval($min_year));
+    }
+    if ($max_year)
+    {
+      $widget -> setMaxYear(intval($max_year));
+    }
+    
+
+    $code->writeHTML($widget->loadFiles() .
+                     $widget->makeFields($this->getAttribute('id') ));
+
+  }
+
+}
+
+

Deleted: 3.x/trunk/limb/calendar/src/template/tags/date_select.tag.php
===================================================================
--- 3.x/trunk/limb/calendar/src/template/tags/date_select.tag.php	2007-10-16 12:26:39 UTC (rev 6428)
+++ 3.x/trunk/limb/calendar/src/template/tags/date_select.tag.php	2007-10-16 12:32:52 UTC (rev 6429)
@@ -1,64 +0,0 @@
-<?php
-/*
- * Limb PHP Framework
- *
- * @link http://limb-project.com
- * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
- * @license    LGPL http://www.gnu.org/copyleft/lesser.html
- */
-require_once('limb/wact/src/tags/form/input.tag.php');
-require_once('limb/calendar/src/lmbDateWidget.class.php');
-
-/**
- * @tag date_select
- * @forbid_end_tag
- * @req_attributes id
- * @package calendar
- * @version $Id: $
-*/
-class lmbDateSelectTag extends WactInputTag
-{
-  function getRenderedTag()
-  {
-    return 'input';
-  }
-
-  function prepare()
-  {
-    $this->setAttribute('type', 'hidden');
-    parent :: prepare();
-  }
-
-  function generateAfterCloseTag($code)
-  {
-    parent :: generateAfterCloseTag($code);
-
-    if(!$lang = $this->getAttribute('lang'))
-      $lang = 'en';
-
-    $year_class = $this->getAttribute('year_class');
-    $month_class = $this->getAttribute('year_class');
-    $day_class = $this->getAttribute('year_class');
-    $show_default = $this->getBoolAttribute('show_default');
-    $min_year = $this->getAttribute('min_year');
-    $max_year = $this->getAttribute('max_year');
-
-    $widget = new lmbDateWidget($lang, $year_class, $month_class, $day_class, $show_default);
-    if ($min_year)
-    {
-      $widget -> setMinYear(intval($min_year));
-    }
-    if ($max_year)
-    {
-      $widget -> setMaxYear(intval($max_year));
-    }
-    
-
-    $code->writeHTML($widget->loadFiles() .
-                     $widget->makeFields($this->getAttribute('id') ));
-
-  }
-
-}
-
-



More information about the limb-svn mailing list