[Solar-svn] Revision 3126
pmjones at solarphp.com
pmjones at solarphp.com
Fri Apr 25 08:09:00 CDT 2008
Solar_Form: [ADD] Method setFilterLocaleObj(), to set the locale object for the internal filter class. Essentially a convenience method to let you change the locale without having to separately factory and inject a filter object. Thanks, Benjamin Kaineder, for the suggestion.
Modified: trunk/Solar/Form.php
===================================================================
--- trunk/Solar/Form.php 2008-04-18 23:27:24 UTC (rev 3125)
+++ trunk/Solar/Form.php 2008-04-25 13:09:00 UTC (rev 3126)
@@ -220,6 +220,8 @@
*
* @var Solar_Filter
*
+ * @see setFilterLocaleObj()
+ *
*/
protected $_filter;
@@ -414,6 +416,21 @@
/**
*
+ * Tells the internal filter what object it should use for locale
+ * translations.
+ *
+ * @param Solar_Base $obj The object to use for locale translations.
+ *
+ * @return void
+ *
+ */
+ public function setFilterLocaleObj($obj)
+ {
+ $this->_filter->setChainLocaleObj($obj);
+ }
+
+ /**
+ *
* Adds one filter to an element.
*
* @param string $name The element name.
More information about the Solar-svn
mailing list