[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/core/ -> bug_revision_api.php (summary)

Bug Revision API

Copyright: Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net
File Size: 360 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 10 functions

  bug_revision_add()
  bug_revision_exists()
  bug_revision_get()
  bug_revision_get_type_name()
  bug_revision_drop()
  bug_revision_count()
  bug_revision_delete()
  bug_revision_last()
  bug_revision_list()
  bug_revision_like()

Functions
Functions that are not part of a class:

bug_revision_add( $p_bug_id, $p_user_id, $p_type, $p_value, $p_bugnote_id=0, $p_timestamp = null )   X-Ref
Add a new revision to a bug history.

param: int $p_bug_id Bug ID
param: int $p_user_id User ID
param: int $p_type Revision Type
param: string $p_value Value
param: int $p_bugnote_id Bugnote ID
param: int $p_timestamp Timestamp(int)
return: int Revision ID

bug_revision_exists( $p_revision_id )   X-Ref
Check if a bug revision exists

param: int $p_revision_id Revision ID
return: bool Whether or not the bug revision exists

bug_revision_get( $p_revision_id )   X-Ref
Get a row of data for a given revision ID.

param: int $p_revision_id Revision ID
return: array Revision data row

bug_revision_get_type_name( $p_revision_type_id )   X-Ref
Get the name of the type of a bug revision.

param: int $p_revision_id Revision type ID (see constant_inc.php for possible values)
return: string Name of the type of the bug revision

bug_revision_drop( $p_revision_id )   X-Ref
Remove one or more bug revisions from the bug history.

param: int $p_revision_id Revision ID, or array of revision IDs
return: null

bug_revision_count( $p_bug_id, $p_type=REV_ANY, $p_bugnote_id=0 )   X-Ref
Retrieve a count of revisions to the bug's information.

param: int $p_bug_id Bug ID
param: int $p_type Revision Type (optional)
param: int $p_bugnote_id Bugnote ID (optional)
return: array|null Array of Revision rows

bug_revision_delete( $p_bug_id, $p_bugnote_id=0 )   X-Ref
Delete all revision history for a bug.

param: int $p_bug_id Bug ID
param: int $p_bugnote_id Bugnote ID (optional)
return: null

bug_revision_last( $p_bug_id, $p_type=REV_ANY, $p_bugnote_id=0 )   X-Ref
Retrieve the last change to the bug's information.

param: int $p_bug_id Bug ID
param: int $p_type Revision Type (optional)
param: int $p_bugnote_id Bugnote ID (optional)
return: null|array Revision row

bug_revision_list( $p_bug_id, $p_type=REV_ANY, $p_bugnote_id=0 )   X-Ref
Retrieve a full list of changes to the bug's information.

param: int $p_bug_id Bug ID
param: int $p_type Revision Type
param: int $p_bugnote_id Bugnote ID
return: array/null Array of Revision rows

bug_revision_like( $p_rev_id )   X-Ref
Retrieve a list of changes to a bug of the same type as the
given revision ID.

param: int $p_rev_id Revision ID
return: array|null Array of Revision rows



Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7