cvs: pear /HTML_QuickForm/QuickForm element.php
| From: | Bertrand Mansion | Date: | Tue, 18 Jun 2002 09:43:13 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/QuickForm element.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4674@lists.php.net to get a copy of this message | ||
mansion Tue Jun 18 05:43:13 2002 EDT
Modified files:
/pear/HTML_QuickForm/QuickForm element.php
Log:
Added an accessor method for persistant freeze (useful for password fields).
Removed unused getTabs call.
Index: pear/HTML_QuickForm/QuickForm/element.php
diff -u pear/HTML_QuickForm/QuickForm/element.php:1.4 pear/HTML_QuickForm/QuickForm/element.php:1.5
--- pear/HTML_QuickForm/QuickForm/element.php:1.4 Fri Jun 14 09:14:07 2002
+++ pear/HTML_QuickForm/QuickForm/element.php Tue Jun 18 05:43:13 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: element.php,v 1.4 2002/06/14 13:14:07 mansion Exp $
+// $Id: element.php,v 1.5 2002/06/18 09:43:13 mansion Exp $
require_once('HTML/Common.php');
@@ -226,7 +226,6 @@
*/
function getFrozenHtml()
{
- $tabs = $this->_getTabs();
$value = $this->getValue();
if (!empty($value)) {
$html = $value;
@@ -255,6 +254,24 @@
{
return $this->_flagFrozen;
} // end func isFrozen
+
+ // }}}
+ // {{{ setPersistantFreeze()
+
+ /**
+ * Sets wether an element value should be kept in an hidden field
+ * when the element is frozen or not
+ *
+ * @param bool $persistant True if persistant value
+ * @since 2.0
+ * @access public
+ * @return void
+ * @throws
+ */
+ function setPersistantFreeze($persistant=false)
+ {
+ $this->_persistantFreeze = $persistant;
+ } //end func setPersistantFreeze
// }}}
// {{{ toArray()