summaryrefslogtreecommitdiff
path: root/apps/um/lib/Singleton.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/um/lib/Singleton.class.php')
-rw-r--r--apps/um/lib/Singleton.class.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/um/lib/Singleton.class.php b/apps/um/lib/Singleton.class.php
deleted file mode 100644
index 2f8c74f..0000000
--- a/apps/um/lib/Singleton.class.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-abstract class Singleton {
- private static $instances = array();
- public static function getInstance() {
- $class = get_called_class();
- if (!isset(self::$instances[$class])) {
- self::$instances[$class] = new $class;
- }
- return self::$instances[$class];
- }
-}