cache)) { return $this->cache[$key]; } return null; } public function set($key, $value) { $this->cache[$key] = $value; } 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; } }