protected function setErrorLevel()
    {
        switch ($this->get('error_level', 2)) {
            case 0:
                error_reporting(0);
                break;
            case 1:
                error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
                break;
            case 2:
                error_reporting(E_ALL);
                break;
        }
    }
protected function setErrorLevel()
    {
        switch ($this->get('error_level', 2)) {
            case 0:
                error_reporting(0);
                break;
            case 1:
                error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
                break;
            case 2:
                error_reporting(E_ALL);
                break;
        }
    }
protected function setErrorLevel ( ) { switch ( $ this -> get ( 'error_level' , 2 ) ) { case 0 : error_reporting ( 0 ) ; break ; case 1 : error_reporting ( E_ERROR | E_WARNING | E_PARSE | E_NOTICE ) ; break ; case 2 : error_reporting ( E_ALL ) ; break ; } }
Set PHP error reporting level
Set PHP error reporting level