Urlaubsplan
Lade ...
Suche ...
Keine Treffer
App::Models::HolidayModel Klassenreferenz
Klassendiagramm für App::Models::HolidayModel:
Zusammengehörigkeiten von App::Models::HolidayModel:

Öffentliche Methoden

 loadHolidays (int $year)
 
 getHolidays ()
 
 getUsedLeaveDays (int $userId, int $year)
 
 getSickDays (int $userId, int $year)
 
 getApprovedLeaveRequests (int $userId, int $year)
 
 getRejectedLeaveRequests (int $userId, int $year)
 
 getPendingLeaveRequests (int $userId)
 
 getNextApprovedLeaveRangeWithDays (int $userId)
 
 addHolidayRequest ($data)
 
 getHolidayRequestsWithDetails ()
 
 getHolidayRequestsByDepartment ($departmentId)
 

Geschützte Attribute

 $table = 'holidays'
 
 $primaryKey = 'id'
 
 $allowedFields = ['user_id', 'start_date', 'end_date', 'type', 'status']
 

Private Methoden

 calculateWorkingDays (string $startDate, string $endDate)
 

Private Attribute

 $holidays = []
 

Dokumentation der Elementfunktionen

◆ addHolidayRequest()

App::Models::HolidayModel::addHolidayRequest ( $data)

◆ calculateWorkingDays()

App::Models::HolidayModel::calculateWorkingDays ( string $startDate,
string $endDate )
private

Berechnet die Arbeitstage zwischen zwei Daten unter Berücksichtigung von Wochenenden und Feiertagen.

Parameter
string$startDate
string$endDate
Rückgabe
int

◆ getApprovedLeaveRequests()

App::Models::HolidayModel::getApprovedLeaveRequests ( int $userId,
int $year )

Gibt genehmigte Urlaubsanträge eines Benutzers im Jahr zurück.

Parameter
int$userId
int$year
Rückgabe
array

◆ getHolidayRequestsByDepartment()

App::Models::HolidayModel::getHolidayRequestsByDepartment ( $departmentId)

◆ getHolidayRequestsWithDetails()

App::Models::HolidayModel::getHolidayRequestsWithDetails ( )

◆ getHolidays()

App::Models::HolidayModel::getHolidays ( )

Gibt die geladenen Feiertage zurück.

Rückgabe
array

◆ getNextApprovedLeaveRangeWithDays()

App::Models::HolidayModel::getNextApprovedLeaveRangeWithDays ( int $userId)

◆ getPendingLeaveRequests()

App::Models::HolidayModel::getPendingLeaveRequests ( int $userId)

Gibt ausstehende Urlaubsanträge eines Benutzers zurück.

Parameter
int$userId
Rückgabe
array

◆ getRejectedLeaveRequests()

App::Models::HolidayModel::getRejectedLeaveRequests ( int $userId,
int $year )

Gibt abgelehnte Urlaubsanträge eines Benutzers im Jahr zurück.

Parameter
int$userId
int$year
Rückgabe
array

◆ getSickDays()

App::Models::HolidayModel::getSickDays ( int $userId,
int $year )

Berechnet die Krankentage eines Benutzers im Jahr.

Parameter
int$userId
int$year
Rückgabe
int

◆ getUsedLeaveDays()

App::Models::HolidayModel::getUsedLeaveDays ( int $userId,
int $year )

Berechnet die genutzten Urlaubstage eines Benutzers im Jahr.

Parameter
int$userId
int$year
Rückgabe
int

◆ loadHolidays()

App::Models::HolidayModel::loadHolidays ( int $year)

Lädt die Feiertage eines bestimmten Jahres.

Parameter
int$year

Dokumentation der Datenelemente

◆ $allowedFields

App::Models::HolidayModel::$allowedFields = ['user_id', 'start_date', 'end_date', 'type', 'status']
protected

◆ $holidays

App::Models::HolidayModel::$holidays = []
private

◆ $primaryKey

App::Models::HolidayModel::$primaryKey = 'id'
protected

◆ $table

App::Models::HolidayModel::$table = 'holidays'
protected

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: