Text_Highlighter_Renderer_Array::reset PHP Method

reset() public method

Descendents of Text_Highlighter call this method from the constructor, passing $options they get as parameter.
public reset ( )
    function reset()
    {
        $this->_output = array();
        $this->_lastClass = 'default';
        if (isset($this->_options['tabsize'])) {
            $this->_tabsize = $this->_options['tabsize'];
        }
        if (isset($this->_options['htmlspecialchars'])) {
            $this->_htmlspecialchars = $this->_options['htmlspecialchars'];
        }
        if (isset($this->_options['enumerated'])) {
            $this->_enumerated = $this->_options['enumerated'];
        }
    }

Usage Example

Exemplo n.º 1
0
Arquivo: XML.php Projeto: romeo14/pow
 /**
  * Resets renderer state
  *
  * Descendents of Text_Highlighter call this method from the constructor,
  * passing $options they get as parameter.
  *
  * @access protected
  */
 function reset()
 {
     parent::reset();
     if (isset($this->_options['xml_serializer'])) {
         $this->_serializer_options = $this->_options['xml_serializer'];
     }
 }
All Usage Examples Of Text_Highlighter_Renderer_Array::reset