Esempio n. 1
0
 /**
  * Get an array of user details for a contact, containing at minimum the user ID & name.
  *
  * @param int $contactID
  *
  * @return array
  *   CMS user details including
  *   - id
  *   - name (ie the system user name.
  */
 public function getUser($contactID)
 {
     $userDetails = parent::getUser($contactID);
     $user = $this->getUserObject($userDetails['id']);
     $userDetails['name'] = $user->name;
     $userDetails['email'] = $user->mail;
     return $userDetails;
 }