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

Class: BugData

Source Location: /core/bug_api.php

Class Overview


Bug Data Structure Definition


Variables

Methods



Class Details

[line 72]
Bug Data Structure Definition



[ Top ]


Class Variables

$additional_information =  ''

[line 108]



Tags:

access:  protected

Type:   mixed


[ Top ]

$attachment_count =  null

[line 113]



Tags:

access:  public

Type:   mixed


[ Top ]

$bugnotes_count =  null

[line 114]



Tags:

access:  public

Type:   mixed


[ Top ]

$build =  ''

[line 94]



Tags:

access:  protected

Type:   mixed


[ Top ]

$category_id =  1

[line 84]



Tags:

access:  protected

Type:   mixed


[ Top ]

$date_submitted =  ''

[line 85]



Tags:

access:  protected

Type:   mixed


[ Top ]

$description =  ''

[line 106]



Tags:

access:  protected

Type:   mixed


[ Top ]

$due_date =  0

[line 99]



Tags:

access:  protected

Type:   mixed


[ Top ]

$duplicate_id =  0

[line 77]



Tags:

access:  protected

Type:   mixed


[ Top ]

$eta =  10

[line 87]



Tags:

access:  protected

Type:   mixed


[ Top ]

$fixed_in_version =  ''

[line 92]



Tags:

access:  protected

Type:   mixed


[ Top ]

$handler_id =  0

[line 76]



Tags:

access:  protected

Type:   mixed


[ Top ]

$id =

[line 73]



Tags:

access:  protected

Type:   mixed


[ Top ]

$last_updated =  ''

[line 86]



Tags:

access:  protected

Type:   mixed


[ Top ]

$os =  ''

[line 88]



Tags:

access:  protected

Type:   mixed


[ Top ]

$os_build =  ''

[line 89]



Tags:

access:  protected

Type:   mixed


[ Top ]

$platform =  ''

[line 90]



Tags:

access:  protected

Type:   mixed


[ Top ]

$priority =  NORMAL

[line 78]



Tags:

access:  protected

Type:   mixed


[ Top ]

$profile_id =

[line 103]



Tags:

access:  protected

Type:   mixed


[ Top ]

$projection =  10

[line 83]



Tags:

access:  protected

Type:   mixed


[ Top ]

$project_id =  null

[line 74]



Tags:

access:  protected

Type:   mixed


[ Top ]

$reporter_id =  0

[line 75]



Tags:

access:  protected

Type:   mixed


[ Top ]

$reproducibility =  10

[line 80]



Tags:

access:  protected

Type:   mixed


[ Top ]

$resolution =  OPEN

[line 82]



Tags:

access:  protected

Type:   mixed


[ Top ]

$severity =  MINOR

[line 79]



Tags:

access:  protected

Type:   mixed


[ Top ]

$sponsorship_total =  0

[line 97]



Tags:

access:  protected

Type:   mixed


[ Top ]

$status =  NEW_

[line 81]



Tags:

access:  protected

Type:   mixed


[ Top ]

$steps_to_reproduce =  ''

[line 107]



Tags:

access:  protected

Type:   mixed


[ Top ]

$sticky =  0

[line 98]



Tags:

access:  protected

Type:   mixed


[ Top ]

$summary =  ''

[line 96]



Tags:

access:  protected

Type:   mixed


[ Top ]

$target_version =  ''

[line 93]



Tags:

access:  protected

Type:   mixed


[ Top ]

$version =  ''

[line 91]



Tags:

access:  protected

Type:   mixed


[ Top ]

$view_state =  VS_PUBLIC

[line 95]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


method create [line 300]

int create( )

Insert a new bug into the database



Tags:

return:  integer representing the bug id that was created
access:  public
uses:  lang_api.php
uses:  database_api.php


[ Top ]

method get_attachment_count [line 122]

int get_attachment_count( )

return number of file attachment's linked to current bug



Tags:

access:  public


[ Top ]

method get_bugnotes_count [line 135]

int get_bugnotes_count( )

return number of bugnotes's linked to current bug



Tags:

access:  public


[ Top ]

method loadrow [line 201]

void loadrow( array $p_row)

fast-load database row into bugobject



Tags:

access:  public


Parameters:

array   $p_row  

[ Top ]

method update [line 391]

bool update( [bool $p_update_extended = false], [bool $p_bypass_mail = false])

Update a bug from the given data structure

If the third parameter is true, also update the longer strings table




Tags:

return:  (always true)
access:  public


Parameters:

bool   $p_update_extended   p_update_extended
bool   $p_bypass_mail   p_bypass_email Default false, set to true to avoid generating emails (if sending elsewhere)

[ Top ]

method validate [line 266]

void validate( [bool $p_update_extended = true])

validate current bug object for database insert/update

triggers error on failure




Parameters:

bool   $p_update_extended  

[ Top ]

method __get [line 184]

void __get( $name)



Tags:

private:  
access:  public


Parameters:

   $name  

[ Top ]

method __isset [line 193]

void __isset( $name)



Tags:

private:  
access:  public


Parameters:

   $name  

[ Top ]

method __set [line 147]

void __set( $name, $value)



Tags:

private:  
access:  public


Parameters:

   $name  
   $value  

[ Top ]


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