diff options
Diffstat (limited to 'app/class/modeldb.php')
-rw-r--r-- | app/class/modeldb.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/app/class/modeldb.php b/app/class/modeldb.php deleted file mode 100644 index ef1d351..0000000 --- a/app/class/modeldb.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -class Modeldb extends Model -{ - protected $database; - /** @var \WFlywheel\Repository */ - protected $repo; - - - public function __construct() - { - $this->dbinit(); - } - - - public function dbinit() - { - $this->database = new \JamesMoss\Flywheel\Config(Model::DATABASE_DIR, [ - 'query_class' => "\WFlywheel\Query", - 'formatter' => new \WFlywheel\Formatter\JSON, - ]); - } - - public function storeinit(string $repo) - { - $this->repo = new \WFlywheel\Repository($repo, $this->database); - } - - public function list() - { - return $this->repo->getAllIds(); - } - - - - - -} |