Changeset 3126

Show
Ignore:
Timestamp:
04/25/08 08:09:00 (2 months ago)
Author:
pmjones
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Solar/Form.php

    r3092 r3126  
    221221     * @var Solar_Filter 
    222222     *  
     223     * @see setFilterLocaleObj() 
     224     *  
    223225     */ 
    224226    protected $_filter; 
     
    411413        } 
    412414        // done! 
     415    } 
     416     
     417    /** 
     418     *  
     419     * Tells the internal filter what object it should use for locale 
     420     * translations. 
     421     *  
     422     * @param Solar_Base $obj The object to use for locale translations. 
     423     *  
     424     * @return void 
     425     *  
     426     */ 
     427    public function setFilterLocaleObj($obj) 
     428    { 
     429        $this->_filter->setChainLocaleObj($obj); 
    413430    } 
    414431