Procedural File: project_api.php
Source Location: /core/project_api.php
Page Details:
Tags:
Includes:
project_add_user [line 622]
void project_add_user(
$p_project_id, $p_user_id, $p_access_level)
|
|
Parameters
|
$p_project_id |
|
|
$p_user_id |
|
|
$p_access_level |
|
project_cache_all [line 142]
void project_cache_all(
)
|
|
project_cache_array_rows [line 103]
void project_cache_array_rows(
$p_project_id_array)
|
|
Parameters
project_cache_row [line 63]
void project_cache_row(
$p_project_id, [ $p_trigger_errors = true])
|
|
Parameters
|
$p_project_id |
|
|
$p_trigger_errors |
|
project_clear_cache [line 165]
void project_clear_cache(
[ $p_project_id = null])
|
|
Parameters
project_copy_custom_fields [line 390]
void project_copy_custom_fields(
$p_destination_id, $p_source_id)
|
|
Parameters
|
$p_destination_id |
|
|
$p_source_id |
|
project_copy_users [line 735]
null project_copy_users(
int $p_destination_id, int $p_source_id, [int $p_access_level_limit = null])
|
|
Copy all users and their permissions from the source project to the destination project. The $p_access_level_limit parameter can be used to limit the access level for users as they're copied to the destination project (the highest access level they'll receieve in the destination project will be equal to $p_access_level_limit).
Parameters
int |
$p_destination_id |
Destination project ID |
int |
$p_source_id |
Source project ID |
int |
$p_access_level_limit |
Access level limit (null = no limit) |
project_create [line 260]
void project_create(
$p_name, $p_description, $p_status, [ $p_view_state = VS_PUBLIC], [ $p_file_path = ''], [ $p_enabled = true], [ $p_inherit_global = true])
|
|
Parameters
|
$p_name |
|
|
$p_description |
|
|
$p_status |
|
|
$p_view_state |
|
|
$p_file_path |
|
|
$p_enabled |
|
|
$p_inherit_global |
|
project_delete [line 292]
void project_delete(
$p_project_id)
|
|
Parameters
project_delete_all_files [line 761]
void project_delete_all_files(
$p_project_id)
|
|
Parameters
project_ensure_exists [line 202]
void project_ensure_exists(
$p_project_id)
|
|
Parameters
project_ensure_name_unique [line 228]
void project_ensure_name_unique(
$p_name)
|
|
Parameters
project_exists [line 186]
void project_exists(
$p_project_id)
|
|
Parameters
project_file_is_name_unique [line 777]
void project_file_is_name_unique(
$p_name)
|
|
Parameters
project_format_id [line 770]
void project_format_id(
$p_project_id)
|
|
Parameters
project_get_all_rows [line 424]
void project_get_all_rows(
)
|
|
project_get_all_user_rows [line 502]
void project_get_all_user_rows(
[ $p_project_id = ALL_PROJECTS], [ $p_access_level = ANYBODY], [ $p_include_global_users = true])
|
|
Parameters
|
$p_project_id |
|
|
$p_access_level |
|
|
$p_include_global_users |
|
project_get_field [line 429]
void project_get_field(
$p_project_id, $p_field_name, [ $p_trigger_errors = true])
|
|
Parameters
|
$p_project_id |
|
|
$p_field_name |
|
|
$p_trigger_errors |
|
project_get_id_by_name [line 405]
void project_get_id_by_name(
$p_project_name)
|
|
Parameters
project_get_local_user_access_level [line 454]
void project_get_local_user_access_level(
$p_project_id, $p_user_id)
|
|
Parameters
project_get_local_user_rows [line 477]
void project_get_local_user_rows(
$p_project_id)
|
|
Parameters
project_get_name [line 444]
void project_get_name(
$p_project_id, [ $p_trigger_errors = true])
|
|
Parameters
|
$p_project_id |
|
|
$p_trigger_errors |
|
project_get_row [line 419]
void project_get_row(
$p_project_id, [ $p_trigger_errors = true])
|
|
Parameters
|
$p_project_id |
|
|
$p_trigger_errors |
|
project_includes_user [line 236]
void project_includes_user(
$p_project_id, $p_user_id)
|
|
Parameters
project_is_name_unique [line 210]
void project_is_name_unique(
$p_name)
|
|
Parameters
project_remove_all_users [line 704]
true project_remove_all_users(
int $p_project_id, [int $p_access_level_limit = null])
|
|
Delete all users from the project user list for a given project. This is useful when deleting or closing a project. The $p_access_level_limit parameter can be used to only remove users from a project if their access level is below or equal to the limit.
Parameters
int |
$p_project_id |
Project ID |
int |
$p_access_level_limit |
Access level limit (null = no limit) |
project_remove_user [line 679]
void project_remove_user(
$p_project_id, $p_user_id)
|
|
Parameters
project_set_user_access [line 670]
void project_set_user_access(
$p_project_id, $p_user_id, $p_access_level)
|
|
Parameters
|
$p_project_id |
|
|
$p_user_id |
|
|
$p_access_level |
|
project_update [line 348]
void project_update(
$p_project_id, $p_name, $p_description, $p_status, $p_view_state, $p_file_path, $p_enabled, $p_inherit_global)
|
|
Parameters
|
$p_project_id |
|
|
$p_name |
|
|
$p_description |
|
|
$p_status |
|
|
$p_view_state |
|
|
$p_file_path |
|
|
$p_enabled |
|
|
$p_inherit_global |
|
project_update_user_access [line 649]
void project_update_user_access(
$p_project_id, $p_user_id, $p_access_level)
|
|
Parameters
|
$p_project_id |
|
|
$p_user_id |
|
|
$p_access_level |
|
|
|