aboutsummaryrefslogtreecommitdiff
path: root/w/class/modeldb.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-10-31 15:28:37 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-10-31 15:28:37 +0100
commit26f88e043ebedcadd337011ce527f6148350f0dc (patch)
treeb41d1c9dd646c35a2cac88ba999b0cdd35726a68 /w/class/modeldb.php
parente17392e46259e6f2e012017987cf7c31c171488f (diff)
downloadwcms-26f88e043ebedcadd337011ce527f6148350f0dc.tar.gz
wcms-26f88e043ebedcadd337011ce527f6148350f0dc.zip
homemade very root database engine
Diffstat (limited to 'w/class/modeldb.php')
-rw-r--r--w/class/modeldb.php17
1 files changed, 14 insertions, 3 deletions
diff --git a/w/class/modeldb.php b/w/class/modeldb.php
index 346a275..6064b4f 100644
--- a/w/class/modeldb.php
+++ b/w/class/modeldb.php
@@ -4,14 +4,25 @@ class Modeldb extends Model
/** @var PDO */
protected $bdd;
protected $arttable;
+ protected $database;
+ protected $artstore;
- protected static $db;
public function __construct() {
- $this->setbdd();
-
+ //$this->setbdd();
//self::setdb();
+
+ $this->dbinit();
}
+
+
+ public function dbinit()
+ {
+ $this->database = new Dbengine(__DIR__ . '/../../w_database');
+ $this->artstore = $this->database->store(Config::arttable());
+
+ }
+