Documentation
IPS_GetInstanceListByModuleType
array IPS_GetInstanceListByModuleType (int $ModuleType)
Parameters
ModuleType |
|
Returns
An array of integer values of all IDs of the instances of the type InstanceType in IP Symcon
Description
The command determines the IDs of all instances of the given ModuleType. The IDs are listed in an array. If there is no instance of the requested type, the array is empty.
The list only contains objects of the type ModuleType. The command IPS_GetInstanceList can be used to list all existing instances.
Example
$allInstances = IPS_GetInstanceListByModuleType(1); // lists only I/O Instances
print_r($allInstances);
/* returns e.g.:
Array
(
[0] => 37659
[1] => 18326
etc. ...
*/