Files
thetool/application/ProducttechAttribute/ProducttechAttribute.php
2021-07-06 14:56:57 +02:00

23 lines
430 B
PHP

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