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