changed colors in preorder map and added more cache

This commit is contained in:
Frank Schubert
2023-03-14 16:35:23 +01:00
parent 387c4e8911
commit d7054a926f
4 changed files with 31 additions and 13 deletions

View File

@@ -28,4 +28,16 @@ class mfValuecache {
public function getCache() {
return $this->cache;
}
public function getMfObject($objectname, $id) {
$object = $this->get("mfObjectmodel-$objectname-".$id);
if(!$object) {
$object = new $objectname($id);
if($object->id) {
$this->set("mfObjectmodel-$objectname-".$id, $object);
}
}
return $object;
}
}