public function setHandlers()
    {
        $error = configItem('error');

        if ($error == 0)
        {
            ini_set('display_errors', 0);
            error_reporting(0);
        }
        else if ($error == 2)
        {
            error_reporting(0);
            set_error_handler(array($this, 'captureNormal'));
            set_exception_handler(array($this, 'captureException'));
            register_shutdown_function(array($this, 'captureShutdown'));

        }
        else if ($error == 1)
        {
            error_reporting(E_ALL);
            ini_set('display_errors', 1);
        }
    }