function createUser($userEnt) { $userObj = new UserObject(); $userObj->setuserLoginName($userEnt->getProperty('USER_LOGIN_NAME')); $userObj->setUserName($userEnt->getProperty('USER_NAME')); $userObj->setUserMail($userEnt->getProperty('USER_EMAIL')); $userObj->setActive($userEnt->getProperty('USER_ACTIVE')); $userObj->setUserGroupName($userEnt->getProperty('GROUPE_NAME')); return $userObj; }