Added permissions to Order

This commit is contained in:
Frank Schubert
2021-08-06 16:35:38 +02:00
parent 2a4d5ac7d2
commit 4d51eb23f3
7 changed files with 231 additions and 21 deletions

View File

@@ -1,5 +1,28 @@
<?php
class ProductNetwork extends mfBaseModel {
private $product;
private $network;
public function getProperty($name) {
if($this->$name == null) {
if(!$this->id) {
return 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;
}
}