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 ModuleType in IP-Symcon. The order of the entries is not guaranteed.
Description
The function 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 function IPS_GetInstanceList can be used to list all existing instances.
Example
$allInstances = IPS_GetInstanceListByModuleType(MODULETYPE_IO); // list only I/O instances
print_r($allInstances);
/* returns e.g.:
Array
(
[0] => 37659
[1] => 18326
etc. ...
*/