Exemplo n.º 1
0
 public function getContactById()
 {
     $person = new PersonPDO();
     $this->nameDOB = $person->readById($this->personId);
     $address = new AddressPDO();
     $this->address = $address->readAllByPersonId($this->personId);
     $phoneNumber = new PhoneNumberPDO();
     $this->phoneNumber = $phoneNumber->readAllByPersonId($this->personId);
     $emailAddress = new EmailAddressPDO();
     $this->emailAddress = $emailAddress->readAllByPersonId($this->personId);
     $image = new ImagePDO();
     $this->avatar = $image->getAvatarImageByPersonId($this->personId);
     $this->image = $image->readAllByPersonId($this->personId);
 }