WIP AddressDB + api

This commit is contained in:
Frank Schubert
2022-08-25 16:59:54 +02:00
parent 4b39d5a158
commit 36b41b4e5a
23 changed files with 1373 additions and 34 deletions

View File

@@ -41,15 +41,17 @@ class mfBaseModel {
if(defined("MFMODEL_USEFIELDPREFIX") && MFMODEL_USEFIELDPREFIX==true) {
$this->prefixfields=true;
}
if(method_exists($this, "init")) {
$this->init($_);
}
$this->data = new stdClass();
$this->data = new stdClass();
if(FRONKDB) {
$this->db=FronkDB::singleton();
}
if(method_exists($this, "init")) {
$this->init($_);
}
if(is_numeric($_)) {
$this->fetch($_);
} elseif(is_object($_)) {