]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/framework/prado.php
baculum: Wizards view improvements
[bacula/bacula] / gui / baculum / framework / prado.php
1 <?php
2 /**
3  * Prado bootstrap file.
4  *
5  * This file is intended to be included in the entry script of Prado applications.
6  * It defines Prado class by extending PradoBase, a static class providing globally
7  * available functionalities that enable PRADO component model and error handling mechanism.
8  *
9  * By including this file, the PHP error and exception handlers are set as
10  * PRADO handlers, and an __autoload function is provided that automatically
11  * loads a class file if the class is not defined.
12  *
13  * @author Qiang Xue <qiang.xue@gmail.com>
14  * @link https://github.com/pradosoft/prado
15  * @copyright Copyright &copy; 2005-2016 The PRADO Group
16  * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
17  * @package System
18  */
19
20 /**
21  * Includes the PradoBase class file
22  */
23 require_once(dirname(__FILE__).'/PradoBase.php');
24
25 /**
26  * Defines Prado class if not defined.
27  */
28 if(!class_exists('Prado',false))
29 {
30         /**
31          * Prado class.
32          *
33          * @author Qiang Xue <qiang.xue@gmail.com>
34          * @package System
35          * @since 3.0
36          */
37         class Prado extends PradoBase
38         {
39         }
40 }
41
42 /**
43  * Registers the autoload function.
44  * Since Prado::autoload will report a fatal error if the class file
45  * cannot be found, if you have multiple autoloaders, Prado::autoload
46  * should be registered in the last.
47  */
48 spl_autoload_register(array('Prado','autoload'));
49
50 /**
51  * Initializes error and exception handlers
52  */
53 Prado::initErrorHandlers();
54
55 /**
56  * Includes TApplication class file
57  */
58 require_once(dirname(__FILE__).'/TApplication.php');
59
60 /**
61  * Includes TShellApplication class file
62  */
63 require_once(dirname(__FILE__).'/TShellApplication.php');
64