content::revision::new (public)

 content::revision::new [ -revision_id revision_id ] -item_id item_id \
    [ -title title ] [ -description description ] [ -content content ] \
    [ -mime_type mime_type ] [ -publish_date publish_date ] \
    [ -nls_language nls_language ] [ -creation_date creation_date ] \
    [ -content_type content_type ] [ -creation_user creation_user ] \
    [ -creation_ip creation_ip ] [ -package_id package_id ] \
    [ -attributes attributes ] [ -is_live is_live ] \
    [ -tmp_filename tmp_filename ] [ -storage_type storage_type ]

Defined in packages/acs-content-repository/tcl/content-revision-procs.tcl

Adds a new revision of a content item. If content_type is not passed in, we determine it from the content item. This is needed to find the attributes for the content type.

Switches:
-revision_id (optional)
-item_id (required)
-title (optional)
-description (optional)
-content (optional)
-mime_type (optional)
-publish_date (optional)
-nls_language (optional)
-creation_date (optional)
-content_type (optional)
-creation_user (optional)
-creation_ip (optional)
-package_id (optional)
Package_id content belongs to
-attributes (optional)
A list of lists of pairs of additional attributes and their values to pass to the constructor. Each pair is a list of two elements: key => value such as [list [list attribute value] [list attribute value]]
-is_live (optional, defaults to "f")
True is revision should be set live
-tmp_filename (optional)
file containing content to be added to revision. The caller is responsible for cleaning up the temporary file.
-storage_type (optional)
Returns:
Error:
Author:
Dave Bauer <dave@thedesignexperience.org>
Created:
2004-06-04

Testcases:
content_image, content_revision
[ show source ]
Show another procedure: