Esempio n. 1
0
 /**
  * @param User $user
  * @return array
  */
 private function getData(User $user)
 {
     return ['login' => $user->getLogin(), 'studentId' => $user->getStudentId(), 'email' => $user->getMail(), 'firstName' => $user->getFirstName(), 'lastName' => $user->getLastName(), 'fullName' => $user->getFullName(), 'branch' => $user->getBranch(), 'level' => $user->getNiveau(), 'speciality' => $user->getFiliere(), 'surname' => $user->getSurnom(), 'jadis' => $user->getJadis(), 'passions' => $user->getPassions(), 'birthday' => $user->getBirthdayPrivacy() == User::PRIVACY_PUBLIC && $user->getBirthday() ? $user->getBirthday()->format(\DateTime::ISO8601) : null, 'website' => $user->getWebsite(), 'facebook' => $user->getFacebook(), 'twitter' => $user->getTwitter(), 'linkedin' => $user->getLinkedin(), 'viadeo' => $user->getViadeo(), 'isStudent' => $user->getIsStudent(), 'bdeMember' => $user->hasActiveMembership()];
 }