Add latest changes from icehrm pro

This commit is contained in:
gamonoid
2018-05-21 00:23:56 +02:00
parent 9c56b8acd1
commit 861e94cf9d
1375 changed files with 175006 additions and 2662 deletions

View File

@@ -1014,6 +1014,18 @@ class BaseService
return $adminEmpId;
}
/**
* Get the Profile id attached to currently logged in user
* @method getCurrentProfileId
* @return {Integer}
*/
public function getCurrentUserProfileId()
{
$user = SessionUtils::getSessionObject('user');
$signInMappingField = SIGN_IN_ELEMENT_MAPPING_FIELD_NAME;
return $user->$signInMappingField;
}
/**
* Get User by profile id
* @method getUserFromProfileId