1 |
<? |
2 |
/** |
3 |
* --- boot org.netfrag.glib |
4 |
* |
5 |
* @author Andreas Motl <andreas.motl@ilo.de> |
6 |
* @package org.netfrag.glib |
7 |
* |
8 |
*/ |
9 |
|
10 |
/** |
11 |
* <b>Cvs-Log:</b> |
12 |
* |
13 |
* <pre> |
14 |
* |
15 |
* $Id: includes.php,v 1.13 2003/03/28 06:43:20 joko Exp $ |
16 |
* |
17 |
* $Log: includes.php,v $ |
18 |
* Revision 1.13 2003/03/28 06:43:20 joko |
19 |
* initial commit: php_constants.php |
20 |
* |
21 |
* Revision 1.12 2003/03/11 02:23:02 joko |
22 |
* + fixed metadata for phpDocumentor |
23 |
* |
24 |
* Revision 1.11 2003/03/11 02:14:17 joko |
25 |
* + fixed metadata for phpDocumentor |
26 |
* |
27 |
* Revision 1.10 2003/03/10 23:24:59 joko |
28 |
* + fixed metadata for phpDocumentor |
29 |
* |
30 |
* Revision 1.9 2003/03/10 23:05:24 joko |
31 |
* + fixed metadata for phpDocumentor |
32 |
* |
33 |
* Revision 1.8 2003/03/03 22:13:45 joko |
34 |
* minor update regarding includes |
35 |
* |
36 |
* Revision 1.7 2003/03/03 21:08:47 joko |
37 |
* updated |
38 |
* |
39 |
* Revision 1.6 2003/02/27 16:35:03 joko |
40 |
* + include path mungling now done via 'function add_include_path' |
41 |
* |
42 |
* Revision 1.5 2003/02/22 16:17:56 joko |
43 |
* + include path for new sister library org.netfrag.app |
44 |
* + autoloading abstract class for backend-communication |
45 |
* |
46 |
* Revision 1.4 2003/02/09 16:52:08 joko |
47 |
* + updated, new modules in this library |
48 |
* |
49 |
* Revision 1.3 2003/02/04 08:26:18 joko |
50 |
* + fixed comment |
51 |
* |
52 |
* Revision 1.2 2003/02/04 08:25:43 joko |
53 |
* + minor modification regarding configuration/resource variable hierarchy |
54 |
* |
55 |
* Revision 1.1 2003/02/03 14:39:58 joko |
56 |
* + initial commit |
57 |
* |
58 |
* </pre> |
59 |
* |
60 |
*/ |
61 |
|
62 |
|
63 |
// some constant handling extension functions for php |
64 |
require_once("php_constants.php"); |
65 |
require_once("php_errors.php"); |
66 |
|
67 |
// some extension functions for php |
68 |
global $PHP_EXTENSIONS_EXPORT; |
69 |
//$PHP_EXTENSIONS_EXPORT = array( 'loadModule', array('mkObject' => 'mkInstance') ); |
70 |
$PHP_EXTENSIONS_EXPORT = array( 'loadModule', array('mkComponent' => 'mkObject') ); |
71 |
//$PHP_EXTENSIONS_EXPORT = array( 'loadModule' ); |
72 |
|
73 |
require_once("php_extensions.php"); |
74 |
//$php->Dumper_mode = HTML; |
75 |
//exit; |
76 |
|
77 |
// tune libpath |
78 |
// FIXME: enhance! use constants here!!! |
79 |
$smarty = $config['_startup'][path][lib][smarty]; |
80 |
$pear = $config['_startup'][path][lib][pear]; |
81 |
$flib = $config['_startup'][path][lib][flib]; |
82 |
$glib = $config['_startup'][path][lib][glib]; |
83 |
$lib_app = $config['_startup'][path][lib][app]; |
84 |
php::add_libpath(array($pear, $glib, $lib_app)); |
85 |
|
86 |
|
87 |
// PEAR modules |
88 |
|
89 |
// --- logging |
90 |
require_once 'Log.php'; |
91 |
require_once 'Log/file.php'; |
92 |
|
93 |
// --- benchmarking |
94 |
require_once("Benchmark/Timer.php"); |
95 |
$timer = new Benchmark_Timer; |
96 |
$timer->start(); |
97 |
$timer->setMarker("pear libraries: including"); |
98 |
|
99 |
// date-handling and -manipulation ... 0.02 execution time for inclusion |
100 |
require_once 'Date.php'; |
101 |
// database... 0.03 execution time for inclusion |
102 |
require_once 'DB.php'; |
103 |
|
104 |
$timer->setMarker("pear libraries: ready"); |
105 |
|
106 |
|
107 |
|
108 |
// ======================================= |
109 |
// ------ glib libraries/classes/components ------ |
110 |
|
111 |
// abstract base classes - lowlevel |
112 |
|
113 |
// old ones, got refactored somehow |
114 |
//loadModule('DesignPattern::Object'); |
115 |
//loadModule('DesignPattern::Logger'); |
116 |
//loadModule('DesignPattern::Bridge'); |
117 |
//loadModule('DesignPattern::Loader'); |
118 |
|
119 |
// abstract base classes - application level |
120 |
loadModule('Application::AbstractBase'); |
121 |
loadModule('Application::AbstractRequest'); |
122 |
loadModule('Application::AbstractHandler'); |
123 |
loadModule('Application::AbstractBackend'); |
124 |
|
125 |
// concrete classes |
126 |
|
127 |
// helper: data-manipulation and -encoding |
128 |
loadModule('Data::Encode'); |
129 |
loadModule('Data::Deep'); |
130 |
|
131 |
// helper: CreditCard Validator |
132 |
loadModule('Data::Validator::CreditCard'); |
133 |
|
134 |
// core/transport: rpc-xml communication |
135 |
//loadModule('Data::Driver::Proxy'); |
136 |
//loadModule('Data::Driver::RPC::Remote'); |
137 |
|
138 |
|
139 |
// ======================================= |
140 |
// ------ flib libraries/classes ------ |
141 |
php::add_libpath($flib); |
142 |
require_once('includes.php'); |
143 |
|
144 |
|
145 |
// ------ local libs - abstract ------ |
146 |
// site |
147 |
//require_once ("$lib"."content/Site.class.php"); |
148 |
// page |
149 |
// smarty |
150 |
//define(SMARTY_DIR, $lib . 'external/smarty/'); |
151 |
define(SMARTY_DIR, $smarty); |
152 |
require_once(SMARTY_DIR . 'Smarty.class.php'); |
153 |
|
154 |
?> |