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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by joko, Tue Feb 4 08:26:18 2003 UTC revision 1.12 by joko, Tue Mar 11 02:23:02 2003 UTC
# Line 1  Line 1 
1  <?  <?
2  // ---------------------------------------------------------------------------  /**
3  //  $Id$   * --- boot org.netfrag.glib
4  // ---------------------------------------------------------------------------   *
5  //  $Log$   * @author Andreas Motl <andreas.motl@ilo.de>
6  //  Revision 1.3  2003/02/04 08:26:18  joko   * @package org.netfrag.glib
7  //  + fixed comment   *
8  //   */
9  //  Revision 1.2  2003/02/04 08:25:43  joko  
10  //  + minor modification regarding configuration/resource variable hierarchy  /**
11  //   * <b>Cvs-Log:</b>
12  //  Revision 1.1  2003/02/03 14:39:58  joko   *
13  //  + initial commit   * <pre>
14  //   *
15  // ---------------------------------------------------------------------------   *  $Id$
16     *
17     *  $Log$
18  $smarty = $config['_startup'][path][lib][smarty];   *  Revision 1.12  2003/03/11 02:23:02  joko
19  $pear = $config['_startup'][path][lib][pear];   *  + fixed metadata for phpDocumentor
20  $flib = $config['_startup'][path][lib][flib];   *
21  $glib = $config['_startup'][path][lib][glib];   *  Revision 1.11  2003/03/11 02:14:17  joko
22     *  + fixed metadata for phpDocumentor
23     *
24  // ================== includes =================   *  Revision 1.10  2003/03/10 23:24:59  joko
25     *  + fixed metadata for phpDocumentor
26    // ------ override localized pear-libraries ------   *
27    // determine OS   *  Revision 1.9  2003/03/10 23:05:24  joko
28    $os = 'linux';   *  + fixed metadata for phpDocumentor
29    if (stristr($_SERVER["SERVER_SOFTWARE"], 'win32')) {   *
30      $os = 'windows';   *  Revision 1.8  2003/03/03 22:13:45  joko
31    }   *  minor update regarding includes
32     *
33    $path_delimiter = ':';   *  Revision 1.7  2003/03/03 21:08:47  joko
34    // change path-delimiter for win32   *  updated
35    if ($os == 'windows') { $path_delimiter = ';'; }   *
36    // build new 'include_path'-string   *  Revision 1.6  2003/02/27 16:35:03  joko
37    $path_new = join($path_delimiter, array($pear, $flib, $glib, ini_get("include_path")));   *  + include path mungling now done via 'function add_include_path'
38    ini_set("include_path", $path_new);   *
39     *  Revision 1.5  2003/02/22 16:17:56  joko
40     *  + include path for new sister library org.netfrag.app
41  // ------ pear libs ------   *  + autoloading abstract class for backend-communication
42    // benchmarking   *
43      require_once("Benchmark/Timer.php");   *  Revision 1.4  2003/02/09 16:52:08  joko
44      $timer = new Benchmark_Timer;   *  + updated, new modules in this library
45      $timer->start();   *
46      $timer->setMarker("pear libraries: including");   *  Revision 1.3  2003/02/04 08:26:18  joko
47     *  + fixed comment
48    // logging   *
49      require_once 'Log.php';   *  Revision 1.2  2003/02/04 08:25:43  joko
50      require_once 'Log/file.php';   *  + 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    // some extension functions for php
60      global $PHP_EXTENSIONS_EXPORT;
61      //$PHP_EXTENSIONS_EXPORT = array( 'loadModule', array('mkObject' => 'mkInstance') );
62      $PHP_EXTENSIONS_EXPORT = array( 'loadModule', array('mkComponent' => 'mkObject') );
63      //$PHP_EXTENSIONS_EXPORT = array( 'loadModule' );
64    
65      require_once("php_extensions.php");
66      //$php->Dumper_mode = HTML;
67      //exit;
68        
69    // tune libpath
70      $smarty = $config['_startup'][path][lib][smarty];
71      $pear = $config['_startup'][path][lib][pear];
72      $flib = $config['_startup'][path][lib][flib];
73      $glib = $config['_startup'][path][lib][glib];
74      $lib_app = $config['_startup'][path][lib][app];
75      php::add_libpath(array($pear, $glib, $lib_app));
76    
77    
78    // PEAR modules
79    
80      // --- logging
81      require_once 'Log.php';
82      require_once 'Log/file.php';
83    
84      // --- benchmarking
85      require_once("Benchmark/Timer.php");
86      $timer = new Benchmark_Timer;
87      $timer->start();
88      $timer->setMarker("pear libraries: including");
89    
90    // date-handling and -manipulation ... 0.02 execution time for inclusion    // date-handling and -manipulation ... 0.02 execution time for inclusion
91      require_once 'Date.php';      require_once 'Date.php';
92    // database... 0.03 execution time for inclusion    // database... 0.03 execution time for inclusion
93      require_once 'DB.php';      require_once 'DB.php';
   // rpc - standard  
   require_once 'XML/RPC/RPC.php';  
94    
95      $timer->setMarker("pear libraries: ready");      $timer->setMarker("pear libraries: ready");
96    
97    
98  // ------ glib libraries/classes ------  
99    // =======================================
100    // ------ glib libraries/classes/components ------
101        
102    // abstract base classes - lowlevel    // abstract base classes - lowlevel
103    require_once("DesignPattern/Object.php");  
104    loadModule('DesignPattern::Logger');      // old ones, got refactored somehow
105    loadModule('DesignPattern::Bridge');      //loadModule('DesignPattern::Object');
106    loadModule('DesignPattern::Loader');      //loadModule('DesignPattern::Logger');
107          //loadModule('DesignPattern::Bridge');
108        //loadModule('DesignPattern::Loader');
109    
110    // abstract base classes - application level    // abstract base classes - application level
111    loadModule('Application::AbstractRequest');      loadModule('Application::AbstractBase');
112    loadModule('Application::AbstractHandler');      loadModule('Application::AbstractRequest');
113        loadModule('Application::AbstractHandler');
114        loadModule('Application::AbstractBackend');
115        
116    // concrete helper classes    // concrete classes
   loadModule('Data::Encode');  
   loadModule('Data::Deep');  
117    
118        // helper: data-manipulation and -encoding
119        loadModule('Data::Encode');
120        loadModule('Data::Deep');
121    
122        // helper: CreditCard Validator
123        loadModule('Data::Validator::CreditCard');
124    
125  // ------ flib libraries/classes ------      // core/transport: rpc-xml communication
126    // error handling      //loadModule('Data::Driver::Proxy');
127     require_once("Application/ErrorHandler.php");      //loadModule('Data::Driver::RPC::Remote');
   // misc  
    require_once("utils/helper.php");  
    require_once("utils/shortcuts.php");  
    // CreditCard class (some useful functions)  
    require_once("utils/CreditCard.php");  
   // array manipulation  
    require_once("utils/Array_Manip.php");  
   
   // utf8-encodings (Internationalization)  
   // iso <-> utf8  
    //require_once("Application/i18n/TextEncode.php");  
   // language (Localization)  
    require_once("Application/l10n/LocaleText.php");  
   // site  
    require_once("Site.php");  
   // user  
    require_once("Tracker/Session.php");  
    require_once("Tracker/User.php");  
   // tablebrowser  
    require_once("$flib/Site/Widget/TableBrowser.php");  
128    
129    
130    // =======================================
131    // ------ flib libraries/classes ------
132        php::add_libpath($flib);
133        require_once('includes.php');
134    
 // ------ middleware libs ------  
   // rpc via mysql  
   //require_once ("$lib"."message/msgpd.php.inc");  
   require_once("Application/RPC/Remote.php");  
   require_once("Application/RPC/ProxyObject.php");  
135    
136  // ------ local libs - abstract ------  // ------ local libs - abstract ------
137    // site    // site
# Line 116  $glib = $config['_startup'][path][lib][g Line 141  $glib = $config['_startup'][path][lib][g
141     //define(SMARTY_DIR, $lib . 'external/smarty/');     //define(SMARTY_DIR, $lib . 'external/smarty/');
142     define(SMARTY_DIR, $smarty);     define(SMARTY_DIR, $smarty);
143     require_once(SMARTY_DIR . 'Smarty.class.php');     require_once(SMARTY_DIR . 'Smarty.class.php');
144      
145  ?>  ?>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.12

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