relationship_add [line 157]
BugRelationshipData relationship_add(
int $p_src_bug_id, int $p_dest_bug_id, int $p_relationship_type
)
|
|
Add a new relationship
Parameters:
|
int |
$p_src_bug_id: |
Source Bug Id |
|
int |
$p_dest_bug_id: |
Destination Bug Id |
|
int |
$p_relationship_type: |
Relationship type |
API Tags:
relationship_can_resolve_bug [line 553]
bool relationship_can_resolve_bug(
int $p_bug_id
)
|
|
return false if there are child bugs not resolved/closed N.B. we don't check if the parent bug is read-only. This is because the answer of this function is indepedent from the state of the parent bug itself.
Parameters:
relationship_copy_all [line 261]
void relationship_copy_all(
int $p_bug_id, int $p_new_bug_id
)
|
|
copy all the relationships related to a specific bug to a new bug
Parameters:
|
int |
$p_bug_id: |
Source Bug Id |
|
int |
$p_new_bug_id: |
Destination Bug Id |
relationship_delete [line 231]
void relationship_delete(
int $p_relationship_id
)
|
|
Delete a relationship
Parameters:
|
int |
$p_relationship_id: |
Relationship Id to update |
relationship_delete_all [line 245]
void relationship_delete_all(
int $p_bug_id
)
|
|
Deletes all the relationships related to a specific bug (both source and destination)
Parameters:
relationship_exists [line 425]
int relationship_exists(
int $p_src_bug_id, int $p_dest_bug_id
)
|
|
check if there is a relationship between two bugs
return id if found 0 otherwise
Parameters:
|
int |
$p_src_bug_id: |
Source Bug Id |
|
int |
$p_dest_bug_id: |
Destination Bug Id |
API Tags:
relationship_get [line 287]
get a relationship from id
Parameters:
|
int |
$p_relationship_id: |
Relationship ID |
API Tags:
| Return: | BugRelationshipData object |
relationship_get_all [line 406]
array relationship_get_all(
int $p_bug_id, bool &$p_is_different_projects
)
|
|
get all relationships associated with the given bug
Parameters:
|
int |
$p_bug_id: |
Bug id |
|
bool |
&$p_is_different_projects: |
Returned Boolean value indicating if some relationships cross project boundaries |
API Tags:
| Return: | Array of BugRelationshipData objects |
relationship_get_all_dest [line 361]
array relationship_get_all_dest(
int $p_dest_bug_id
)
|
|
get all relationships with the given bug as destination
Parameters:
|
int |
$p_dest_bug_id: |
Destination Bug id |
API Tags:
| Return: | Array of BugRelationshipData objects |
relationship_get_all_src [line 317]
array relationship_get_all_src(
int $p_src_bug_id
)
|
|
get all relationships with the given bug as source
Parameters:
|
int |
$p_src_bug_id: |
Source Bug id |
API Tags:
| Return: | Array of BugRelationshipData objects |
relationship_get_complementary_type [line 142]
int relationship_get_complementary_type(
int $p_relationship_type
)
|
|
Return the complementary type of the provided relationship
Parameters:
|
int |
$p_relationship_type: |
Relationship type |
API Tags:
| Return: | Complementary type |
relationship_get_description_dest_side [line 529]
string relationship_get_description_dest_side(
int $p_relationship_type
)
|
|
get class description of a relationship (destination side)
Parameters:
|
int |
$p_relationship_type: |
Relationship type |
API Tags:
| Return: | Relationship description |
relationship_get_description_for_history [line 542]
string relationship_get_description_for_history(
int $p_relationship_code
)
|
|
get class description of a relationship as it's stored in the history
Parameters:
|
int |
$p_relationship_code: |
Relationship Type |
API Tags:
| Return: | Relationship description |
relationship_get_description_src_side [line 516]
string relationship_get_description_src_side(
int $p_relationship_type
)
|
|
get class description of a relationship (source side)
Parameters:
|
int |
$p_relationship_type: |
Relationship type |
API Tags:
| Return: | Relationship description |
relationship_get_details [line 588]
string relationship_get_details(
int $p_bug_id, BugRelationshipData $p_relationship, [bool $p_html = false], [bool $p_html_preview = false], [bool $p_show_project = false]
)
|
|
return formatted string with all the details on the requested relationship
Parameters:
|
int |
$p_bug_id: |
Bug id |
|
BugRelationshipData |
$p_relationship: |
Relationsip object |
|
bool |
$p_html: |
Generate html |
|
bool |
$p_html_preview: |
???? generate printable version??? |
|
bool |
$p_show_project: |
Show Project details |
relationship_get_linked_bug_id [line 496]
int relationship_get_linked_bug_id(
int $p_relationship_id, int $p_bug_id
)
|
|
retrieve the linked bug id of the relationship: provide src -> return dest; provide dest -> return src
Parameters:
|
int |
$p_relationship_id: |
Relationship id |
|
int |
$p_bug_id: |
Bug Id |
API Tags:
| Return: | Complementary bug id |
relationship_get_summary_html [line 690]
string relationship_get_summary_html(
int $p_bug_id
)
|
|
print ALL the RELATIONSHIPS OF A SPECIFIC BUG
Parameters:
relationship_get_summary_html_preview [line 717]
string relationship_get_summary_html_preview(
int $p_bug_id
)
|
|
print ALL the RELATIONSHIPS OF A SPECIFIC BUG
Parameters:
relationship_get_summary_text [line 744]
string relationship_get_summary_text(
int $p_bug_id
)
|
|
print ALL the RELATIONSHIPS OF A SPECIFIC BUG in text format (used by email_api.php
Parameters:
relationship_list_box [line 775]
null relationship_list_box(
[int $p_default_rel_type = -1], [string $p_select_name = "rel_type"], [bool $p_include_any = false], [bool $p_include_none = false], int $p_bug_id
)
|
|
print HTML relationship listbox
Parameters:
|
int |
$p_default_rel_type: |
Relationship Type (default -1) |
|
string |
$p_select_name: |
List box name (default "rel_type") |
|
bool |
$p_include_any: |
Include an ANY option in list box (default false) |
|
bool |
$p_include_none: |
Include a NONE option in list box (default false) |
|
int |
$p_bug_id: |
Bug id |
relationship_same_type_exists [line 466]
int relationship_same_type_exists(
int $p_src_bug_id, int $p_dest_bug_id, int $p_rel_type
)
|
|
check if there is a relationship between two bugs
return:
- if the relationship is not found
-1 if the relationship is found and it's of the same type $p_rel_type id if the relationship is found and it's of a different time (this means it can be replaced with the new type $p_rel_type
Parameters:
|
int |
$p_src_bug_id: |
Source Bug Id |
|
int |
$p_dest_bug_id: |
Destination Bug Id |
|
int |
$p_rel_type: |
Relationship Type |
API Tags:
relationship_update [line 195]
BugRelationshipData relationship_update(
int $p_relationship_id, int $p_src_bug_id, int $p_dest_bug_id, int $p_relationship_type
)
|
|
Update a relationship
Parameters:
|
int |
$p_relationship_id: |
Relationship Id to update |
|
int |
$p_src_bug_id: |
Source Bug Id |
|
int |
$p_dest_bug_id: |
Destination Bug Id |
|
int |
$p_relationship_type: |
Relationship type |
API Tags:
relationship_view_box [line 803]
null relationship_view_box(
int $p_bug_id
)
|
|
print HTML relationship form
Parameters: