PHPExcel_Calculation
[ class tree: PHPExcel_Calculation ] [ index: PHPExcel_Calculation ] [ all elements ]

Source for file ExceptionHandler.php

Documentation is available at ExceptionHandler.php

  1. <?php
  2. /**
  3.  * PHPExcel
  4.  *
  5.  * Copyright (c) 2006 - 2009 PHPExcel
  6.  *
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Lesser General Public
  9.  * License as published by the Free Software Foundation; either
  10.  * version 2.1 of the License, or (at your option) any later version.
  11.  *
  12.  * This library is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  * Lesser General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU Lesser General Public
  18.  * License along with this library; if not, write to the Free Software
  19.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  20.  *
  21.  * @category   PHPExcel
  22.  * @package    PHPExcel_Calculation
  23.  * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
  24.  * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
  25.  * @version    1.7.0, 2009-08-10
  26.  */
  27.  
  28. /** PHPExcel root directory */
  29. if (!defined('PHPEXCEL_ROOT')) {
  30.     /**
  31.      * @ignore
  32.      */
  33.     define('PHPEXCEL_ROOT'dirname(__FILE__'/../../');
  34. }
  35.  
  36. /** PHPExcel_Calculation_Exception */
  37. require_once PHPEXCEL_ROOT 'PHPExcel/Calculation/Exception.php';
  38.  
  39. /**
  40.  * PHPExcel_Calculation_ExceptionHandler
  41.  *
  42.  * @category   PHPExcel
  43.  * @package    PHPExcel_Calculation
  44.  * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
  45.  */
  46.     /**
  47.      * Register errorhandler
  48.      */
  49.     public function __construct({
  50.         set_error_handler(array('PHPExcel_Calculation_Exception''errorHandlerCallback')E_ALL)
  51.     }
  52.     
  53.     /**
  54.      * Unregister errorhandler
  55.      */
  56.     public function __destruct({
  57.         restore_error_handler();
  58.     }
  59. }

Documentation generated on Mon, 10 Aug 2009 08:04:13 +0200 by phpDocumentor 1.4.1