Beispiel #1
0
 /**
  * update user profile
  *
  * @param  array $profileData
  * @return array
  */
 public function updateUserProfile($profileData)
 {
     $contact = new Addressbook_Model_Contact(array(), TRUE);
     $contact->setFromJsonInUsersTimezone($profileData);
     // NOTE: $userProfile is a contact where non readable fields are clearad out!
     $userProfile = Tinebase_UserProfile::getInstance()->update($contact);
     // NOTE: This hurts! We don't have methods to call in our frontends yet which convert
     //       a record to the json representaion :( Thus image link will be broken!
     $userProfile->setTimezone(Tinebase_Core::get(Tinebase_Core::USERTIMEZONE));
     return $userProfile->toArray();
 }