content::revision::update_content-file (private)

 content::revision::update_content-file -item_id item_id \
    -revision_id revision_id -content content -mime_type mime_type \
    [ -tmp_filename tmp_filename ]

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

Switches:
-item_id (required)
-revision_id (required)
-content (required)
-mime_type (required)
-tmp_filename (optional)

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

Testcases:
No testcase defined.
Source code:
    if {$tmp_filename eq ""} {
        set filename [cr_create_content_file_from_string $item_id $revision_id $content]
    } else {
        set filename [cr_create_content_file $item_id $revision_id $tmp_filename]
    }
    set tmp_size [file size [cr_fs_path]$filename]
    db_dml set_file_content {
        update cr_revisions
        set content = :filename,
            mime_type = :mime_type,
            content_length = :tmp_size
        where revision_id = :revision_id
    }
Generic XQL file:
packages/acs-content-repository/tcl/content-revision-procs.xql

PostgreSQL XQL file:
packages/acs-content-repository/tcl/content-revision-procs-postgresql.xql

Oracle XQL file:
packages/acs-content-repository/tcl/content-revision-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: