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):
- 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