Attributes can be set in products now

This commit is contained in:
Frank Schubert
2021-07-06 14:56:57 +02:00
parent 002c2565eb
commit ad4ab58332
16 changed files with 893 additions and 14 deletions

View File

@@ -0,0 +1,23 @@
<?php
class ProducttechAttribute extends mfBaseModel {
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;
}
}
return $this->$name;
}
}