aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Page
diff options
context:
space:
mode:
Diffstat (limited to 'core/namespace/Page')
-rw-r--r--core/namespace/Page/Entity.php13
-rw-r--r--core/namespace/Page/Repository.php17
2 files changed, 0 insertions, 30 deletions
diff --git a/core/namespace/Page/Entity.php b/core/namespace/Page/Entity.php
deleted file mode 100644
index 6ca5979..0000000
--- a/core/namespace/Page/Entity.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-namespace Page;
-
-class Entity extends \Entity {
- protected $id = FALSE;
- protected $user = FALSE;
- protected $slug = FALSE;
- protected $name = FALSE;
- protected $body = FALSE;
- protected $argv = FALSE;
- protected $time_insert = FALSE;
- protected $time_update = FALSE;
-}
diff --git a/core/namespace/Page/Repository.php b/core/namespace/Page/Repository.php
deleted file mode 100644
index b76ef85..0000000
--- a/core/namespace/Page/Repository.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-namespace Page;
-
-class Repository extends \Repository {
- public static function getTableName(): string { return 'page'; }
- public static function getClassName(): string { return 'Page\Entity'; }
-
- public function getCountByUser(\User\Entity $User): int {
- $query = 'SELECT COUNT(id) FROM %s WHERE user = ?';
- $query = sprintf($query, static::getTableName());
-
- $Statement = $this->Database->prepare($query);
- $Statement->execute([$User->getID()]);
-
- return $Statement->fetchColumn();
- }
-}