HumanResources_Frontend_Json
This class handles all Json requests for the HumanResources application
Implements:
Tinebase_Frontend_Json_Interface, Tinebase_Frontend_Interface
Extend:
Tinebase_Frontend_Json_Abstract
Methods
| Name | Description |
|---|---|
| __construct | the constructor |
| calculateAllDailyWTReports | calculate all daily working time reports |
| calculateAllMonthlyWTReports | calculate all monthly working time reports |
| clockIn | |
| clockOut | |
| clockPause | |
| createMissingAccounts | |
| deleteEmployees | deletes existing records |
| deleteFreeTimes | deletes existing records |
| deleteWorkingTime | deletes existing records |
| generateStreamReport | |
| getAccount | Return a single record |
| getAttendanceRecorderDeviceStates | |
| getEmployee | Return a single record |
| getFeastAndFreeDays | returns feast days and freedays of an employee for the freetime edit dialog |
| getFreeTime | Return a single record |
| getStream | Return a single stream |
| getWorkingTime | Return a single record |
| recalculateEmployeesWTReports | |
| saveAccount | creates/updates a record |
| saveDailyWTReport | |
| saveEmployee | creates/updates a record |
| saveFreeTime | creates/updates a record |
| saveMonthlyWTReport | |
| saveStream | creates/updates a stream |
| saveWorkingTime | creates/updates a record |
| searchAccounts | Search for records matching given arguments |
| searchEmployees | Search for records matching given arguments |
| searchFreeTimes | Search for records matching given arguments |
| searchStreams | |
| searchWorkingTimes | Search for records matching given arguments |
| wtInfo |
Inherited methods
| Name | Description |
|---|---|
| __call | magic method for json api |
| addFilterModelPlugin | Add a plugin for a former filter |
| getModelsConfiguration | returns model configurations for application starter |
| getRegistryData | Returns registry data of the application. |
| getRelatableModels | Returns all relatable models for this app |
| getTemplates | get available templates by containerId |
| getTwigInUserContext | - |
| resolveContainersAndTags | resolve containers and tags |
HumanResources_Frontend_Json::__construct
Description
public __construct (void)
the constructor
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::calculateAllDailyWTReports
Description
public calculateAllDailyWTReports (void)
calculate all daily working time reports
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::calculateAllMonthlyWTReports
Description
public calculateAllMonthlyWTReports (void)
calculate all monthly working time reports
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::clockIn
Description
clockIn (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::clockOut
Description
clockOut (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::clockPause
Description
clockPause (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::createMissingAccounts
Description
createMissingAccounts (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::deleteEmployees
Description
public deleteEmployees (array $ids)
deletes existing records
Parameters
(array) $ids
Return Values
string
HumanResources_Frontend_Json::deleteFreeTimes
Description
public deleteFreeTimes (array $ids)
deletes existing records
Parameters
(array) $ids
Return Values
string
HumanResources_Frontend_Json::deleteWorkingTime
Description
public deleteWorkingTime (array $ids)
deletes existing records
Parameters
(array) $ids
Return Values
string
HumanResources_Frontend_Json::generateStreamReport
Description
generateStreamReport (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::getAccount
Description
public getAccount (string $id)
Return a single record
Parameters
(string) $id
Return Values
array
record data
HumanResources_Frontend_Json::getAttendanceRecorderDeviceStates
Description
getAttendanceRecorderDeviceStates (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::getEmployee
Description
public getEmployee (string $id)
Return a single record
Parameters
(string) $id
Return Values
array
record data
HumanResources_Frontend_Json::getFeastAndFreeDays
Description
public getFeastAndFreeDays (string $_employeeId, int $_yearMonth, string $_freeTimeId, string $_accountId)
returns feast days and freedays of an employee for the freetime edit dialog
Parameters
(string) $_employeeId(int) $_yearMonth(string) $_freeTimeId: deprecated do not used anymore!(string) $_accountId: used for vacation calculations (account period might differ from $_year)
Return Values
void
HumanResources_Frontend_Json::getFreeTime
Description
public getFreeTime (string $id)
Return a single record
Parameters
(string) $id
Return Values
array
record data
HumanResources_Frontend_Json::getStream
Description
public getStream (string $id)
Return a single stream
Parameters
(string) $id
Return Values
array
stream data
HumanResources_Frontend_Json::getWorkingTime
Description
public getWorkingTime (string $id)
Return a single record
Parameters
(string) $id
Return Values
array
record data
HumanResources_Frontend_Json::recalculateEmployeesWTReports
Description
recalculateEmployeesWTReports (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::saveAccount
Description
public saveAccount (array $recordData)
creates/updates a record
Parameters
(array) $recordData
Return Values
array
created/updated record
HumanResources_Frontend_Json::saveDailyWTReport
Description
saveDailyWTReport (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::saveEmployee
Description
public saveEmployee (array $recordData)
creates/updates a record
Parameters
(array) $recordData
Return Values
array
created/updated record
HumanResources_Frontend_Json::saveFreeTime
Description
public saveFreeTime (array $recordData)
creates/updates a record
Parameters
(array) $recordData
Return Values
array
created/updated record
HumanResources_Frontend_Json::saveMonthlyWTReport
Description
saveMonthlyWTReport (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::saveStream
Description
public saveStream (array $recordData)
creates/updates a stream
Parameters
(array) $recordData
Return Values
array
created/updated stream
HumanResources_Frontend_Json::saveWorkingTime
Description
public saveWorkingTime (array $recordData)
creates/updates a record
Parameters
(array) $recordData
Return Values
array
created/updated record
HumanResources_Frontend_Json::searchAccounts
Description
public searchAccounts (array $filter, array $paging)
Search for records matching given arguments
Parameters
(array) $filter(array) $paging
Return Values
array
HumanResources_Frontend_Json::searchEmployees
Description
public searchEmployees (array $filter, array $paging)
Search for records matching given arguments
Parameters
(array) $filter(array) $paging
Return Values
array
HumanResources_Frontend_Json::searchFreeTimes
Description
public searchFreeTimes (array $filter, array $paging)
Search for records matching given arguments
Parameters
(array) $filter(array) $paging
Return Values
array
HumanResources_Frontend_Json::searchStreams
Description
searchStreams (void)
Parameters
This function has no parameters.
Return Values
void
HumanResources_Frontend_Json::searchWorkingTimes
Description
public searchWorkingTimes (array $filter, array $paging)
Search for records matching given arguments
Parameters
(array) $filter(array) $paging
Return Values
array
HumanResources_Frontend_Json::wtInfo
Description
wtInfo (void)
Parameters
This function has no parameters.
Return Values
void