implement cloning

This makes use of PHP's native object cloning.

<?php
$item = clone $olditem;
?>

it will create a copy on the server and set the item_id to the new
item's id