ezsystems/ezp-next — pull request #28 by pspanja (2012-03-25 17:33:00+00:00)
Title: Updated ContentHandler create() and createDraftFromVersion()

This adds missing fields for ContentInfo in Mapper::createContentFromCreateStruct() and for VersionInfo in Mapper::createVersionInfoForContent(), also createVersionInfoForContent() now gathers languageIds from fields.
Content publicationDate and modificationDate are set to 0 when creating a new content draft, as these should first be set with concrete values on publish.

Implemented new method in gateway getLastVersionNumber( $contentId ) in order to get correct next versionNo for createDraftFromVersion().

Also fixed incorrect usage of status in Gateway::setStatus() constants and fixed PHPDoc on few places.