| 3 |
// $Id$ |
// $Id$ |
| 4 |
// --------------------------------------------------------------------------- |
// --------------------------------------------------------------------------- |
| 5 |
// $Log$ |
// $Log$ |
| 6 |
|
// Revision 1.2 2003/02/03 04:59:29 joko |
| 7 |
|
// + fixed: constructor can now get passed variable of *any type* |
| 8 |
|
// |
| 9 |
// Revision 1.1 2003/02/03 03:51:36 joko |
// Revision 1.1 2003/02/03 03:51:36 joko |
| 10 |
// + initial commit |
// + initial commit |
| 11 |
// |
// |
| 14 |
|
|
| 15 |
/* |
/* |
| 16 |
|
|
| 17 |
How to use this? |
------------------------------------------------------------ |
| 18 |
|
How to use this? |
| 19 |
|
------------------------------------------------------------ |
| 20 |
|
|
| 21 |
require_once("../etc/defaults.php"); |
require_once("../etc/defaults.php"); |
| 22 |
require_once("../etc/includes.php"); |
require_once("../etc/includes.php"); |
| 24 |
$appConfig = mkObject('Application::Config'); |
$appConfig = mkObject('Application::Config'); |
| 25 |
print "appConfig:<br/>" . Dumper($appConfig) . "<hr/>"; |
print "appConfig:<br/>" . Dumper($appConfig) . "<hr/>"; |
| 26 |
|
|
| 27 |
|
------------------------------------------------------------ |
| 28 |
|
|
| 29 |
*/ |
*/ |
| 30 |
|
|
| 31 |
class Application_Config { |
class Application_Config { |
| 32 |
function Application_Config($initCfg = array()) { |
|
| 33 |
print "Hello World!<hr/>"; |
var $_store; |
| 34 |
print "initCfg:<br/>" . Dumper($initCfg) . "<hr/>"; |
|
| 35 |
|
function Application_Config($initCfg = null) { |
| 36 |
|
//print "Hello World!<hr/>"; |
| 37 |
|
//print "initCfg:<br/>" . Dumper($initCfg) . "<hr/>"; |
| 38 |
|
$this->_store = $initCfg; |
| 39 |
} |
} |
| 40 |
} |
} |
| 41 |
|
|