roundcubemail/program/include/rcmail_output_html.php
public function reset($all = false)
    {
        $framed = $this->framed;
        $env    = $all ? null : array_intersect_key($this->env, array('extwin'=>1, 'framed'=>1));

        parent::reset();

        // let some env variables survive
        $this->env          = $this->js_env = $env;
        $this->framed       = $framed || $this->env['framed'];
        $this->js_labels    = array();
        $this->js_commands  = array();
        $this->script_files = array();
        $this->scripts      = array();
        $this->header       = '';
        $this->footer       = '';
        $this->body         = '';

        // load defaults
        if (!$all) {
            $this->__construct();
        }
    }
public function reset($all = false)
    {
        $framed = $this->framed;
        $env    = $all ? null : array_intersect_key($this->env, array('extwin'=>1, 'framed'=>1));

        parent::reset();

        // let some env variables survive
        $this->env          = $this->js_env = $env;
        $this->framed       = $framed || $this->env['framed'];
        $this->js_labels    = array();
        $this->js_commands  = array();
        $this->script_files = array();
        $this->scripts      = array();
        $this->header       = '';
        $this->footer       = '';
        $this->body         = '';

        // load defaults
        if (!$all) {
            $this->__construct();
        }
    }
public function reset ( $ all = false ) { $ framed = $ this -> framed ; $ env = $ all ? null : array_intersect_key ( $ this -> env , array ( 'extwin' => 1 , 'framed' => 1 ) ) ; parent :: reset ( ) ; // let some env variables survive $ this -> env = $ this -> js_env = $ env ; $ this -> framed = $ framed || $ this -> env [ 'framed' ] ; $ this -> js_labels = array ( ) ; $ this -> js_commands = array ( ) ; $ this -> script_files = array ( ) ; $ this -> scripts = array ( ) ; $ this -> header = '' ; $ this -> footer = '' ; $ this -> body = '' ; // load defaults if ( ! $ all ) { $ this -> __construct ( ) ; } }
Delete all stored env variables and commands

@param bool $all Reset all env variables (including internal)
Delete all stored env variables and commands