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

Source for file error_usage.php

Documentation is available at error_usage.php

  1. <?php
  2. /**
  3.  * Test class used in other examples
  4.  * Constructors and private methods marked with _ are never exported in proxies to JavaScript
  5.  * 
  6.  * @category   HTML
  7.  * @package    AJAX
  8.  * @author     David Coallier <davidc@agoraproduction.com>
  9.  * @copyright  2005 David Coallier
  10.  * @license    LGPL http://www.gnu.org/copyleft/lesser.txt
  11.  * @version    Release: 0.5.4
  12.  * @link       http://pear.php.net/package/HTML_AJAX
  13.  */
  14. require_once 'HTML/AJAX.php';
  15.  
  16. class error_test
  17. {
  18.     function error_test()
  19.     {
  20.         $ajax =new HTML_AJAX;
  21.         $ajax->debugEnabled = true;
  22.         $ajax->debugSession = true;
  23.         set_error_handler(array(&$ajax'_errorHandler'));
  24.         trigger_error("I don't know");
  25.     }
  26. }
  27.  
  28. $t =new error_test;
  29. print_r($t);
  30.  
  31. ?>

Documentation generated on Fri, 04 Apr 2008 18:30:14 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.