Example #1
0
 public static function getDatabase()
 {
     if (is_null(self::$me)) {
         self::$me = new Database();
     }
     return self::$me;
 }
Example #2
0
 public static function getDatabase($connect = true)
 {
     if (is_null(self::$me)) {
         self::$me = new Database($connect);
     }
     return self::$me;
 }
Example #3
0
 public static function get_instance($config = NULL, $connect = TRUE)
 {
     if (is_null(self::$me)) {
         self::$me = new Database($config, $connect);
     }
     return self::$me;
 }