ezsystems/ezp-next — pull request #49 by pspanja (2012-05-02 16:33:32+00:00)
Title: Copy content

Implemented ContentHandler::copy()

Added optional versionNo to the ContentHandler::create(), Gateway::insertContentObject() and Mapper::createContentFromCreateStruct() in order to preserve version numbers when using copy().

Changed Mapper::createCreateStructFromContent() so that new remoteId is generated and current timestamp is used.

Fixed setting names in ContentHandler::createDraftFromVersion() in both storages.

Also addes InMemory fixtures needed to test ContentService::copyContent().