« Back to Product

Documentation

IPS_GetCompatibleInstances

 array IPS_GetCompatibleInstances (int $InstanceID) 

Parameters

InstanceID

ID of the instance

Returns

Array of integer values of all InstanceIDs compatible with InstanceID. The order of the entries is not guaranteed.

Description

The function returns the IDs of all available instances in IP-Symcon that are compatible as a parent instance with InstanceID (see IPS_IsInstanceCompatible). The IDs are listed in an array.

Example

print_r(IPS_GetCompatibleInstances(12345));

/* returns e.g.:
Array
(
    [0] => 22222
    [1] => 33333
    [2] => 44444
    [3] => 55555
    etc. ...
)
*/
Any questions?