Beispiel #1
0
 /**
  * Sets filter options
  *
  * @param int $maxLength  [optional] defaults to 128
  * @param bool $encodeSlashes  [optional] whether slashes should be
  *                             urlencoded, default is false
  * @param bool $replaceWhitespace [optional] whether repeated whitespace
  *                                should be removed, default is true
  * @param string $wordSeparator  [optional] separator to use between words
  * @return void
  */
 public function __construct($maxLength = null, $encodeSlashes = null, $replaceWhitespace = null, $wordSeparator = null)
 {
     parent::__construct($maxLength, $replaceWhitespace);
     if (is_bool($encodeSlashes)) {
         $this->_encodeSlashes = $encodeSlashes;
     }
     if (null !== $wordSeparator) {
         $this->setWordSeparator($wordSeparator);
     }
 }