예제 #1
0
 private function _objectToRow(User_Model_Staffmembre $user)
 {
     $userRow['usm_id'] = $user->getId();
     $userRow['usm_firstname'] = $user->getFirstname();
     $userRow['usm_lastname'] = $user->getLastname();
     $userRow['usm_email'] = $user->getEmail();
     $userRow['usm_login'] = $user->getLogin();
     $userRow['usm_password'] = $user->getPassword();
     $userRow['ut_id'] = $user->getTeam();
     if ($user->getTeam() instanceof User_Model_Team) {
         $userRow['ut_id'] = $user->getTeam()->getId();
     }
     return $userRow;
 }