From: Banana Date: Sun, 18 Sep 2022 17:06:37 +0000 (+0200) Subject: item creation X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=876e0e5ef7cf6da1948319a221463485e6b51e8d;p=emere.git item creation --- diff --git a/webroot/lib/item.class.php b/webroot/lib/item.class.php index 4838cbe..fc06771 100644 --- a/webroot/lib/item.class.php +++ b/webroot/lib/item.class.php @@ -24,14 +24,14 @@ class Item { * * @var mysqli */ - private $_DB; + private mysqli $_DB; /** * The data for this item * * @var array */ - private $_data; + private array $_data; /** * @param mysqli $databaseConnectionObject @@ -39,4 +39,12 @@ class Item { public function __construct(mysqli $databaseConnectionObject) { $this->_DB = $databaseConnectionObject; } -} \ No newline at end of file + + public function create(array $data): string { + $ret = ""; + + + + return $ret; + } +} diff --git a/webroot/view/_menu.php b/webroot/view/_menu.php index d356180..d491c4b 100644 --- a/webroot/view/_menu.php +++ b/webroot/view/_menu.php @@ -1,5 +1,5 @@ diff --git a/webroot/view/entry/entry.html b/webroot/view/entry/entry.html deleted file mode 100644 index ac61228..0000000 --- a/webroot/view/entry/entry.html +++ /dev/null @@ -1,61 +0,0 @@ -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
diff --git a/webroot/view/entry/entry.php b/webroot/view/entry/entry.php deleted file mode 100644 index 0cf5b3b..0000000 --- a/webroot/view/entry/entry.php +++ /dev/null @@ -1,29 +0,0 @@ - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ diff --git a/webroot/view/item/item.php b/webroot/view/item/item.php new file mode 100644 index 0000000..930332f --- /dev/null +++ b/webroot/view/item/item.php @@ -0,0 +1,31 @@ +