• Publicity: Public Only All

content-procs.tcl

Functions that the content-repository uses to interact with the filesystem.

Location:
packages/acs-content-repository/tcl/content-procs.tcl
Created:
Sat May 5 13:45 2001
Author:
Dan Wickstrom <dcwickstrom@earthlink.net>
CVS Identification:
$Id: content-procs.tcl,v 1.16.2.8 2024/04/23 16:21:55 antoniop Exp $

Procedures in this file

Detailed information

cr_create_content_file (public)

 cr_create_content_file [ -move ] item_id revision_id client_filename

Copies the file passed by client_filename to the content repository file storage area, and it returns the relative file path from the root of the content repository file storage area.. if the -move flag is given the file is renamed instead

Switches:
-move (optional, boolean)
Parameters:
item_id (required)
revision_id (required)
client_filename (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_test_cr_items test_cr_items (test xotcl-core) cr_create_content_file cr_create_content_file test_test_cr_items->cr_create_content_file test_xotcl_core_tutorial_4 xotcl_core_tutorial_4 (test xotcl-core) test_xotcl_core_tutorial_4->cr_create_content_file cr_add_to_file_creation_log cr_add_to_file_creation_log (private) cr_create_content_file->cr_add_to_file_creation_log cr_create_content_file_path cr_create_content_file_path (public) cr_create_content_file->cr_create_content_file_path cr_fs_path cr_fs_path (private) cr_create_content_file->cr_fs_path content::revision::update_content-file content::revision::update_content-file (private) content::revision::update_content-file->cr_create_content_file content::revision::update_content-lob content::revision::update_content-lob (private) content::revision::update_content-lob->cr_create_content_file fs::file_copy fs::file_copy (public) fs::file_copy->cr_create_content_file pa_load_images pa_load_images (public) pa_load_images->cr_create_content_file packages/general-comments/www/file-add-2.tcl packages/general-comments/ www/file-add-2.tcl packages/general-comments/www/file-add-2.tcl->cr_create_content_file

Testcases:
xotcl_core_tutorial_4, test_cr_items

cr_create_content_file_from_string (public)

 cr_create_content_file_from_string item_id revision_id str

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)

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.

cr_create_content_file_path (public)

 cr_create_content_file_path item_id revision_id

Creates a unique file in the content repository filesystem based on the item_id and revision_id of the content item.

Parameters:
item_id (required)
revision_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 cr_create_content_file cr_create_content_file (public) cr_create_content_file_path cr_create_content_file_path cr_create_content_file->cr_create_content_file_path cr_create_content_file_from_string cr_create_content_file_from_string (public) cr_create_content_file_from_string->cr_create_content_file_path cr_fs_path cr_fs_path (private) cr_create_content_file_path->cr_fs_path

Testcases:
No testcase defined.

cr_file_size (public)

 cr_file_size relative_file_path

Returns the size of a file stored in the content repository. Takes the relative file path of the content repository file as an argument.

Parameters:
relative_file_path (required)

Partial Call Graph (max 5 caller/called nodes):
%3 cr_fs_path cr_fs_path (private) cr_file_size cr_file_size cr_file_size->cr_fs_path

Testcases:
No testcase defined.
[ show source ]