cr_create_content_file_from_string (public)

 cr_create_content_file_from_string item_id revision_id str

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

Copies the string to the content repository file storage area, and it returns the relative file path from the root of the content repository file storage area.

Parameters:
item_id (required)
revision_id (required)
str (required)

Testcases:
No testcase defined.
Source code:
    ad_mutex_eval [nsv_get mutex cr_file_creation] {
        set content_file [cr_create_content_file_path $item_id $revision_id]
        set ofp [open [cr_fs_path]$content_file w]
        puts -nonewline $ofp $str
        close $ofp
    }
    cr_add_to_file_creation_log $content_file
    return $content_file
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: