Documentation
IPS_GetEventListByType
array IPS_GetEventListByType (int $EventType)
Parameters
| EventType |
|
Returns
An array of integer values of all IDs of the events of the type EventType in IP-Symcon. The order of the entries is not guaranteed.
Description
The function determines the IDs of all events of a specific EventType. The IDs are listed in an array. If no event of the specific type exists, the array is empty.
The list only contains events of the event type EventType. If all events are wanted, the function IPS_GetEventList can be used.
Example
$allEvents = IPS_GetEventListByType(EVENTTYPE_CYCLIC); // list only cyclical events
print_r($allEvents);
/* returns e.g.:
Array
(
[0] => 37659
[1] => 18326
etc. …
)
*/