public function addUser(eCRFUser $user) { // Before adding to trial, check is logged on and renew or log them out via refreshUser method $loggedIn = $user->refreshUser(); $this->language = $user->getLanguage(); if ($loggedIn) { $this->user = $user; } return $loggedIn; }