Exemplo n.º 1
0
 public static function error_handling($handling = PHR_ERROR_TEXT)
 {
     switch ($handling) {
         case PHR_ERROR_NONE:
             self::$exceptions = false;
             break;
         case PHR_ERROR_TEXT:
             self::$exceptions = true;
             self::$html_exceptions = false;
             break;
         case PHR_ERROR_HTML:
             self::$exceptions = true;
             self::$html_exceptions = true;
             break;
         default:
             self::throw_error('Error handling type given is unrecognized', E_USER_WARNING);
             break;
     }
 }