<?php
class Engine {
static $JF; // All class will point to here,
// To simulate a big Object
function __construct(){
self::$JF =& $this;
foreach(is_loaded() as $key => $name ){
$this->JF->$key =& load_class($name);
}
// for debug
// echo '<pre>';
// var_dump($this->JF);
// echo '</pre>';
}
public static function &get_big_object (){
return self::$JF;
}
}
?>
|