PHP Classes
elePHPant
Icontem

File: core/Engine.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jonathan Alexey  >  JFWork  >  core/Engine.php  >  Download  
File: core/Engine.php
Role: Class source
Content type: text/plain
Description: Class source
Class: JFWork
Tiny framework based on the MVC design pattern
Author: By
Last change:
Date: 3 years ago
Size: 434 bytes
 

Contents

Class file image Download
<?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;
    }
   
   
}

?>