PHP Class erLhcoreClassDepartament

Show file Open project: remdex/livehelperchat Class Usage Examples

Public Methods

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

Method Details

__construct() public method

public __construct ( )

assignDepartmentsToGroup() public static method

public static assignDepartmentsToGroup ( erLhcoreClassModelDepartamentGroup $departamentGroup, $ids )
$departamentGroup erLhcoreClassModelDepartamentGroup

getDepartamentCustomWorkHoursData() public static method

Convert departament custom work hours to template data
public static getDepartamentCustomWorkHoursData ( erLhcoreClassModelDepartamentCustomWorkHours[] $departamentCustomWorkHours = [] ) : array
$departamentCustomWorkHours erLhcoreClassModelDepartamentCustomWorkHours[]
return array

getDepartaments() public static method

public static getDepartaments ( )

getSession() public static method

public static getSession ( )

getWeekDays() public static method

public static getWeekDays ( )

sortByStatus() public static method

public static sortByStatus ( $departments )

validateDepartment() public static method

public static validateDepartment ( erLhcoreClassModelDepartament &$department )
$department erLhcoreClassModelDepartament

validateDepartmentCustomWorkHours() public static method

validate and saves/removes department custom work hours, and return result of current custom work hours
public static validateDepartmentCustomWorkHours ( erLhcoreClassModelDepartament $departament, erLhcoreClassModelDepartamentCustomWorkHours[] $departamentCustomWorkHours = [] ) : erLhcoreClassModelDepartamentCustomWorkHours[]
$departament erLhcoreClassModelDepartament
$departamentCustomWorkHours erLhcoreClassModelDepartamentCustomWorkHours[]
return erLhcoreClassModelDepartamentCustomWorkHours[]

validateDepartmentGroup() public static method

Validates department group submit
public static validateDepartmentGroup ( erLhcoreClassModelDepartamentGroup $departamentGroup )
$departamentGroup erLhcoreClassModelDepartamentGroup

validateDepartmentGroupDepartments() public static method

Validates department group submit
public static validateDepartmentGroupDepartments ( erLhcoreClassModelDepartamentGroup $departamentGroup )
$departamentGroup erLhcoreClassModelDepartamentGroup