------------------ ### Features * Advanced Employee Management Module is now included in IceHrm Open Source Edition * LDAP Module which was only available in IceHrm Enterprise is now included in open source also * Initial implementation of icehrm REST Api for reading employee details * Improvements to data filtering * Multiple tabs for settings module * Overtime reports - now its possible to calculate overtime for employees.compatible with US overtime rules * Logout the user if tried accessing an unauthorized module * Setting for updating module names ### Fixes * Fix issue: classes should be loaded even the module is disabled * Deleting the only Admin user is not allowed * Fixes for handling non UTF-8 * Fix for non-mandatory select boxes are shown as mandatory
80 lines
1.5 KiB
PHP
80 lines
1.5 KiB
PHP
<?php
|
|
class ICEHRM_Record extends ADOdb_Active_Record{
|
|
|
|
public function getAdminAccess(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getOtherAccess(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getManagerAccess(){
|
|
return array("get","element");
|
|
}
|
|
|
|
public function getUserAccess(){
|
|
return array("get","element");
|
|
}
|
|
|
|
public function getEmployeeAccess(){
|
|
return $this->getUserAccess();
|
|
}
|
|
|
|
public function getAnonymousAccess(){
|
|
return array();
|
|
}
|
|
|
|
public function getUserOnlyMeAccess(){
|
|
return array("get","element");
|
|
}
|
|
|
|
public function getUserOnlyMeAccessField(){
|
|
return "employee";
|
|
}
|
|
|
|
public function getUserOnlyMeAccessRequestField(){
|
|
return "employee";
|
|
}
|
|
|
|
public function validateSave($obj){
|
|
return new IceResponse(IceResponse::SUCCESS,"");
|
|
}
|
|
|
|
public function executePreSaveActions($obj){
|
|
return new IceResponse(IceResponse::SUCCESS,$obj);
|
|
}
|
|
|
|
public function executePreUpdateActions($obj){
|
|
return new IceResponse(IceResponse::SUCCESS,$obj);
|
|
}
|
|
|
|
public function executePostSaveActions($obj){
|
|
|
|
}
|
|
|
|
public function executePostUpdateActions($obj){
|
|
|
|
}
|
|
|
|
public function postProcessGetData($obj){
|
|
return $obj;
|
|
}
|
|
|
|
public function postProcessGetElement($obj){
|
|
return $obj;
|
|
}
|
|
|
|
public function getDefaultAccessLevel(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getVirtualFields(){
|
|
return array(
|
|
);
|
|
}
|
|
|
|
public function allowIndirectMapping(){
|
|
return false;
|
|
}
|
|
} |