Added Products

This commit is contained in:
Frank Schubert
2021-07-05 16:12:28 +02:00
parent 5c99e8008e
commit 4fae807663
21 changed files with 1040 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
<?php
class Product extends mfBaseModel {
private $productgroup;
private $producttech;
public function getProperty($name) {
if($this->$name == null) {
$classname = ucfirst($name);
$idfield = $name."_id";
$this->$name = new $classname($this->$idfield);
if($this->$name->id) {
return $this->$name;
} else {
return null;
}
}
}
}