function loadOnePerson($personID) { self::openConn(); try { $personDTO = PersonDAO::loadPerson($this->con, $personID); $phoneDTO = PhoneDAO::loadPhone($this->con, $personID); $addressDTO = AddressDAO::loadAddress($this->con, $personID); $personDTO->setPhoneDTO($phoneDTO); $personDTO->setAddrDTO($addressDTO); } catch (PDOException $e) { /* guarantees db con close */ $personDTO = NULL; } self::closeConn(); return $personDTO; }