changed colors in preorder map and added more cache
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user