Currently, I have the following code:
?php
class overall {
var $loaded;
function load($class){
//eval(global \$$class;); // This didn't work either
$this-loaded[] = $class;
eval(\$this-$class = new $class;);
return true;
}
}
class foo {
var $bar;
// Constructor
function bar(){
(get_declared_classes());
return true;
}
}
- Original Message -
From: Tularis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 10:50 AM
Subject: [PHP] OOP - transfering object-pointer
Currently, I have the following code:
?php
class overall {
var $loaded;
function load
2 matches
Mail list logo