Exemplo n.º 1
0
 /**
  * This method return a singleton reference to the current instance
  *
  * @return __ModelProxy A singleton reference to the current __ModelProxy
  */
 public static function &getInstance()
 {
     if (self::$_instance == null) {
         // Use "Lazy initialization"
         self::$_instance = new __ModelProxy();
     }
     return self::$_instance;
 }