Upgraded to latest icehrm core

This commit is contained in:
Thilina Hasantha
2015-12-13 02:56:30 +05:30
parent 8dacf2a8f1
commit ca3492e30e
56 changed files with 1525 additions and 689 deletions

View File

@@ -1103,6 +1103,30 @@ class BaseService{
$data = $customField->Find("type = ?",array($type));
return $data;
}
public function getAllAdmins(){
$user = new User();
$admins = $user->Find('user_level = ?',array('Admin'));
return $admins;
}
public function getCurrentEmployeeTimeZone(){
$cemp = $this->getCurrentProfileId();
if(empty($cemp)){
return NULL;
}
$emp = new Employee();
$emp->Load("id = ?",array($cemp));
if(empty($emp->id) || empty($emp->department)){
return NULL;
}
$dept = new CompanyStructure();
$dept->Load("id = ?",array($emp->department));
return $dept->timezone;
}
}
class IceConstants{