[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/core/ -> csv_api.php (summary)

CSV API

Copyright: Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
Copyright: Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net
File Size: 424 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 35 functions

  csv_get_newline()
  csv_get_separator()
  csv_get_default_filename()
  csv_escape_string()
  csv_get_columns()
  csv_format_id()
  csv_format_project_id()
  csv_format_reporter_id()
  csv_format_handler_id()
  csv_format_priority()
  csv_format_severity()
  csv_format_reproducibility()
  csv_format_version()
  csv_format_fixed_in_version()
  csv_format_target_version()
  csv_format_projection()
  csv_format_category_id()
  csv_format_date_submitted()
  csv_format_eta()
  csv_format_os()
  csv_format_os_build()
  csv_format_build()
  csv_format_platform()
  csv_format_view_state()
  csv_format_last_updated()
  csv_format_summary()
  csv_format_description()
  csv_format_steps_to_reproduce()
  csv_format_additional_information()
  csv_format_status()
  csv_format_resolution()
  csv_format_duplicate_id()
  csv_format_selection()
  csv_format_due_date()
  csv_format_sponsorship_total()

Functions
Functions that are not part of a class:

csv_get_newline()   X-Ref
get the csv file new line, can be moved to config in the future

return: string containing new line character

csv_get_separator()   X-Ref
get the csv file separator, can be moved to config in the future

return: string

csv_get_default_filename()   X-Ref
if all projects selected, default to <username>.csv, otherwise default to
<projectname>.csv.

return: string filename

csv_escape_string( $p_str )   X-Ref
escape a string before writing it to csv file.

param: type $todo TODO
return: TODO

csv_get_columns()   X-Ref
An array of column names that are used to identify  fields to include and in which order.

param: type $todo TODO
return: TODO

csv_format_id( $p_bug_id )   X-Ref
format bug id

param: int $p_bug_id bug id
return: string csv formatted bug

csv_format_project_id( $p_project_id )   X-Ref
returns the project name corresponding to the supplied project id.

param: int $p_project_id project id
return: string csv formatted project name

csv_format_reporter_id( $p_reporter_id )   X-Ref
returns the reporter name corresponding to the supplied id.

param: int $p_reporter_id user id
return: string formatted user name

csv_format_handler_id( $p_handler_id )   X-Ref
returns the handler name corresponding to the supplied id

param: int $p_handler_id user id
return: string formatted user name

csv_format_priority( $p_priority )   X-Ref
return the priority string

param: int $p_priority
return: string formatted priority string

csv_format_severity( $p_severity )   X-Ref
return the severity string

param: int $p_severity
return: string formatted severity string

csv_format_reproducibility( $p_reproducibility )   X-Ref
return the reproducability string

param: int $p_reproducibility
return: string formatted reproducibility string

csv_format_version( $p_version )   X-Ref
return the version

param: string $p_version version string
return: string formatted version string

csv_format_fixed_in_version( $p_fixed_in_version )   X-Ref
return the fixed_in_version

param: string $p_fixed_in_version fixed in version string
return: string formatted fixed in version string

csv_format_target_version( $p_target_version )   X-Ref
return the target_version

param: string $p_target_version target version string
return: string formatted target version string

csv_format_projection( $p_projection )   X-Ref
return the projection

param: int $p_projection
return: string formatted projection string

csv_format_category_id( $p_category_id )   X-Ref
return the category

param: int $p_category_id
return: string formatted category string

csv_format_date_submitted( $p_date_submitted )   X-Ref
return the date submitted

param: string $p_date_submitted
return: string formatted date

csv_format_eta( $p_eta )   X-Ref
return the eta

param: int $p_eta eta
return: string formatted eta

csv_format_os( $p_os )   X-Ref
return the operating system

param: string $p_os operating system
return: string formatted operating system

csv_format_os_build( $p_os_build )   X-Ref
return the os build (os version)

param: string $p_os_build operating system build
return: string formatted operating system build

csv_format_build( $p_build )   X-Ref
return the build

param: string $p_build
return: string formatted build

csv_format_platform( $p_platform )   X-Ref
return the platform

param: string $p_platform platform
return: string formatted platform

csv_format_view_state( $p_view_state )   X-Ref
return the view state (eg: private / public)

param: int $p_view_state view state
return: string formatted view state

csv_format_last_updated( $p_last_updated )   X-Ref
return the last updated date

param: string $p_last_updated last updated
return: string formated last updated string

csv_format_summary( $p_summary )   X-Ref
return the summary

param: string $p_summary summary
return: string formatted summary

csv_format_description( $p_description )   X-Ref
return the description

param: string $p_description description
return: string formatted description

csv_format_steps_to_reproduce( $p_steps_to_reproduce )   X-Ref
return the steps to reproduce

param: string $p_steps_to_reproduce steps to reproduce
return: string formatted steps to reproduce

csv_format_additional_information( $p_additional_information )   X-Ref
return the additional information

param: string $p_additional_information
return: string formatted additional information

csv_format_status( $p_status )   X-Ref
return the status string

param: string $p_status status
return: string formatted status

csv_format_resolution( $p_resolution )   X-Ref
return the resolution string

param: int $p_resolution resolution
return: string formatted resolution string

csv_format_duplicate_id( $p_duplicate_id )   X-Ref
return the duplicate bug id

param: int $p_duplicate_id
return: string formatted bug id

csv_format_selection( $p_duplicate_id )   X-Ref
return the selection

param: int $p_duplicate_id
return: string

csv_format_due_date( $p_due_date )   X-Ref
return the due date column

param: int $p_due_date
return: string

csv_format_sponsorship_total( $p_sponsorship_total )   X-Ref
return the sponsorship total for an issue

param: int $p_sponsorship_total
return: string



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