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
revision_id
str

Partial Call Graph (max 5 caller/called nodes):
%3 content::revision::update_content-file content::revision::update_content-file (private) cr_create_content_file_from_string cr_create_content_file_from_string content::revision::update_content-file->cr_create_content_file_from_string ad_mutex_eval ad_mutex_eval (public) cr_create_content_file_from_string->ad_mutex_eval cr_add_to_file_creation_log cr_add_to_file_creation_log (private) cr_create_content_file_from_string->cr_add_to_file_creation_log cr_create_content_file_path cr_create_content_file_path (public) cr_create_content_file_from_string->cr_create_content_file_path cr_fs_path cr_fs_path (private) cr_create_content_file_from_string->cr_fs_path

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: