コード例 #1
0
ファイル: PersonDAO.php プロジェクト: sbadi/shareatrip
 public function updateProfileInfo(\PersonDTO $personDTO)
 {
     try {
         $this->userAutentication();
         $set = array(NAME => $personDTO->getName(), SURNAME => $personDTO->getSurname(), GENDER => $personDTO->getGender(), BIRTHDAY => $personDTO->getBirthday(), EDUCATION => $personDTO->getEducation(), JOB => $personDTO->getJob(), DESCRIPTION => $personDTO->getDescription(), RELATIONSHIP => $personDTO->getRelationship(), ORIENTATION => $personDTO->getOrientation());
         $where = array(PERSONID => $personDTO->getPersonId()->getUserId());
         $result = $this->getDB()->update(PERSON_TABLE, $set, $where);
         return $personDTO;
     } catch (PDOException $pdoe) {
         throw $pdoe;
     } catch (Exception $e) {
         throw $e;
     }
 }