From d7f3313ff4514e38c9f53439cd1a1287e56e45f7 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 11 Nov 2018 17:19:26 +0100 Subject: reboot folder --- w/class/modeldb.php | 54 ----------------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 w/class/modeldb.php (limited to 'w/class/modeldb.php') diff --git a/w/class/modeldb.php b/w/class/modeldb.php deleted file mode 100644 index a5ebf6f..0000000 --- a/w/class/modeldb.php +++ /dev/null @@ -1,54 +0,0 @@ -dbinit(); - } - - - public function dbinit() - { - $this->database = new \JamesMoss\Flywheel\Config(__DIR__ .'/../../w_database'); - $this->artstore = new \JamesMoss\Flywheel\Repository(Config::arttable(), $this->database); - } - - - public function getlister() - { - $artlist = []; - $list = $this->artstore->findAll(); - foreach ($list as $artdata) { - $artlist[$artdata->id] = new Art2($artdata); - } - return $artlist; - } - - public function list() - { - return $this->artstore->getAllIds(); - } - - public function getlisterid(array $idlist = []) - { - $artdatalist = $this->artstore->query() - ->where('__id', 'IN', $idlist) - ->execute(); - - $artlist = []; - foreach ($artdatalist as $id => $artdata) { - $artlist[$id] = new Art2($artdata); - } - return $artlist; - } - - - -} -- cgit v1.2.3