_quoteStyle = $quoteStyle; $this->_charSet = $charSet; } /** * Returns the quoteStyle option * * @return integer */ public function getQuoteStyle() { return $this->_quoteStyle; } /** * Sets the quoteStyle option * * @param integer $quoteStyle * @return Zend_Filter_HtmlEntities Provides a fluent interface */ public function setQuoteStyle($quoteStyle) { $this->_quoteStyle = $quoteStyle; return $this; } /** * Returns the charSet option * * @return string */ public function getCharSet() { return $this->_charSet; } /** * Sets the charSet option * * @param string $charSet * @return Zend_Filter_HtmlEntities Provides a fluent interface */ public function setCharSet($charSet) { $this->_charSet = $charSet; return $this; } /** * Defined by Zend_Filter_Interface * * Returns the string $value, converting characters to their corresponding HTML entity * equivalents where they exist * * @param string $value * @return string */ public function filter($value) { return htmlentities((string) $value, $this->_quoteStyle, $this->_charSet); } }