private function hentStamtreHund($hundId, $klubbId) { $hd = new HundDatabase(); $rad = $hd->hentStamtreHund($hundId, $klubbId); $tmp = new AmfHund(); if ($rad != null) { $tmp->hundId = $rad["hundId"]; $tmp->tittel = $rad["tittel"]; $tmp->navn = $rad["navn"]; $tmp->bilde = ""; $tmp->morId = $rad["hundMorId"]; $tmp->farId = $rad["hundFarId"]; $tmp->kjonn = $rad["kjonn"]; } return $tmp; }