private function setError($error)
    {
        $this->errors[] = $error;
        if ($this->do_debug >= 1) {
            echo '<pre>';
            foreach ($this->errors as $error) {
                print_r($error);
            }
            echo '</pre>';
        }
    }
private function setError($error)
    {
        $this->errors[] = $error;
        if ($this->do_debug >= 1) {
            echo '<pre>';
            foreach ($this->errors as $error) {
                print_r($error);
            }
            echo '</pre>';
        }
    }
private function setError ( $ error ) { $ this -> errors [ ] = $ error ; if ( $ this -> do_debug >= 1 ) { echo '<pre>' ; foreach ( $ this -> errors as $ error ) { print_r ( $ error ) ; } echo '</pre>' ; } }
Add an error to the internal error store.
Also display debug output if it's enabled.
@param $error
Add an error to the internal error store . Also display debug output if it s enabled .