WIP Preorderconstruction Api

This commit is contained in:
Frank Schubert
2024-11-19 13:15:57 +01:00
parent bbde6d3bd1
commit 25f2452f02
4 changed files with 175 additions and 5 deletions
+13
View File
@@ -6,4 +6,17 @@ class ADBStatus extends mfBaseModel {
$this->db = FronkDB::singleton(ADDRESSDB_DBHOST, ADDRESSDB_DBUSER, ADDRESSDB_DBPASS, ADDRESSDB_DBNAME);
$this->table = "Status";
}
public function getApiArray() {
if(!$this->id) {
return false;
}
$a = [];
$a['code'] = (int)$this->code;
$a['text'] = $this->name;
$a['flags'] = [];
return $a;
}
}