diff options
Implemented DBModel for storing an instance of DB
1 files changed, 12 insertions, 0 deletions
| -rw-r--r-- | src/models/DBModel.php | 12 |
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(); |
