public function error($type, $message)
    {    
        $error = array(
            E_WARNING      => 'Warning',
            E_NOTICE       => 'Notice',
            E_USER_ERROR   => 'Error',
            E_USER_WARNING => 'Warning',
            E_USER_NOTICE  => 'Notice',
        );

        if (isset($error[$type])) {
            $this->error[] = $error[$type].': '.$message;
        }

        return true;
    }
public function error($type, $message)
    {    
        $error = array(
            E_WARNING      => 'Warning',
            E_NOTICE       => 'Notice',
            E_USER_ERROR   => 'Error',
            E_USER_WARNING => 'Warning',
            E_USER_NOTICE  => 'Notice',
        );

        if (isset($error[$type])) {
            $this->error[] = $error[$type].': '.$message;
        }

        return true;
    }
public function error ( $ type , $ message ) { $ error = array ( E_WARNING => 'Warning' , E_NOTICE => 'Notice' , E_USER_ERROR => 'Error' , E_USER_WARNING => 'Warning' , E_USER_NOTICE => 'Notice' , ) ; if ( isset ( $ error [ $ type ] ) ) { $ this -> error [ ] = $ error [ $ type ] . ': ' . $ message ; } return true ; }
Error handler for terminal options.

@param  int    $type    The error type
@param  string $message The error message
@return bool   Returns TRUE
Error handler for terminal options .