Method | Description | |
---|---|---|
__construct ( ) | ||
assignDepartmentsToGroup ( erLhcoreClassModelDepartamentGroup $departamentGroup, $ids ) | ||
getDepartamentCustomWorkHoursData ( erLhcoreClassModelDepartamentCustomWorkHours[] $departamentCustomWorkHours = [] ) : array | Convert departament custom work hours to template data | |
getDepartaments ( ) | ||
getSession ( ) | ||
getWeekDays ( ) | ||
sortByStatus ( $departments ) | ||
validateDepartment ( erLhcoreClassModelDepartament &$department ) | ||
validateDepartmentCustomWorkHours ( erLhcoreClassModelDepartament $departament, erLhcoreClassModelDepartamentCustomWorkHours[] $departamentCustomWorkHours = [] ) : erLhcoreClassModelDepartamentCustomWorkHours[] | validate and saves/removes department custom work hours, and return result of current custom work hours | |
validateDepartmentGroup ( erLhcoreClassModelDepartamentGroup $departamentGroup ) | Validates department group submit | |
validateDepartmentGroupDepartments ( erLhcoreClassModelDepartamentGroup $departamentGroup ) | Validates department group submit |
public static assignDepartmentsToGroup ( erLhcoreClassModelDepartamentGroup $departamentGroup, $ids ) | ||
$departamentGroup | erLhcoreClassModelDepartamentGroup |
public static getDepartamentCustomWorkHoursData ( erLhcoreClassModelDepartamentCustomWorkHours[] $departamentCustomWorkHours = [] ) : array | ||
$departamentCustomWorkHours | erLhcoreClassModelDepartamentCustomWorkHours[] | |
return | array |
public static validateDepartment ( erLhcoreClassModelDepartament &$department ) | ||
$department | erLhcoreClassModelDepartament |
public static validateDepartmentCustomWorkHours ( erLhcoreClassModelDepartament $departament, erLhcoreClassModelDepartamentCustomWorkHours[] $departamentCustomWorkHours = [] ) : erLhcoreClassModelDepartamentCustomWorkHours[] | ||
$departament | erLhcoreClassModelDepartament | |
$departamentCustomWorkHours | erLhcoreClassModelDepartamentCustomWorkHours[] | |
return | erLhcoreClassModelDepartamentCustomWorkHours[] |
public static validateDepartmentGroup ( erLhcoreClassModelDepartamentGroup $departamentGroup ) | ||
$departamentGroup | erLhcoreClassModelDepartamentGroup |
public static validateDepartmentGroupDepartments ( erLhcoreClassModelDepartamentGroup $departamentGroup ) | ||
$departamentGroup | erLhcoreClassModelDepartamentGroup |