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

Diff of /nfo/php/libs/org.netfrag.glib/Application/Core.php

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

revision 1.4 by joko, Mon Mar 3 21:11:01 2003 UTC revision 1.5 by joko, Wed Mar 5 23:16:47 2003 UTC
# Line 1  Line 1 
1  <?  <?
2    /**
3     * This file contains the Application::Core module.
4     *
5     * @author Andreas Motl <andreas.motl@ilo.de>
6     * @package org.netfrag.glib
7     * @name Application::Core
8     *
9     */
10    
11    
12  // ---------------------------------------------------------------------------  // ---------------------------------------------------------------------------
13  //  $Id$  //  $Id$
14  // ---------------------------------------------------------------------------  // ---------------------------------------------------------------------------
15  //  $Log$  //  $Log$
16    //  Revision 1.5  2003/03/05 23:16:47  joko
17    //  updated docu - phpDocumentor is very strict about its 'blocks'...
18    //
19  //  Revision 1.4  2003/03/03 21:11:01  joko  //  Revision 1.4  2003/03/03 21:11:01  joko
20  //  mungled the namespaces  //  mungled the namespaces
21  //  //
# Line 20  Line 33 
33  // ---------------------------------------------------------------------------  // ---------------------------------------------------------------------------
34    
35    
36  /*  $appConfig = mkObject('Application::Config', $init);
37    
38    ------------------------------------------------------------  $app = mkObject('Application::Core', $appConfig);
39      How to use this?  $app->run();
   ------------------------------------------------------------  
   
     require_once("../etc/defaults.php");  
     require_once("../etc/includes.php");  
       
     $init =  
       array(  
         'machine' => 'grasshopper',  
         'appname' => 'pub',  
         'resources' => array(  
           'machines' => '../etc/machines.php',  
         ),  
         'run' => array(  
           'boot' => array(  
             'scripts' => array( '../core/boot/boot.php' ),  
             //'objects' => array(),  
             'methods' => array( 'e_init', 'e_start', 'e_shutdown' ),  
           ),  
         ),  
       );  
       
     $appConfig = mkObject('Application::Config', $init);  
       
     $app = mkObject('Application::Core', $appConfig);  
     $app->run();  
40    
   ------------------------------------------------------------  
   
 */  
41    
42  loadModule('Class::Logger');  loadModule('Class::Logger');
43    
44    
45    /**
46     * This is the Application::Core module.
47     *
48     * How to use this?
49     *
50     * <code>
51     * require_once("../etc/defaults.php");
52     * require_once("../etc/includes.php");
53     *
54     * $init =
55     *   array(
56     *     'machine' => 'grasshopper',
57     *     'appname' => 'pub',
58     *     'resources' => array(
59     *       'machines' => '../etc/machines.php',
60     *     ),
61     *     'run' => array(
62     *       'boot' => array(
63     *         'scripts' => array( '../core/boot/boot.php' ),
64     *         //'objects' => array(),
65     *         'methods' => array( 'e_init', 'e_start', 'e_shutdown' ),
66     *       ),
67     *     ),
68     *   );
69     * </code>
70     *
71     *
72     * @author Andreas Motl <andreas.motl@ilo.de>
73     * @package org.netfrag.glib
74     * @subpackage Application
75     * @name Application::AbstractBase
76     *
77     */
78  class Application_Core extends Class_Logger {  class Application_Core extends Class_Logger {
79        
80    var $_config;    var $_config;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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