Author: dr
Date: Tue Aug 14 13:35:55 2007
New Revision: 5913

Log:
- Implemented feature #10249: Added a hint text field for
  ezcUserInputDefinitionElement. Based on a patch by Thomas Koch.

Modified:
    trunk/UserInput/ChangeLog
    trunk/UserInput/src/structs/definition_element.php

Modified: trunk/UserInput/ChangeLog
==============================================================================
--- trunk/UserInput/ChangeLog [iso-8859-1] (original)
+++ trunk/UserInput/ChangeLog [iso-8859-1] Tue Aug 14 13:35:55 2007
@@ -1,3 +1,10 @@
+1.2alpha1 - [RELEASEDATE]
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Implemented feature #10249: Added a hint text field for
+  ezcUserInputDefinitionElement. Based on a patch by Thomas Koch.
+
+
 1.1.2 - Monday 02 July 2007
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 

Modified: trunk/UserInput/src/structs/definition_element.php
==============================================================================
--- trunk/UserInput/src/structs/definition_element.php [iso-8859-1] (original)
+++ trunk/UserInput/src/structs/definition_element.php [iso-8859-1] Tue Aug 14 
13:35:55 2007
@@ -62,6 +62,14 @@
     public $flags = false;
 
     /**
+     * A short hint to be shown to the user about the constraint of an input 
element, e.g.
+     * 'between 0 and 100', 'valid email' or 'no specialchars'
+     *
+     * @var string
+     */
+    public $hint = '';
+
+    /**
      * Constructs a definition item.
      *
      * Constructs the definition item with all its options and flags.
@@ -70,13 +78,15 @@
      * @param string $filterName
      * @param mixed $options
      * @param int $flags
+     * @param string $hint
      */
-    public function __construct( $type = 
ezcInputFormDefinitionElement::OPTIONAL, $filterName = 'string', $options = 
null, $flags = null )
+    public function __construct( $type = 
ezcInputFormDefinitionElement::OPTIONAL, $filterName = 'string', $options = 
null, $flags = null, $hint = '' )
     {
         $this->type = $type;
         $this->filterName = $filterName;
         $this->options = $options;
         $this->flags = $flags;
+        $this->hint = $hint;
     }
 
     /**
@@ -95,7 +105,7 @@
      */
     public static function __set_state( array $array )
     {
-        return new ezcInputFormDefinitionElement( $array['type'], 
$array['filterName'], $array['options'], $array['flags'] );
+        return new ezcInputFormDefinitionElement( $array['type'], 
$array['filterName'], $array['options'], $array['flags'], $array['hint'] );
     }
 }
 ?>


-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to