CoreAPI
[ class tree: CoreAPI ] [ index: CoreAPI ] [ all elements ]

Procedural File: history_api.php

Source Location: /core/history_api.php



Page Details:



Tags:

copyright:  Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
copyright:  Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
link:  http://www.mantisbt.org
usedby:  bug_unmonitor()
usedby:  bug_monitor_copy()
usedby:  bug_set_field()
usedby:  bug_monitor()








history_delete [line 544]

true history_delete( int $p_bug_id)

delete all history associated with a bug



Parameters

int   $p_bug_id  
[ Top ]



history_get_events_array [line 105]

array history_get_events_array( int $p_bug_id, [int $p_user_id = null])

Retrieves the history events for the specified bug id and returns it in an array The array is indexed from 0 to N-1. The second dimension is: 'date', 'username', 'note', 'change'.



Parameters

int   $p_bug_id  
int   $p_user_id  
[ Top ]



history_get_raw_events_array [line 130]

array history_get_raw_events_array( int $p_bug_id, [int $p_user_id = null])

Retrieves the raw history events for the specified bug id and returns it in an array

The array is indexed from 0 to N-1. The second dimension is: 'date', 'userid', 'username', 'field','type','old_value','new_value'




Parameters

int   $p_bug_id  
int   $p_user_id  
[ Top ]



history_localize_item [line 242]

array history_localize_item( string $p_field_name, int $p_type, string $p_old_value, string $p_new_value, [bool $p_linkify = true])

Localizes one raw history item specified by set the next parameters: $p_field_name, $p_type, $p_old_value, $p_new_value

Returns array with two elements indexed as 'note' and 'change'




Parameters

string   $p_field_name  
int   $p_type  
string   $p_old_value  
string   $p_new_value  
bool   $p_linkify  
[ Top ]



history_log_event [line 67]

null history_log_event( int $p_bug_id, string $p_field_name, string $p_old_value)

log the changes

events should be logged *after* the modification




Parameters

int   $p_bug_id  
string   $p_field_name  
string   $p_old_value  
[ Top ]



history_log_event_direct [line 35]

void history_log_event_direct( int $p_bug_id, string $p_field_name, string $p_old_value, string $p_new_value, [int $p_user_id = null], [int $p_type = 0])

log the changes (old / new value are supplied to reduce db access)

events should be logged *after* the modification




Parameters

int   $p_bug_id  
string   $p_field_name  
string   $p_old_value  
string   $p_new_value  
int   $p_user_id  
int   $p_type  
[ Top ]



history_log_event_special [line 81]

null history_log_event_special( int $p_bug_id, int $p_type, [string $p_optional = ''], [string $p_optional2 = ''])

log the changes

events should be logged *after* the modification These are special case logs (new bug, deleted bugnote, etc.)




Parameters

int   $p_bug_id  
int   $p_type  
string   $p_optional  
string   $p_optional2  
[ Top ]



Documentation generated on Sun, 12 Dec 2010 23:50:32 +0900 by phpDocumentor 1.4.3
inserted by FC2 system