Filestore Beta

This commit is contained in:
Spitzer_Daniel
2023-04-06 17:55:33 +02:00
parent d6e46e7644
commit 98196e32a3
5 changed files with 226 additions and 33 deletions
+4 -1
View File
@@ -4,6 +4,7 @@ class FilestoreModel
{
public $order_id;
public $file_id;
public $network_id;
public $name;
public $description;
@@ -54,11 +55,13 @@ class FilestoreModel
public static function getAll()
{
$items = [];
$db = FronkDB::singleton();
$sql = "SELECT Filestore.* FROM Filestore
$sql = "SELECT Filestore.*,Network.name network,Network.id networkid FROM Filestore
LEFT JOIN File ON (Filestore.file_id = File.id)
LEFT JOIN Network ON (Filestore.network_id = Network.id)
ORDER BY name";
$res = $db->query($sql);
if ($db->num_rows($res)) {