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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.11

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