insert(); $this->nodes[] = $n; } function removeNode($id) {#NAMENSKONFLIKT!! $res = $this->getNode($id); if($res != null) { $res->delete_me(); $this->removeNode($res); } } function updateNode($id,$data) { $res = $this->getNode($id); if($res != null) { #MISSING: set new data # $res->update(); } } function getNode($id) { return $this->getIdx($id); } } ?>