« Back to Product

Documentation

IPS_GetCompatibleModules

 array IPS_GetCompatibleModules (string $ModuleID) 

Parameters

ModuleID

ID of the module

Returns

An array of all IDs of modules that are valid parents to ModuleID given as strings

Description

The command determines the IDs of all modules that are are valid parents to the module with ID ModuleID in IP-Symcon. The IDs are listed in an array of string values.

Example

print_r(IPS_GetCompatibleModules("{57040540-4432-4220-8D2D-4676B57E223D}")); 

/* returns e.g.:
Array
(
    [0] => {AC6C6E74-C797-40B3-BA82-F135D941D1A2}
    [1] => {6179ED6A-FC31-413C-BB8E-1204150CF376}
    [2] => {3CFF0FD9-E306-41DB-9B5A-9D06D38576C3}
    [3] => {82347F20-F541-41E1-AC5B-A636FD3AE2D8}
    etc. ...
)
*/
Any questions?