------------------ ### 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
57 lines
1.2 KiB
PHP
57 lines
1.2 KiB
PHP
<?php
|
|
if (!class_exists('FieldnamesAdminManager')) {
|
|
class FieldnamesAdminManager extends AbstractModuleManager{
|
|
public function initializeUserClasses(){
|
|
|
|
}
|
|
|
|
public function initializeFieldMappings(){
|
|
|
|
}
|
|
|
|
public function initializeDatabaseErrorMappings(){
|
|
|
|
}
|
|
|
|
public function setupModuleClassDefinitions(){
|
|
$this->addModelClass('FieldNameMapping');
|
|
$this->addModelClass('CustomField');
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!class_exists('FieldNameMapping')) {
|
|
class FieldNameMapping extends ICEHRM_Record {
|
|
var $_table = 'FieldNameMappings';
|
|
|
|
public function getAdminAccess(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getUserAccess(){
|
|
return array();
|
|
}
|
|
|
|
public function getAnonymousAccess(){
|
|
return array("get","element");
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!class_exists('CustomField')) {
|
|
class CustomField extends ICEHRM_Record {
|
|
var $_table = 'CustomFields';
|
|
|
|
public function getAdminAccess(){
|
|
return array("get","element","save","delete");
|
|
}
|
|
|
|
public function getUserAccess(){
|
|
return array();
|
|
}
|
|
|
|
public function getAnonymousAccess(){
|
|
return array("get","element");
|
|
}
|
|
}
|
|
} |