PHP Class erLhcoreClassDepartament

Afficher le fichier Open project: remdex/livehelperchat Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public __construct ( )

assignDepartmentsToGroup() public static méthode

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

getDepartamentCustomWorkHoursData() public static méthode

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

getDepartaments() public static méthode

public static getDepartaments ( )

getSession() public static méthode

public static getSession ( )

getWeekDays() public static méthode

public static getWeekDays ( )

sortByStatus() public static méthode

public static sortByStatus ( $departments )

validateDepartment() public static méthode

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

validateDepartmentCustomWorkHours() public static méthode

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[]
Résultat erLhcoreClassModelDepartamentCustomWorkHours[]

validateDepartmentGroup() public static méthode

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

validateDepartmentGroupDepartments() public static méthode

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