diskfile_is_name_unique [line 584]
void diskfile_is_name_unique(
$p_name, $p_filepath
)
|
|
Parameters:
file_add [line 625]
void file_add(
integer $p_bug_id, array $p_file, [ $p_table = 'bug'], [ $p_title = ''], [ $p_desc = '']
)
|
|
Add a file to the system using the configured storage method
Parameters:
|
integer |
$p_bug_id: |
the bug id |
|
array |
$p_file: |
the uploaded file info, as retrieved from gpc_get_file() |
|
|
$p_table: |
|
|
|
$p_title: |
|
|
|
$p_desc: |
|
file_allow_bug_upload [line 762]
void file_allow_bug_upload(
[ $p_bug_id = null], [ $p_user_id = null]
)
|
|
Parameters:
file_allow_project_upload [line 745]
void file_allow_project_upload(
[ $p_project_id = null], [ $p_user_id = null]
)
|
|
Parameters:
|
|
$p_project_id: |
|
|
|
$p_user_id: |
|
file_bug_attachment_count [line 63]
void file_bug_attachment_count(
$p_bug_id
)
|
|
Parameters:
file_bug_has_attachments [line 106]
void file_bug_has_attachments(
$p_bug_id
)
|
|
Parameters:
file_can_delete_bug_attachments [line 137]
void file_can_delete_bug_attachments(
$p_bug_id
)
|
|
Parameters:
file_can_download_bug_attachments [line 126]
void file_can_download_bug_attachments(
$p_bug_id
)
|
|
Parameters:
file_can_view_bug_attachments [line 115]
void file_can_view_bug_attachments(
$p_bug_id
)
|
|
Parameters:
file_clean_name [line 559]
void file_clean_name(
$p_filename
)
|
|
Parameters:
file_delete [line 481]
void file_delete(
$p_file_id, [ $p_table = 'bug']
)
|
|
Parameters:
file_delete_attachments [line 328]
void file_delete_attachments(
$p_bug_id
)
|
|
Parameters:
file_delete_local [line 460]
void file_delete_local(
$p_filename
)
|
|
Parameters:
file_delete_project_files [line 379]
void file_delete_project_files(
$p_project_id
)
|
|
Parameters:
file_ensure_uploaded [line 815]
void file_ensure_uploaded(
array $p_file
)
|
|
Ensure a file was uploaded
This function perform various checks for determining if the upload was successful
Parameters:
|
array |
$p_file: |
the uploaded file info, as retrieved from gpc_get_file() |
file_ensure_valid_upload_path [line 801]
void file_ensure_valid_upload_path(
$p_upload_path
)
|
|
Parameters:
file_ftp_cache_cleanup [line 422]
void file_ftp_cache_cleanup(
)
|
|
file_ftp_connect [line 426]
file_ftp_delete [line 450]
void file_ftp_delete(
$p_conn_id, $p_filename
)
|
|
Parameters:
file_ftp_disconnect [line 455]
void file_ftp_disconnect(
$p_conn_id
)
|
|
Parameters:
file_ftp_get [line 444]
void file_ftp_get(
$p_conn_id, $p_local_filename, $p_remote_filename
)
|
|
Parameters:
|
|
$p_conn_id: |
|
|
|
$p_local_filename: |
|
|
|
$p_remote_filename: |
|
file_ftp_put [line 438]
void file_ftp_put(
$p_conn_id, $p_remote_filename, $p_local_filename
)
|
|
Parameters:
|
|
$p_conn_id: |
|
|
|
$p_remote_filename: |
|
|
|
$p_local_filename: |
|
file_generate_name [line 566]
void file_generate_name(
$p_seed
)
|
|
Parameters:
file_generate_unique_name [line 574]
void file_generate_unique_name(
$p_seed, $p_filepath
)
|
|
Parameters:
file_get_display_name [line 40]
void file_get_display_name(
$p_filename
)
|
|
Parameters:
file_get_extension [line 838]
void file_get_extension(
$p_filename
)
|
|
Parameters:
file_get_field [line 468]
void file_get_field(
$p_file_id, $p_field_name, [ $p_table = 'bug']
)
|
|
Parameters:
|
|
$p_file_id: |
|
|
|
$p_field_name: |
|
|
|
$p_table: |
|
file_get_icon_url [line 153]
void file_get_icon_url(
$p_display_filename
)
|
|
Parameters:
file_get_visible_attachments [line 257]
void file_get_visible_attachments(
$p_bug_id
)
|
|
Parameters:
file_is_name_unique [line 603]
void file_is_name_unique(
$p_name, $p_bug_id
)
|
|
Parameters:
file_is_uploading_enabled [line 734]
void file_is_uploading_enabled(
)
|
|
file_normalize_attachment_path [line 196]
The file_normalize_attachment_path(
string $p_diskfile, integer $p_project_id
)
|
|
Nomalizes the disk file path based on the following algorithm: - If disk file exists, then return as is.
2. If not, and a project path is available, then check with that, if exists return it. 3. If not, then use default upload path, then check with that, if exists return it. 4. If disk file doesn't include a path, then return expected path based on project path or default path. 5. Otherwise return as is.
Parameters:
|
string |
$p_diskfile: |
The disk file (full path or just filename). |
|
integer |
$p_project_id: |
The project id - shouldn't be 0 (ALL_PROJECTS). |
API Tags:
| Return: | normalized full path. |
file_path_combine [line 173]
The file_path_combine(
string $p_path, string $p_filename
)
|
|
Combines a path and a file name making sure that the separator exists.
Parameters:
|
string |
$p_path: |
The path. |
|
string |
$p_filename: |
The file name. |
API Tags:
| Return: | combined full path. |
file_type_check [line 525]
void file_type_check(
$p_file_name
)
|
|
Parameters: