- 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
- cr_add_to_file_creation_log (private)
- cr_check_file_entry (private)
- cr_count_file_entries (private)
- cr_create_content_file (public)
- cr_create_content_file_from_string (public)
- cr_create_content_file_path (public)
- cr_delete_orphans (private)
- cr_file_size (public)
- cr_fs_path (private)
- cr_get_file_creation_log (private)
Detailed information
cr_add_to_file_creation_log (private)
cr_add_to_file_creation_log content_file
Record an entry in the file creation log for managing orphaned files.
- Parameters:
- content_file (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
cr_check_file_entry (private)
cr_check_file_entry name
Check if an entry from the content repository having the specified partial path their content field exists.
- Parameters:
- name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
cr_count_file_entries (private)
cr_count_file_entries name
Count entries an entries from the content repository having the specified partial path their content field.
- Parameters:
- name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
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):
- 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):
- 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):
- Testcases:
- No testcase defined.
cr_delete_orphans (private)
cr_delete_orphans files
Delete orphaned files in the content repository.
- Parameters:
- files (required)
- Partial Call Graph (max 5 caller/called nodes):
- 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):
- Testcases:
- No testcase defined.
cr_fs_path (private)
cr_fs_path [ location ]
Root path of content repository files.
- Parameters:
- location (optional, defaults to
"CR_FILES"
)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
cr_get_file_creation_log (private)
cr_get_file_creation_log
Return the contents of the file creation log and truncate it (i.e. remove all entries).
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.