Procedural File: bugnote_api.php
Source Location: /core/bugnote_api.php
Classes:
BugnoteData
Bugnote Data Structure Definition
Page Details:
BugNote API
Tags:
Includes:
bugnote_add [line 126]
false|int bugnote_add(
int $p_bug_id, string $p_bugnote_text, [string $p_time_tracking = '0:00'], [bool $p_private = false], [int $p_type = 0], [string $p_attr = ''], [int $p_user_id = null], [bool $p_send_email = TRUE])
|
|
Add a bugnote to a bug return the ID of the new bugnote
Tags:
Parameters
int |
$p_bug_id |
bug id |
string |
$p_bugnote_text |
bugnote text |
string |
$p_time_tracking |
hh:mm string |
bool |
$p_private |
whether bugnote is private |
int |
$p_type |
bugnote type |
string |
$p_attr |
|
int |
$p_user_id |
user id |
bool |
$p_send_email |
generate email? |
bugnote_clear_cache [line 700]
null bugnote_clear_cache(
[int $p_bugnote_id = null])
|
|
Clear a bugnote from the cache or all bug notes if no bugnote id specified.
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id to clear (optional) |
bugnote_date_update [line 486]
bool bugnote_date_update(
int $p_bugnote_id)
|
|
Update the last_modified field of the bugnote
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
bugnote_delete [line 220]
bool bugnote_delete(
int $p_bugnote_id)
|
|
Delete a bugnote
Tags:
Parameters
int |
$p_bugnote_id |
bug note id |
bugnote_delete_all [line 247]
bool bugnote_delete_all(
int $p_bug_id)
|
|
delete all bugnotes associated with the given bug
Tags:
Parameters
bugnote_ensure_exists [line 90]
void bugnote_ensure_exists(
int $p_bugnote_id)
|
|
Check if a bugnote with the given ID exists return true if the bugnote exists, raise an error if not
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
bugnote_exists [line 68]
bool bugnote_exists(
int $p_bugnote_id)
|
|
Check if a bugnote with the given ID exists return true if the bugnote exists, false otherwise
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
bugnote_format_id [line 576]
string bugnote_format_id(
int $p_bugnote_id)
|
|
Pad the bugnote id with the appropriate number of zeros for printing
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
bugnote_get_all_bugnotes [line 407]
array bugnote_get_all_bugnotes(
int $p_bug_id)
|
|
Build the bugnotes array for the given bug_id. Return BugnoteData class object with raw values from the tables except the field last_modified - it is UNIX_TIMESTAMP. The data is not filtered by VIEW_STATE !!
Tags:
Parameters
bugnote_get_all_visible_bugnotes [line 353]
array bugnote_get_all_visible_bugnotes(
int $p_bug_id, int $p_user_bugnote_order, int $p_user_bugnote_limit, [int $p_user_id = null])
|
|
Build the bugnotes array for the given bug_id filtered by specified $p_user_access_level. Bugnotes are sorted by date_submitted according to 'bugnote_order' configuration setting. Return BugnoteData class object with raw values from the tables except the field last_modified - it is UNIX_TIMESTAMP.
Tags:
Parameters
int |
$p_bug_id |
bug id |
int |
$p_user_bugnote_order |
sort order |
int |
$p_user_bugnote_limit |
number of bugnotes to display to user |
int |
$p_user_id |
user id |
bugnote_get_field [line 303]
string bugnote_get_field(
int $p_bugnote_id, string $p_field_name)
|
|
Get a field for the given bugnote
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
string |
$p_field_name |
field name |
bugnote_get_latest_id [line 328]
int bugnote_get_latest_id(
int $p_bug_id)
|
|
Get latest bugnote id
Tags:
Parameters
bugnote_get_text [line 283]
string bugnote_get_text(
int $p_bugnote_id)
|
|
Get the text associated with the bugnote
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
bugnote_is_user_reporter [line 104]
bool bugnote_is_user_reporter(
int $p_bugnote_id, int $p_user_id)
|
|
Check if the given user is the reporter of the bugnote return true if the user is the reporter, false otherwise
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
int |
$p_user_id |
user id |
bugnote_set_text [line 506]
bool bugnote_set_text(
int $p_bugnote_id, string $p_bugnote_text)
|
|
Set the bugnote text
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
string |
$p_bugnote_text |
bugnote text |
bugnote_set_time_tracking [line 466]
bool bugnote_set_time_tracking(
int $p_bugnote_id, string $p_time_tracking)
|
|
Update the time_tracking field of the bugnote
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
string |
$p_time_tracking |
timetracking string (hh:mm format) |
bugnote_set_view_state [line 548]
bool bugnote_set_view_state(
int $p_bugnote_id, bool $p_private)
|
|
Set the view state of the bugnote
Tags:
Parameters
int |
$p_bugnote_id |
bugnote id |
bool |
$p_private |
|
bugnote_stats_get_events_array [line 590]
array bugnote_stats_get_events_array(
int $p_bug_id, string $p_from, string $p_to)
|
|
Returns an array of bugnote stats
Tags:
Parameters
int |
$p_bug_id |
bug id |
string |
$p_from |
Starting date (yyyy-mm-dd) inclusive, if blank, then ignored. |
string |
$p_to |
Ending date (yyyy-mm-dd) inclusive, if blank, then ignored. |
bugnote_stats_get_project_array [line 637]
array bugnote_stats_get_project_array(
int $p_project_id, string $p_from, string $p_to, int $p_cost)
|
|
Returns an array of bugnote stats
Tags:
Parameters
int |
$p_project_id |
project id |
string |
$p_from |
Starting date (yyyy-mm-dd) inclusive, if blank, then ignored. |
string |
$p_to |
Ending date (yyyy-mm-dd) inclusive, if blank, then ignored. |
int |
$p_cost |
cost |
|
|