/[cvs]/nfo/php/libs/org.netfrag.glib/includes.php
ViewVC logotype

Contents of /nfo/php/libs/org.netfrag.glib/includes.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations)
Fri Mar 28 06:43:20 2003 UTC (21 years, 3 months ago) by joko
Branch: MAIN
Changes since 1.12: +8 -1 lines
initial commit: php_constants.php

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

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed