[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/inc/savant2/Savant2/ -> Savant2_Error_stack.php (source)

   1  <?php
   2  
   3  /**
   4  * The base Savant2_Error class.
   5  */
   6  require_once 'Savant2/Error.php';
   7  
   8  /**
   9  * The PEAR_ErrorStack class.
  10  */
  11  require_once 'PEAR/ErrorStack.php';
  12  
  13  /**
  14  * 
  15  * Provides an interface to PEAR_ErrorStack class for Savant.
  16  *
  17  * $Id: Savant2_Error_stack.php 18360 2005-05-26 19:38:09Z mipmip $
  18  * 
  19  * @author Paul M. Jones <pmjones@ciaweb.net>
  20  * 
  21  * @package Savant2
  22  * 
  23  * @license http://www.gnu.org/copyleft/lesser.html LGPL
  24  * 
  25  * This program is free software; you can redistribute it and/or modify
  26  * it under the terms of the GNU Lesser General Public License as
  27  * published by the Free Software Foundation; either version 2.1 of the
  28  * License, or (at your option) any later version.
  29  *
  30  * This program is distributed in the hope that it will be useful, but
  31  * WITHOUT ANY WARRANTY; without even the implied warranty of
  32  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  33  * Lesser General Public License for more details.
  34  * 
  35  */
  36  
  37  class Savant2_Error_stack extends Savant2_Error {
  38      
  39      
  40      /**
  41      * 
  42      * Pushes an error onto the PEAR_ErrorStack.
  43      * 
  44      * @return void
  45      * 
  46      */
  47      
  48  	function error()
  49      {
  50          // push an error onto the stack
  51          PEAR_ErrorStack::staticPush(
  52              'Savant2',       // package name
  53              $this->code,    // error code
  54              null,           // error level
  55              $this->info,    // user info
  56              $this->text     // error message
  57          );
  58      }
  59  }
  60  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7