Files
thetool/application/Product/Product.php
Frank Schubert 4fae807663 Added Products
2021-07-05 16:12:28 +02:00

21 lines
409 B
PHP

<?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;
}
}
}
}