<?php
// Copyright (c) MetaClass, 2003-2008
// Licensed under the Academic Free License version 3.0
// ValueValidator included by PntSite
/** Objects of this class log and handle errors using php's set_error_handler function
* @see http://www.phppeanuts.org/site/index_php/Pagina/32
*
* This abstract superclass provides behavior for the concrete
* subclass StringConverter in the root classFolder or in the application classFolder.
* To keep de application developers code (including localization overrides)
* separated from the framework code override methods in the
* concrete subclass rather then modify them here.
* @see http://www.phppeanuts.org/site/index_php/Menu/178
* @package pnt
*/
class PntErrorHandler {
var $logFilePath;
var $oldHandler = null;
var $reportingLevel;
var $errorLevelMap;
var $hasHandledError = false;
var $stringConverter;
var $developmentHost = 'development';
var $emailAddress;
// var $debugInfoBacktrace = true; defaults to $this->isDevelopment() if not set
var $logBacktrace = false; //logging backtrace is not yet implemented!
/** @param String $logFilePath if null the error info is written to the php's system logger,
* @see http://www.php.net/manual/en/function.error-log.php
* You may have to call ini_set('log_errors', '1');