Example #1
0
 /**
  * Sets a new adapter
  *
  * @param  string|array $options (Optional) Adapter with Options
  * @return Zend_Filter_TwoWay
  */
 public function setAdapter($options = null)
 {
     parent::setAdapter($options);
     if (!$this->_adapter instanceof Zend_Filter_Encode_AbstractEncode) {
         require_once 'Zend/Filter/Exception.php';
         throw new Zend_Filter_Exception("Adapter '" . $adapter . "' does not extend from Zend_Filter_Encode_AbstractEncode");
     }
     return $this;
 }
Example #2
0
 /**
  * Sets the default namespace for this filter type
  *
  * @param string $path Default Namespace for this filter type
  * @return string
  */
 protected static function _setDefaultNamespace($path)
 {
     self::$_defaultNamespace = $path;
     return self::$_defaultNamespace;
 }