Work with one sensor by number.
More...
Work with one sensor by number.
◆ __construct()
App\CoreModule\Model\ThisSensorManager::__construct |
( |
Context |
$database, |
|
|
SensorsManager |
$sensorsManager |
|
) |
| |
◆ addEvent()
App\CoreModule\Model\ThisSensorManager::addEvent |
( |
|
$sNumber, |
|
|
|
$state |
|
) |
| |
Add sensor status to database.
- Parameters
-
string | $sNumber | |
mixed | $state | |
- Returns
- Pretty
◆ getAllEvents()
App\CoreModule\Model\ThisSensorManager::getAllEvents |
( |
|
$sNumber, |
|
|
|
$from = "2000-01-01 00:00:00" , |
|
|
|
$to = "2100-01-01 00:00:00" |
|
) |
| |
Get all machine events.
- Parameters
-
| $sNumber | |
string | $from | |
string | $to | |
- Returns
- array
◆ getLastEvent()
App\CoreModule\Model\ThisSensorManager::getLastEvent |
( |
int |
$sNumber | ) |
|
◆ getPreviousEvent()
App\CoreModule\Model\ThisSensorManager::getPreviousEvent |
( |
|
$sNumber, |
|
|
|
$events |
|
) |
| |
◆ sensorHasData()
App\CoreModule\Model\ThisSensorManager::sensorHasData |
( |
|
$sNumber | ) |
|
◆ FINISHED
const App\CoreModule\Model\ThisSensorManager::FINISHED = 'FINISHED' |
◆ MINUTE
const App\CoreModule\Model\ThisSensorManager::MINUTE = 60 |
◆ OFF
const App\CoreModule\Model\ThisSensorManager::OFF = 'OFF' |
◆ ON
const App\CoreModule\Model\ThisSensorManager::ON = 'ON' |
◆ REWORK
const App\CoreModule\Model\ThisSensorManager::REWORK = "REWORK" |
◆ START
const App\CoreModule\Model\ThisSensorManager::START = "2000-01-01 00:00:00" |
◆ STOP
const App\CoreModule\Model\ThisSensorManager::STOP = "STOP" |
The documentation for this class was generated from the following file: