This import a new dropdown if it doesn't exist - Play dictionnary if needed
static public importExternal ( $itemtype, $value, $entities_id, $external_params = [], $comment = '', $add = true ) : integer | ||
$itemtype | string name of the class | |
$value | string Value of the new dropdown. (need to be addslashes) | |
$entities_id | integer entity in case of specific dropdown (default -1) | |
$external_params | array (need to be addslashes) | |
$comment | (default '') (need to be addslashes) | |
$add | if true, add it if not found. if false, just check if exists (true by default) | |
Résultat | integer | : dropdown id. |