Summary Files Commits Branches @commit @diff @stats
path: root / src / models / DBModel.php
diff options
context:
space:
mode:
1 files changed, 12 insertions, 0 deletions
-rw-r--r--src/models/DBModel.php12
diff --git a/src/models/DBModel.php b/src/models/DBModel.php
new file mode 100644
index 0000000..65bb725
--- /dev/null
+++ b/src/models/DBModel.php
@@ -0,0 +1,12 @@
+<?php
+include_once("DB.php");
+
+abstract class DBModel {
+ protected static $DB;
+
+ public static function __constructStatic() {
+ self::$DB = new DB();
+ }
+}
+
+DBModel::__constructStatic();