Make a select box for connections
static public dropdownConnect ( $itemtype, $fromtype, $myname, $entity_restrict, $onlyglobal, $used = [] ) : nothing | ||
$itemtype | type to connect | |
$fromtype | from where the connection is | |
$myname | select name | |
$entity_restrict | Restrict to a defined entity (default = -1) | |
$onlyglobal | display only global devices (used for templates) (default 0) | |
$used | array Already used items ID: not to display in dropdown | |
return | nothing | (print out an HTML select box) |