Duplicate contracts from an item template to its clone
static public cloneItem ( $itemtype, $oldid, $newid, $newitemtype = '' ) | ||
$itemtype | itemtype of the item | |
$oldid | ID of the item to clone | |
$newid | ID of the item cloned | |
$newitemtype | itemtype of the new item (= $itemtype if empty) (default '') |