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

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