The main time counting class.
More...
The main time counting class.
Input database selection
◆ __construct()
App\TimeManagers\TimeBox::__construct |
( |
|
$tableSelection, |
|
|
|
$previousEvent, |
|
|
DateTime |
$startTime, |
|
|
DateTime |
$endTime |
|
) |
| |
Constructor.
- Parameters
-
| $tableSelection | |
| $previousEvent | |
DateTime | $startTime | |
DateTime | $endTime | |
◆ allTime()
App\TimeManagers\TimeBox::allTime |
( |
| ) |
|
Get all pletacka time.
- Returns
- int time in seconds
◆ countEvents()
App\TimeManagers\TimeBox::countEvents |
( |
|
$state = NULL | ) |
|
Count of table rows of specific Pletacka state or all states (null)
- Parameters
-
null | $state | Pletacka state or all states (null) |
- Returns
- int count
◆ getEvents()
App\TimeManagers\TimeBox::getEvents |
( |
| ) |
|
Get events.
- Returns
- Selection
◆ lastStopTime()
App\TimeManagers\TimeBox::lastStopTime |
( |
DateTime |
$now | ) |
|
Get last stop time.
- Parameters
-
- Returns
- int time in seconds
◆ stopTime()
App\TimeManagers\TimeBox::stopTime |
( |
| ) |
|
Get stop time.
- Returns
- int time in seconds
◆ workTime()
App\TimeManagers\TimeBox::workTime |
( |
int |
$allTime, |
|
|
int |
$stopTime |
|
) |
| |
Get work time.
- Parameters
-
- Returns
- int time in second
◆ FINISHED
const App\TimeManagers\TimeBox::FINISHED = 'FINISHED' |
◆ OFF
const App\TimeManagers\TimeBox::OFF = 'OFF' |
◆ ON
const App\TimeManagers\TimeBox::ON = 'ON' |
◆ REWORK
const App\TimeManagers\TimeBox::REWORK = "REWORK" |
◆ STOP
const App\TimeManagers\TimeBox::STOP = "STOP" |
The documentation for this class was generated from the following file:
- /github/workspace/app/CoreModule/TimeManagers/TimeBox.php